From 867af09b6bf36e5854be5af2d20678dc7ecf7b37 Mon Sep 17 00:00:00 2001 From: Demon000 Date: Sat, 28 Mar 2020 12:15:48 +0100 Subject: [PATCH] davinci: rootdir: Import coral fs tuning Change-Id: I3aff3f65a20a82fb7a29ea940597a45ec8e02727 --- rootdir/etc/init.target.rc | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/rootdir/etc/init.target.rc b/rootdir/etc/init.target.rc index 79cff64..6262c69 100644 --- a/rootdir/etc/init.target.rc +++ b/rootdir/etc/init.target.rc @@ -33,6 +33,18 @@ on init write /sys/module/qpnp_rtc/parameters/poweron_alarm 1 + # Boot time fs tuning + write /sys/block/sda/queue/iostats 0 + write /sys/block/sda/queue/scheduler cfq + write /sys/block/sda/queue/iosched/slice_idle 0 + write /sys/block/sda/queue/read_ahead_kb 2048 + write /sys/block/sda/queue/nr_requests 256 + write /sys/block/sde/queue/iostats 0 + write /sys/block/sde/queue/scheduler cfq + write /sys/block/sde/queue/iosched/slice_idle 0 + write /sys/block/sde/queue/read_ahead_kb 2048 + write /sys/block/sde/queue/nr_requests 256 + # Add a cpuset for the camera daemon mkdir /dev/cpuset/camera-daemon write /dev/cpuset/camera-daemon/cpus 0-7 @@ -68,6 +80,14 @@ on boot chown system system /sys/class/thermal/thermal_message/sconfig on property:sys.boot_completed=1 + # Runtime fs tuning + write /sys/block/sda/queue/read_ahead_kb 128 + write /sys/block/sda/queue/nr_requests 128 + write /sys/block/sda/queue/iostats 1 + write /sys/block/sde/queue/read_ahead_kb 128 + write /sys/block/sde/queue/nr_requests 128 + write /sys/block/sde/queue/iostats 1 + # First setup runtime cpusets only for silver cpus write /dev/cpuset/top-app/cpus 0-3 write /dev/cpuset/foreground/cpus 0-3