summaryrefslogtreecommitdiffstats
path: root/init.herring.rc
diff options
context:
space:
mode:
authorIliyan Malchev <malchev@google.com>2012-02-08 12:53:45 -0800
committerIliyan Malchev <malchev@google.com>2012-03-15 12:18:34 -0700
commit57950421eeec15755e112a3d97d79c8975e62565 (patch)
treed1c6da8618dcde74c11e1517532ea5b3f69c348f /init.herring.rc
parentc77b54c7b9122c3458d609215fa01ff34691c0ab (diff)
downloaddevice_samsung_crespo-57950421eeec15755e112a3d97d79c8975e62565.zip
device_samsung_crespo-57950421eeec15755e112a3d97d79c8975e62565.tar.gz
device_samsung_crespo-57950421eeec15755e112a3d97d79c8975e62565.tar.bz2
crespo: start KSM on boot
Change-Id: I496007bbc9852f843b034cd32ef3a815612b675f Signed-off-by: Iliyan Malchev <malchev@google.com>
Diffstat (limited to 'init.herring.rc')
-rwxr-xr-xinit.herring.rc5
1 files changed, 5 insertions, 0 deletions
diff --git a/init.herring.rc b/init.herring.rc
index 5b3cfad..40d7b3a 100755
--- a/init.herring.rc
+++ b/init.herring.rc
@@ -65,6 +65,11 @@ on fs
# Permissions for System Server and daemons.
chown system system /sys/class/backlight/s5p_bl/brightness
+# Configure and enable 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
# wi-fi
mkdir /data/misc/wifi/sockets 0770 wifi wifi