summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBart Van Assche <bvanassche@google.com>2024-01-23 09:54:19 -0800
committerBart Van Assche <bvanassche@google.com>2024-01-24 11:34:48 -0800
commitc679ef22367853a7b1df70a0a26f07c702dc7f60 (patch)
tree7ad7ce4a5d63007f01653abf909ba74142875b82
parent09b4d2c8ebb9e5ab10c80b0c4816226d88ff0447 (diff)
downloadredbull-c679ef22367853a7b1df70a0a26f07c702dc7f60.tar.gz
init.hardware.rc: Restore I/O performance
As one can see in cfq_arm_slice_timer(), the CFQ I/O scheduler supports two parameters that can make it delay I/O: group_idle and slice_idle. Restore I/O performance by setting both the group_idle and slice_idle parameters to zero. Bug: 213617178 Bug: 313578691 Change-Id: I02429876790a6456ca957ff7c38f0c8bf88127f9 Signed-off-by: Bart Van Assche <bvanassche@google.com>
-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