Skip to content
Snippets Groups Projects
Commit 831d8e1e authored by San Mehat's avatar San Mehat
Browse files

rootdir: init.rc: Adjust background dirty writeout policy


Signed-off-by: default avatarSan Mehat <san@google.com>
parent 1dec5032
Branches
Tags
No related merge requests found
...@@ -180,6 +180,10 @@ on boot ...@@ -180,6 +180,10 @@ on boot
# Set init its forked children's oom_adj. # Set init its forked children's oom_adj.
write /proc/1/oom_adj -16 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. # Permissions for System Server and daemons.
chown radio system /sys/android_power/state chown radio system /sys/android_power/state
chown radio system /sys/android_power/request_state chown radio system /sys/android_power/request_state
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment