From bebef42dbd98ee79b01413d2901f0997fe8b69b2 Mon Sep 17 00:00:00 2001 From: Qais Yousef Date: Thu, 21 Dec 2023 19:04:11 +0000 Subject: [PATCH] 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 Change-Id: I21421f97f069083793fe2e2fa51739dac12eca1d --- storage/init.storage.rc | 1 + 1 file changed, 1 insertion(+) diff --git a/storage/init.storage.rc b/storage/init.storage.rc index 141f8f0..948e820 100644 --- a/storage/init.storage.rc +++ b/storage/init.storage.rc @@ -10,6 +10,7 @@ on default_storage_mode # Block 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/rq_affinity 2 # UFS write /dev/sys/block/bootdevice/clkgate_enable 1