Reply
Thread Tools
Posts: 14 | Thanked: 14 times | Joined on Apr 2010
#31
Originally Posted by plaban View Post
I have formatted the card from mobile before using it.
Do you happen to remember the exact commands you used?
 
plaban's Avatar
Posts: 395 | Thanked: 107 times | Joined on Dec 2009 @ India
#32
I used File Manager to format the card
 
Posts: 1,258 | Thanked: 672 times | Joined on Mar 2009
#33
Originally Posted by Konceptz View Post
I think this is somewhat pointless as the reason for striping was to use both hard drive's spin speed to increase data rate where the bottleneck is always the hard drive.

In this case, "conventional" seek time bottlenecks are eliminated due to the type of memory. Unless something is wrong with implementation, the default swap setup should be pretty much 100% of the speed you can get for "virtual memory".

But there are far more factors than "it should work this way". Therefore, if many people are coming up with a much faster swap solution by switching to a class 6 card, maybe we can also see if we can't pinpoint the slow down? (ie. throughput, kernel handling, etc..)
emmc/sd behave worse than a harddrive really...

The internal block size is something like 256k, if you write 4k (page size), then write 4K somewhere else, then the emmc/sd must internally read 256k, modify the 4k, write back 256k. This makes emmc/sd behave alot like a hard drive that hates seeks.

256 / 4 is 64, that is, worst case speed is the sequential write speed divided by 64. Or, in the case of a class 6 microsdhc card, the worst case speed is 96 kilobytes/sec.

Most swap activity is random I/O.

But anyway, even if this was not the case, striping across two devices doubles the bandwidth anyway.
 

The Following User Says Thank You to shadowjk For This Useful Post:
Posts: 310 | Thanked: 383 times | Joined on Jan 2010
#34
Originally Posted by Konceptz View Post
I think this is somewhat pointless as the reason for striping was to use both hard drive's spin speed to increase data rate where the bottleneck is always the hard drive.

In this case, "conventional" seek time bottlenecks are eliminated due to the type of memory. Unless something is wrong with implementation, the default swap setup should be pretty much 100% of the speed you can get for "virtual memory".

But there are far more factors than "it should work this way". Therefore, if many people are coming up with a much faster swap solution by switching to a class 6 card, maybe we can also see if we can't pinpoint the slow down? (ie. throughput, kernel handling, etc..)
That's sequential raid; striped raid increases throughput by parallelizing I/O. The access time on flash might be low, but the throughput isn't high, so reading/writing concurrent devices should increase performance.

Sequential raid has no effect on streaming I/O, but allows concurrent yet disparate requests to execute concurrently.

Having said all that, I was hoping to reduce disk load on the internal MMC so that its queue would stay more empty. But, someone pointed out that most of the system is on another block device anyway, so it would only affect /home (ie. opt, user files, etc).

*edit* I just re-read your post and my response might not make sense. I meant that striping across multiple devices increases bandwidth at the cost of slightly increasing access time. Sequential raid has no effect on bandwidth, but can reduce access time in some cases. In our case, striping across two block devices (ie. internal MMC + SD) could help us increase total swap bandwidth.

Last edited by nightfire; 2010-04-02 at 20:29.
 
Posts: 310 | Thanked: 383 times | Joined on Jan 2010
#35
Hmm.. I wonder if there are any potential performance gains by setting the page size to the MMC / SD block size (if possible) or forcing the kernel to only swap, say, 64 pages at a time. Is it possible the kernel is writing out 4kb pages in separate I/O operations?
 
Posts: 208 | Thanked: 17 times | Joined on Jan 2010 @ Belgium
#36
can we do something wrong with running this scripts? is this more pro or can a noobie dare the same?
 
Posts: 97 | Thanked: 30 times | Joined on Dec 2009 @ Russia, Moscow
#37
Originally Posted by nielsvg View Post
can we do something wrong with running this scripts? is this more pro or can a noobie dare the same?
A good rule is if you don't understand what a command does - don't run it or be ready to reflash. At least "fdisk", rest are mostly harmless.
edit: "mkswap /dev/mmcblk1p1" will erase all data on a sd card ofc.
 
Posts: 1,258 | Thanked: 672 times | Joined on Mar 2009
#38
page-cliuster size is already set to 128k, iirc. It helps at the start, but after some time the swap area has become fragmented enough that swapout becomes more 4k random writes
 
plaban's Avatar
Posts: 395 | Thanked: 107 times | Joined on Dec 2009 @ India
#39
Did a test,at first run 30 apps at the same time without sd swap.After that rebooted and created swap in micro sd and run same 3p apps.I noticed that there is a little performance increase.
 
Posts: 310 | Thanked: 383 times | Joined on Jan 2010
#40
Originally Posted by shadowjk View Post
page-cliuster size is already set to 128k, iirc. It helps at the start, but after some time the swap area has become fragmented enough that swapout becomes more 4k random writes
Oh I meant the RAM page size. I don't know if it's adjustable on the CPU/MMU or not, but with 256k the atomic unit, you could only ever page in/out 256k.
 
Reply


 
Forum Jump


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