From 89069e2747ed64b18a6cb39775422389c7fe3edb Mon Sep 17 00:00:00 2001 From: Arne Coucheron Date: Sat, 15 Oct 2011 02:26:31 +0200 Subject: [PATCH] click: override dirty_ratio on UMS Change-Id: I2386f867301abc3648763ad445dea363ee7d8116 --- init.bahamas.rc | 2 -- system.prop | 3 +++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/init.bahamas.rc b/init.bahamas.rc index e6e90bd..506beba 100644 --- a/init.bahamas.rc +++ b/init.bahamas.rc @@ -74,8 +74,6 @@ on boot write /proc/sys/kernel/sched_latency_ns 5000000 write /proc/sys/kernel/sched_wakeup_granularity_ns 100000 write /proc/sys/kernel/sched_min_granularity_ns 100000 - write /proc/sys/vm/dirty_background_bytes 1024000 - write /proc/sys/vm/dirty_bytes 10240000 # Assign TCP buffer thresholds to be ceiling value of technology maximums # Increased technology maximums should be reflected here. diff --git a/system.prop b/system.prop index 07ced16..58564b8 100644 --- a/system.prop +++ b/system.prop @@ -69,6 +69,9 @@ dalvik.vm.heapsize=24m # Enable compcache ro.compcache.default=18 +# Lock dirty_ratio to 20 when USB is mounted for improved transfer speed +ro.vold.umsdirtyratio=20 + # Makes HOME ADW / OTHERS to be always in memoory pref_lock_home=1