diff options
author | Dima Zavin <dima@android.com> | 2011-11-04 12:45:52 -0700 |
---|---|---|
committer | Dima Zavin <dima@android.com> | 2011-11-04 12:45:56 -0700 |
commit | 4a2539085062a715b0d345eb50ea48738423c909 (patch) | |
tree | 4411b0958c36879a33fdae9e54f6d13f4aac87a4 /rootdir | |
parent | 4f7c0843bbaa9cb4ec3a7890461cebbee689530a (diff) | |
download | system_core-4a2539085062a715b0d345eb50ea48738423c909.zip system_core-4a2539085062a715b0d345eb50ea48738423c909.tar.gz system_core-4a2539085062a715b0d345eb50ea48738423c909.tar.bz2 |
rootdir: init.rc: write default oom_adj before starting ueventd
Otherwise, ueventd's oom_adj value would have been 0 and it could
easily get killed early during low memory events
Change-Id: I1adbd18c37215b26ae77e70f7b8dbd1e143fc2d4
Signed-off-by: Dima Zavin <dima@android.com>
Diffstat (limited to 'rootdir')
-rw-r--r-- | rootdir/init.rc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/rootdir/init.rc b/rootdir/init.rc index 46af96c..3f7cbc3 100644 --- a/rootdir/init.rc +++ b/rootdir/init.rc @@ -1,4 +1,7 @@ on early-init + # Set init and its forked children's oom_adj. + write /proc/1/oom_adj -16 + start ueventd # create mountpoints @@ -204,9 +207,6 @@ on boot chown root system /sys/module/lowmemorykiller/parameters/minfree chmod 0664 /sys/module/lowmemorykiller/parameters/minfree - # Set init and 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 |