From c679ef22367853a7b1df70a0a26f07c702dc7f60 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Tue, 23 Jan 2024 09:54:19 -0800 Subject: [PATCH] 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 --- init.hardware.rc | 1 + 1 file changed, 1 insertion(+) 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