From 0ccf7efbd3259b064770ad461aeccfef3a06244f Mon Sep 17 00:00:00 2001 From: Michael Bestas Date: Fri, 10 Jan 2014 02:46:18 +0200 Subject: [PATCH] init.local.rc: Tweak KSM values * Taken from http://source.android.com/devices/low-ram.html#ksm Change-Id: I91de2014d06a24aec4bdefefeff606867de33de1 --- prebuilt/common/etc/init.local.rc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/prebuilt/common/etc/init.local.rc b/prebuilt/common/etc/init.local.rc index 2ce5121c..61a8b50f 100644 --- a/prebuilt/common/etc/init.local.rc +++ b/prebuilt/common/etc/init.local.rc @@ -87,8 +87,8 @@ on boot chmod 0664 /sys/kernel/mm/ksm/sleep_millisecs chown root system /sys/kernel/mm/ksm/run chmod 0664 /sys/kernel/mm/ksm/run - write /sys/kernel/mm/ksm/sleep_millisecs 1500 - write /sys/kernel/mm/ksm/pages_to_scan 256 + write /sys/kernel/mm/ksm/sleep_millisecs 500 + write /sys/kernel/mm/ksm/pages_to_scan 100 chown system system /dev/cpuctl/apps/cpu.notify_on_migrate chmod 0644 /dev/cpuctl/apps/cpu.notify_on_migrate