|
2012-05-27
, 10:28
|
Posts: 3,074 |
Thanked: 12,960 times |
Joined on Mar 2010
@ Sofia,Bulgaria
|
#212
|
Now here is a VERY interesting paper that advocates the disabling of pre-fetching for massive improvements in VM on flash.
The Following 3 Users Say Thank You to freemangordon For This Useful Post: | ||
|
2012-05-27
, 10:32
|
Posts: 1,680 |
Thanked: 3,685 times |
Joined on Jan 2011
|
#213
|
ok - issue solved - the following made it work:
swapon /dev/mmcblk0p3
insmod /lib/modules/current/ramzswap.ko disksize_kb=65536
swapon /dev/ramzswap0 -p 10
swapoff /dev/mmcblk0p3
it seems that enabling the internal memory's swap was needed to avoid the crash - i don't know why.
Now i have 2 swaps:
/dev/mmcblk1p4 (P -1)
/dev/ramzswap0 (P - 10)
Thanks for the help.
|
2012-05-27
, 10:43
|
Posts: 669 |
Thanked: 433 times |
Joined on May 2010
|
#214
|
|
2012-05-27
, 11:22
|
Posts: 1,680 |
Thanked: 3,685 times |
Joined on Jan 2011
|
#215
|
I tend to support that, I am running /proc/sys/vm/page-cluster = 0 for ages and it definitely makes a difference.
On the other hand it seems there should be some system tweaking for compcache to be effective. Unfortunately I have NFC where and what to tweak besides what i've already posted.
The Following 10 Users Say Thank You to vi_ For This Useful Post: | ||
|
2012-05-27
, 12:38
|
|
Posts: 139 |
Thanked: 181 times |
Joined on Nov 2011
@ Oulu, Finland
|
#216
|
|
2012-05-27
, 14:53
|
Posts: 669 |
Thanked: 433 times |
Joined on May 2010
|
#217
|
|
2012-05-27
, 15:57
|
Posts: 3,074 |
Thanked: 12,960 times |
Joined on Mar 2010
@ Sofia,Bulgaria
|
#218
|
Does the "ramzswap" suffer from fragmentation issue same as with the mmc/internal swap? does it need to get swapoff+swapon also to fix it?
The Following 4 Users Say Thank You to freemangordon For This Useful Post: | ||
|
2012-05-27
, 18:50
|
|
Posts: 4,118 |
Thanked: 8,901 times |
Joined on Aug 2010
@ Ruhrgebiet, Germany
|
#219
|
|
2012-05-27
, 20:12
|
Posts: 669 |
Thanked: 433 times |
Joined on May 2010
|
#220
|
From this morning I am using:
64MB ramzswap
swap on eMMC
echo 3 > /proc/sys/vm/dirty_ratio
echo 3 > /proc/sys/vm/dirty_background_ratio
echo 100 > /proc/sys/vm/dirty_writeback_centisecs
echo 100 > /proc/sys/vm/dirty_expire_centisecs
echo 32 > /proc/sys/vm/min_free_kbytes
echo 95 > /proc/sys/vm/swappiness
echo 666 > /proc/sys/vm/vfs_cache_pressure
echo 0 > /proc/sys/vm/page-cluster
echo 4 > /sys/block/mmcblk0/queue/nr_requests
echo 4 > /sys/block/mmcblk1/queue/nr_requests
All is as smooth as Bulgarian butter so far, and yes I have opened many webpages, have a video playing in the background and conversations+images+file manager.
Cat /proc/swaps shows ramz is well full ages ago.
Will report later.
The Following 3 Users Say Thank You to impeham For This Useful Post: | ||
swapon /dev/mmcblk0p3
insmod /lib/modules/current/ramzswap.ko disksize_kb=65536
swapon /dev/ramzswap0 -p 10
swapoff /dev/mmcblk0p3
it seems that enabling the internal memory's swap was needed to avoid the crash - i don't know why.
Now i have 2 swaps:
/dev/mmcblk1p4 (P -1)
/dev/ramzswap0 (P - 10)
Thanks for the help.