summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBart Van Assche <bvanassche@google.com>2024-01-23 21:31:36 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2024-01-24 03:07:22 +0000
commit8a3eb49c93ad81dd1867669cdda11064a8393548 (patch)
tree16575139259d5f34e66e37d3417b6d236fc704ef
parentfa0b22d567b2b83277c4e7c42113056133cca3c1 (diff)
downloadredbull-8a3eb49c93ad81dd1867669cdda11064a8393548.tar.gz
init.hardware.rc: Improve I/O performance
It is known that I/O performance is suboptimal if the CFQ group_idle parameter is not zero or if the BFQ slice_idle parameter is not zero. Since Redbull devices use the CFQ I/O scheduler and since slice_idle is a BFQ parameter, write 0 into the group_idle parameter. Bug: 213617178 Bug: 313578691 Signed-off-by: Bart Van Assche <bvanassche@google.com> (cherry picked from https://android-review.googlesource.com/q/commit:c71a1663431b7342a1fb2a4ca5bc67fbf1938672) (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:4036863e853011021bde6a6bde9fda001030613d) Merged-In: I02429876790a6456ca957ff7c38f0c8bf88127f9 Change-Id: I02429876790a6456ca957ff7c38f0c8bf88127f9
-rw-r--r--init.hardware.rc1
1 files changed, 1 insertions, 0 deletions
diff --git a/init.hardware.rc b/init.hardware.rc
index 669c8ddd..888e31ce 100644
--- a/init.hardware.rc
+++ b/init.hardware.rc
@@ -81,6 +81,7 @@ on init && property:vendor.skip.init=0
# Boot time fs tuning
write /sys/block/sda/queue/iostats 0
write /sys/block/sda/queue/scheduler cfq
+ write /sys/block/sda/queue/iosched/group_idle 0
write /sys/block/sda/queue/iosched/slice_idle 0
write /sys/block/sda/queue/nr_requests 256