From 407adab0975c9e6082c81d5af7a7d86460f83efb Mon Sep 17 00:00:00 2001 From: Ziyan Date: Sat, 29 Nov 2014 14:52:39 +0100 Subject: tuna: enable KSM --- rootdir/init.tuna.rc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rootdir/init.tuna.rc b/rootdir/init.tuna.rc index a2cb446..64e04fa 100755 --- a/rootdir/init.tuna.rc +++ b/rootdir/init.tuna.rc @@ -20,6 +20,11 @@ on init mkdir /mnt/media_rw/usbdisk 0775 system system mkdir /storage/usbdisk 0000 system system + # KSM + write /sys/kernel/mm/ksm/pages_to_scan 100 + write /sys/kernel/mm/ksm/sleep_millisecs 500 + write /sys/kernel/mm/ksm/run 1 + on post-fs-data mkdir /data/media 0770 media_rw media_rw -- cgit v1.1