![]() |
Re: Using Micro SD Card as Virtual Ram on Nokia N900?
Quote:
|
Re: Using Micro SD Card as Virtual Ram on Nokia N900?
I used File Manager to format the card
|
Re: Using Micro SD Card as Virtual Ram on Nokia N900?
Quote:
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. |
Re: Using Micro SD Card as Virtual Ram on Nokia N900?
Quote:
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. |
Re: Using Micro SD Card as Virtual Ram on Nokia N900?
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?
|
Re: Using Micro SD Card as Virtual Ram on Nokia N900?
can we do something wrong with running this scripts? is this more pro or can a noobie dare the same?
|
Re: Using Micro SD Card as Virtual Ram on Nokia N900?
Quote:
edit: "mkswap /dev/mmcblk1p1" will erase all data on a sd card ofc. |
Re: Using Micro SD Card as Virtual Ram on Nokia N900?
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
|
Re: Using Micro SD Card as Virtual Ram on Nokia N900?
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.
|
Re: Using Micro SD Card as Virtual Ram on Nokia N900?
Quote:
|
All times are GMT. The time now is 08:11. |
vBulletin® Version 3.8.8