maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   Massive interactivity improvement under high I/O load! (https://talk.maemo.org/showthread.php?t=69973)

epitaph 2011-03-06 18:56

Re: Massive interactivity improvement under high I/O load!
 
Quote:

Originally Posted by nightfire (Post 959838)
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 2011-03-06 19:24

Re: Massive interactivity improvement under high I/O load!
 
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.

epitaph 2011-03-06 19:36

Re: Massive interactivity improvement under high I/O load!
 
Quote:

Originally Posted by hawaii (Post 961983)
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.

hawaii 2011-03-06 20:00

Re: Massive interactivity improvement under high I/O load!
 
You fail to understand you are NOT using 2 swap spaces currently. NO data is being written to your lower priority swap.

epitaph 2011-03-06 20:12

Re: Massive interactivity improvement under high I/O load!
 
Quote:

Originally Posted by hawaii (Post 961994)
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.

d-iivil 2011-03-06 21:11

Re: Massive interactivity improvement under high I/O load!
 
Quote:

Originally Posted by epitaph (Post 961997)
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...

hawaii 2011-03-06 21:11

Re: Massive interactivity improvement under high I/O load!
 
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.

epitaph 2011-03-06 21:25

Re: Massive interactivity improvement under high I/O load!
 
Quote:

Originally Posted by d-iivil (Post 962025)
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!

epitaph 2011-03-06 21:28

Re: Massive interactivity improvement under high I/O load!
 
Quote:

Originally Posted by hawaii (Post 962027)
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 2011-03-07 01:51

Re: Massive interactivity improvement under high I/O load!
 
Quote:

Originally Posted by d-iivil (Post 962025)

/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)


All times are GMT. The time now is 20:05.

vBulletin® Version 3.8.8