|
2011-12-09
, 00:38
|
|
Posts: 5,028 |
Thanked: 8,613 times |
Joined on Mar 2011
|
#202
|
|
2011-12-09
, 03:04
|
Posts: 1,225 |
Thanked: 1,905 times |
Joined on Feb 2011
@ Quezon City, Philippines
|
#203
|
Thanks for sharing, but what the hell UBIFS have to do with RAM? UBIFS is used on 256 MB NAND flash, and zram/etc use RAM for swap. It seems, that Your finding do the same.
Obviously, NAND != RAM
/Estel
|
2012-04-19
, 14:51
|
|
Posts: 139 |
Thanked: 181 times |
Joined on Nov 2011
@ Oulu, Finland
|
#204
|
The Following User Says Thank You to Raimu For This Useful Post: | ||
|
2012-05-27
, 09:32
|
|
Posts: 4,118 |
Thanked: 8,901 times |
Joined on Aug 2010
@ Ruhrgebiet, Germany
|
#205
|
After using 64mb zram swap for a week, my general impression is that my N900 is more laggy with it than it was without it. Clicking on any alerts or opening any program has a extra delay that didn't previously exist.
Using more than 64mb made things worse, and introduced minutes-long UI freezes.
I use zram on a server which also only has 256MB of RAM, and it performs great, it feels like it doesn't swap at all. Of course, the server has much faster CPU than the N900. I think the real trick is to keep total swap usage below the size of the zram swap device. On my server, swap usage is around 50MB at most. I think once it starts hitting real swap, zram is not as useful. My N900 usually has swap usage that exceeds the total RAM amount, much less the zram size, so I'm not sure it's the ideal environment.
But I'm extremely grateful to have the option to use it and I'm sure that someone here will find the right combination of size and sysctl tweaks to make it really fly.
#echo 0 > /proc/sys/vm/page-cluster #echo 30 > /proc/sys/vm/swappiness echo 512 > /sys/block/mmcblk0/queue/nr_requests echo 512 > /sys/block/mmcblk1/queue/nr_requests echo 0 > /sys/block/mmcblk0/queue/iosched/slice_idle echo 0 > /sys/block/mmcblk1/queue/iosched/slice_idle echo 32 > /sys/block/mmcblk0/queue/iosched/quantum echo 32 > /sys/block/mmcblk1/queue/iosched/quantum echo 80 > /sys/block/mmcblk0/queue/iosched/fifo_expire_sync echo 80 > /sys/block/mmcblk1/queue/iosched/fifo_expire_sync echo 180 > /sys/block/mmcblk0/queue/iosched/fifo_expire_async echo 180 > /sys/block/mmcblk1/queue/iosched/fifo_expire_async
|
2012-05-27
, 09:41
|
Posts: 669 |
Thanked: 433 times |
Joined on May 2010
|
#206
|
|
2012-05-27
, 09:48
|
|
Posts: 4,118 |
Thanked: 8,901 times |
Joined on Aug 2010
@ Ruhrgebiet, Germany
|
#207
|
|
2012-05-27
, 09:49
|
Posts: 1,680 |
Thanked: 3,685 times |
Joined on Jan 2011
|
#208
|
insmod /lib/modules/current/ramzswap.ko disksize_kb=32768
|
2012-05-27
, 10:04
|
Posts: 1,680 |
Thanked: 3,685 times |
Joined on Jan 2011
|
#209
|
|
2012-05-27
, 10:17
|
Posts: 669 |
Thanked: 433 times |
Joined on May 2010
|
#210
|
WTH
You have kp50 installed which ships ramzswap module, and you download the module once more?
But thats not the problem. You have to use 65536kb.
And maybe your memory situation does not allow ramzswap to fetch memory. And thereby crashes (same happened to me, but only after fresh reboot, lot of mem occupied).
Let it settle, and try above value.
This piqued my interest, and it looks better than what we have now. Can it be backported?
EDIT: Looks like cleancache needs to be backported, too.
On a side note, IIRC the onboard UBIFS filesystem uses lzo1x compression, so we'll take another, small performance hit as a tradeoff for more memory squeezed in on the 256MB chip.
N9 PR 1.3 Open Mode + kernel-plus for Harmattan
@kenweknot, working on Glacier for Nemo.
Last edited by Hurrian; 2011-12-08 at 22:59.