summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPawit Pornkitprasan <p.pawit@gmail.com>2011-09-18 21:36:09 +0700
committerPawit Pornkitprasan <p.pawit@gmail.com>2011-09-19 10:51:51 +0700
commiteb51fb8f8b62459d4022e2198c5c4f7bbfcbe953 (patch)
tree5f8f78fa2915b8b6015594823b7f52da46628564
parentde8bb70abb45724826dc5e5359d13a72b6609bd3 (diff)
downloaddevice_samsung_aries-common-eb51fb8f8b62459d4022e2198c5c4f7bbfcbe953.zip
device_samsung_aries-common-eb51fb8f8b62459d4022e2198c5c4f7bbfcbe953.tar.gz
device_samsung_aries-common-eb51fb8f8b62459d4022e2198c5c4f7bbfcbe953.tar.bz2
Adjust write cache to improve HD video recording
Patch Set 2: Rebased and removed dependency Change-Id: I437e18722ee77ee45d1992a96a16fb491a7b4183
-rw-r--r--init.rc4
1 files changed, 3 insertions, 1 deletions
diff --git a/init.rc b/init.rc
index 37e48a3..bba3d98 100644
--- a/init.rc
+++ b/init.rc
@@ -144,7 +144,9 @@ on boot
write /proc/1/oom_adj -16
# Tweak background writeout
- write /proc/sys/vm/dirty_expire_centisecs 200
+ write /proc/sys/vm/dirty_writeback_centisecs 2000
+ write /proc/sys/vm/dirty_expire_centisecs 1000
+ write /proc/sys/vm/dirty_ratio 90
write /proc/sys/vm/dirty_background_ratio 5
# Permissions for System Server and daemons.