Active Topics

 


Reply
Thread Tools
Banned | Posts: 358 | Thanked: 160 times | Joined on Dec 2010
#81
Originally Posted by nightfire View Post
Hey epitath,

There are two configurations:

What you have is like raid-0 "concat" mode. Basically, when your highest priority swap runs out of space (SD, because -1 > -2), it'll start swapping to the next highest priority swap area (internal).

Your total available swap space is the sum of these two.

This configuration is particularly useful when you have block devices of differing speeds (ie. compressed ramdisk and slow media) since you can tell the kernel to use the fast device until it's full, and then start using the slow device. It would be even more useful if the kernel could migrate infrequently used pages from fast->slow in the background, but I'm not sure if anyone has implemented it.

The other configuration is like raid-0 "striping" mode. When you have your swap areas set to the exact same priority, the kernel will interleave blocks between the two. This theoretically increases both read and write bandwidth, just as it does with striped raid-0, since the kernel can parallelize the writes, and some reads.

Like the "concat" configuration, your total available space is the sum of the two, though the "stripable" area (increased bandwidth) is equal to 2x the size of the smallest area.
Hi nightfire,

thank u for ur reply but my device feels better with my setting. Maybe it is a bug?
 
hawaii's Avatar
Posts: 1,030 | Thanked: 792 times | Joined on Jun 2009
#82
Your device feels better because it's not "colliding" IO all the time with swapping off eMMC while trying to read and write data.

I've set up a script that does some sanity checks -- plugged in? charging? locked? 3 AM? and will "re" swap out of internal, onto external and back onto the internal in order to clear out.
 
Banned | Posts: 358 | Thanked: 160 times | Joined on Dec 2010
#83
Originally Posted by hawaii View Post
Your device feels better because it's not "colliding" IO all the time with swapping off eMMC while trying to read and write data.

I've set up a script that does some sanity checks -- plugged in? charging? locked? 3 AM? and will "re" swap out of internal, onto external and back onto the internal in order to clear out.
Thanks for the script but I'm talking about my settings ( and my tools ). I know about pci-interface and bus and that concurrent interface when connecting more then 1 harddisk to the computer. If u have read my posts in this thread I use a readahead of 16 and nr_requests < 4. I've tested nightifire setting with swappoff /dev/mmcblk0k3. I think the priority for SD remains the same ( -1 ) but it is much slower. I didn't tried his swapon-tool because it didn't work on my device. This is something I can test again and setting prio to 1 like nightfire suggest but right now my setting with the 2 swap-space is much faster. I think it is a bug or my tool is crap but I don't think so.

Last edited by epitaph; 2011-03-06 at 19:44.
 
hawaii's Avatar
Posts: 1,030 | Thanked: 792 times | Joined on Jun 2009
#84
You fail to understand you are NOT using 2 swap spaces currently. NO data is being written to your lower priority swap.
 
Banned | Posts: 358 | Thanked: 160 times | Joined on Dec 2010
#85
Originally Posted by hawaii View Post
You fail to understand you are NOT using 2 swap spaces currently. NO data is being written to your lower priority swap.
And u fail to understand me that I'm using my setting and my device is faster no matter if data is written to the internal device or not just because I add internal swap to a lower priority to external swap and I have 2 swap spaces. I'm not in a kindergarten here, am I? It could be a bug.

Last edited by epitaph; 2011-03-06 at 20:14.
 
d-iivil's Avatar
Posts: 2,154 | Thanked: 2,186 times | Joined on Dec 2009 @ Hellsinki, Finland
#86
Originally Posted by epitaph View Post
It could be a bug.
No, it's not a bug. Everything is working just LIKE YOU HAVE SET THEM TO WORK.

/me cannot locate the problem here...
__________________
If you're rich and you think I deserve a cold beer, you may donate one or two :-P

80's style stadium rock is back - FIRENOTE
Hi-Octane heavy metal - FORCE MAJEURE
 

The Following User Says Thank You to d-iivil For This Useful Post:
hawaii's Avatar
Posts: 1,030 | Thanked: 792 times | Joined on Jun 2009
#87
Then this has NOTHING to do with offloading swap to an external microsd card since you are NOT doing so.

Between this and your other threads, I am hard pressed to decide whether or not you are actually in kindergarten.
 

The Following 2 Users Say Thank You to hawaii For This Useful Post:
Banned | Posts: 358 | Thanked: 160 times | Joined on Dec 2010
#88
Originally Posted by d-iivil View Post
No, it's not a bug. Everything is working just LIKE YOU HAVE SET THEM TO WORK.

/me cannot locate the problem here...
If u read the thread and nightfire is right with his conclusion then it is a bug because my device is feeling faster with external swap set to -1 and internal swap set to -2. Seriously what is so hard to understand that it can be a bug in maemo? after all u aren't responding to this thread if ur not into tweaking stock settings and also there is enough others bugs to write about it? Maybe ur just too lazy but then u could write it nobody will care about it!

Last edited by epitaph; 2011-03-06 at 21:27.
 
Banned | Posts: 358 | Thanked: 160 times | Joined on Dec 2010
#89
Originally Posted by hawaii View Post
Then this has NOTHING to do with offloading swap to an external microsd card since you are NOT doing so.

Between this and your other threads, I am hard pressed to decide whether or not you are actually in kindergarten.
Thanks for this .
 
strange1712's Avatar
Posts: 185 | Thanked: 111 times | Joined on Jul 2010 @ Mexico DF, Mexico
#90
Originally Posted by d-iivil View Post

/me cannot locate the problem here...
Me Neither. I've set nightfire values from 1st post and Epitaph tune-up's, and can't find any real improvement when overloaded in contrast with only swappolube. For example, opening Facebook in my device paralyze it for about half a minute.. or opening Chromium, or installing some app (specially using HAM)...
Internet Browsing in MicroB was getting laggy don't know why, and after applying epitaph's tweaks it lags less but sometimes simply won't load anything... So don't know...

What really amaze me is people getting so heavy about this. It's clear there is no bug at all here, and that using SD-only swap seems to be the best try as both epitaph and nightfire has found, even if epitaph won't accept it (but that's not a bug at all).
(But my uSD is veery slow so i won't do that)
__________________
Linux Registered User # 492214
http://counter.li.org/
------------------------
N900 registered as Linux Machine # 426325
 
Reply


 
Forum Jump


All times are GMT. The time now is 02:35.