diff --git a/custom/kernel b/custom/kernel index d84be73..640a19a 100755 Binary files a/custom/kernel and b/custom/kernel differ diff --git a/init.bahamas.rc b/init.bahamas.rc index 94e2c08..e6e90bd 100644 --- a/init.bahamas.rc +++ b/init.bahamas.rc @@ -41,6 +41,12 @@ on boot chown system system /sys/class/leds/button-backlight/brightness chown system system /sys/class/leds/lcd-backlight/brightness + # CPU_Scaling Governor make permissions + chown system system /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor + + # Set idle_sleep_mode permissions to radio + chown radio radio /sys/module/pm/parameters/idle_sleep_mode + # mount tmp cache system to speed up photo taking mkdir /cache/tmp 0666 system system mount tmpfs tmpfs /cache/tmp @@ -52,9 +58,6 @@ on boot write /sys/devices/system/cpu/cpu0/cpufreq/ondemand/sampling_rate 50000 write /sys/devices/system/cpu/cpu0/cpufreq/ondemand/up_threshold 90 - # Set idle_sleep_mode permissions to radio - chown radio radio /sys/module/pm/parameters/idle_sleep_mode - # performance tweaks for flash write /sys/block/mtdblock3/bdi/read_ahead_kb 4 write /sys/block/mtdblock4/bdi/read_ahead_kb 4 @@ -64,11 +67,22 @@ on boot write /sys/block/mmcblk0/bdi/read_ahead_kb 1024 # enable low memory killer to check file pages + write /sys/module/lowmemorykiller/parameters/minfree 3584,4096,8192,10240,11264,12288 write /sys/module/lowmemorykiller/parameters/minfile 0,0,0,5120,5632,6144 write /sys/module/lowmemorykiller/parameters/check_filepages 1 - # CPU_Scaling Governor make permissions - chown system system /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor + 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. + write /proc/sys/net/core/rmem_max 262144 + write /proc/sys/net/core/wmem_max 262144 + + setrlimit 8 268435456 268435456 # compass/accelerometer daemon service akmd /system/bin/akmd