From e282e698c78db2f1105934b6664cf20e874b6429 Mon Sep 17 00:00:00 2001 From: tytydraco Date: Mon, 28 Sep 2020 21:07:56 -0700 Subject: [PATCH] Additional I/O tweaks Signed-off-by: tytydraco --- ktweak | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ktweak b/ktweak index 7553f69..7a482ab 100644 --- a/ktweak +++ b/ktweak @@ -150,9 +150,18 @@ do fi done + # Do not use I/O as a source of randomness + write "${queue}add_random" 0 + # Disable I/O statistics accounting write "${queue}iostats" 0 + # Only attempt simple merges + write "${queue}nomerges" 1 + + # Force request completion on the origin CPU for maximum cache locality + write "${queue}rq_affinity" 2 + # Reduce heuristic read-ahead in exchange for I/O latency write "${queue}read_ahead_kb" 16