init.gs101.rc: Reduce the queue depth for /dev/sda
Use the default chosen by the block layer (64). The purpose of this patch is to reduce storage latency. Without this patch: # grep -aH . /sys/block/sd*/queue/nr_requests /sys/block/sda/queue/nr_requests:256 /sys/block/sdb/queue/nr_requests:64 /sys/block/sdc/queue/nr_requests:64 /sys/block/sdd/queue/nr_requests:64 With this patch applied: # grep -aH . /sys/block/sd*/queue/nr_requests /sys/block/sda/queue/nr_requests:64 /sys/block/sdb/queue/nr_requests:64 /sys/block/sdc/queue/nr_requests:64 /sys/block/sdd/queue/nr_requests:64 Bug: 194450129 Test: Built Android images and installed these on an Android phone. Change-Id: I236874f3791d62a2d5faf0d37a149025639f5c4a Signed-off-by: Bart Van Assche <bvanassche@acm.org>
This commit is contained in:
parent
e00e552787
commit
864a08d3a7
1 changed files with 1 additions and 1 deletions
|
@ -676,7 +676,7 @@ on property:init.svc.vendor.charger=running
|
|||
on property:sys.boot_completed=1
|
||||
|
||||
# Runtime fs tuning
|
||||
write /sys/block/sda/queue/nr_requests 128
|
||||
write /sys/block/sda/queue/nr_requests 64
|
||||
write /sys/block/sda/queue/iostats 1
|
||||
write /sys/block/sda/queue/iosched/slice_idle 8
|
||||
write /dev/sys/fs/by-name/userdata/data_io_flag 8
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue