diff options
author | San Mehat <san@google.com> | 2009-10-13 12:24:47 -0700 |
---|---|---|
committer | San Mehat <san@google.com> | 2009-10-13 12:27:18 -0700 |
commit | 831d8e1e3a08520369561087112ebf898e31704c (patch) | |
tree | 026ce5fd868164b53324e09f79fabb2fae085fff | |
parent | 1dec5032cfadc1a3d7687ce5b6cd322e4151ce9d (diff) | |
download | core-831d8e1e3a08520369561087112ebf898e31704c.tar.gz |
rootdir: init.rc: Adjust background dirty writeout policy
Signed-off-by: San Mehat <san@google.com>
-rw-r--r-- | rootdir/init.rc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/rootdir/init.rc b/rootdir/init.rc index e77797098..5657f51f3 100644 --- a/rootdir/init.rc +++ b/rootdir/init.rc @@ -180,6 +180,10 @@ on boot # Set init its forked children's oom_adj. write /proc/1/oom_adj -16 + # Tweak background writeout + write /proc/sys/vm/dirty_expire_centisecs 200 + write /proc/sys/vm/dirty_background_ratio 5 + # Permissions for System Server and daemons. chown radio system /sys/android_power/state chown radio system /sys/android_power/request_state |