init.storage.rc: Set rq_affinity to 2

When rq_affinity is 1, it will default to servicing the softirq on the
same CPU that has serviced the interrupt.

By setting it to 2, completions are processed by the CPU core that
submitted the I/O.

Bug: 311655524
Signed-off-by: Qais Yousef <qyousef@google.com>
Change-Id: I21421f97f069083793fe2e2fa51739dac12eca1d
This commit is contained in:
Qais Yousef 2023-12-21 19:04:11 +00:00
parent d3a9a07020
commit bebef42dbd

View File

@ -10,6 +10,7 @@ on default_storage_mode
# Block # Block
write /dev/sys/block/by-name/rootdisk/queue/iostats 1 write /dev/sys/block/by-name/rootdisk/queue/iostats 1
write /dev/sys/block/by-name/rootdisk/queue/nr_requests 128 write /dev/sys/block/by-name/rootdisk/queue/nr_requests 128
write /dev/sys/block/by-name/rootdisk/queue/rq_affinity 2
# UFS # UFS
write /dev/sys/block/bootdevice/clkgate_enable 1 write /dev/sys/block/bootdevice/clkgate_enable 1