From cd037fdfc4b05e160e8d8463276f2e7a7d0324b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=2E=20Andrei=20M=C4=83ce=C8=99?= Date: Sun, 4 Sep 2016 10:37:13 -0400 Subject: [PATCH] flo: init: I/O tweaks Change-Id: I455547d746b53683eac26241541b65d904404bad (cherry picked from commit 9bcda749ff2ff9bdef0bf36300574ec6e4ea857f) --- rootdir/etc/init.deb.rc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/rootdir/etc/init.deb.rc b/rootdir/etc/init.deb.rc index 702635b..deaa065 100644 --- a/rootdir/etc/init.deb.rc +++ b/rootdir/etc/init.deb.rc @@ -22,6 +22,8 @@ on early-init chown system system /sys/kernel/debug/kgsl/proc symlink /data/tombstones /tombstones write /sys/devices/virtual/graphics/fb0/rgb "32768 32768 32768" + write /sys/block/mmcblk0/bdi/read_ahead_kb 512 + write /sys/block/mmcblk0/queue/scheduler noop on init # Support legacy paths @@ -123,6 +125,10 @@ on boot chown wifi wifi /sys/module/wlan/parameters/fwpath +on property:sys.boot_completed=1 + setprop sys.io.scheduler bfq + write /sys/block/mmcblk0/bdi/read_ahead_kb 256 + on post-fs # Allow writing to the kernel trace log. chmod 0222 /sys/kernel/debug/tracing/trace_marker