All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] block: make rewriting the current I/O scheduler cheap again
@ 2026-11-12  3:00 Qiliang Yuan
  2026-11-12  3:00 ` [PATCH 1/2] block: don't request a module for the none elevator Qiliang Yuan
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Qiliang Yuan @ 2026-11-12  3:00 UTC (permalink / raw)
  To: Jens Axboe, Damien Le Moal, Ming Lei, Nilay Shroff,
	Hannes Reinecke
  Cc: linux-block, linux-kernel, Qiliang Yuan

Writing the scheduler a queue already uses to queue/scheduler takes
about 10 ms and freezes the queue, which stalls I/O on live disks every
time a udev rule or tuning tool sets the scheduler unconditionally.

Patch 1 stops requesting a "none-iosched" module on every write of
"none". Patch 2 returns before freezing the queue when the elevator
wouldn't change.

On a null_blk disk (median of 20 writes, all kernels measured in the
same run):

  operation                   base (ms)  patch 1 (ms)  patch 1+2 (ms)
  none -> none                    13.09          9.06            0.08
  mq-deadline -> mq-deadline       9.19          9.14            0.08
  mq-deadline -> none             12.00          7.96            7.97

Signed-off-by: Qiliang Yuan <qiliang.yuan@linux.dev>
---
Qiliang Yuan (2):
      block: don't request a module for the none elevator
      block: return early when the elevator doesn't change

 block/elevator.c | 20 ++++++++++++++++++--
 1 file changed, 18 insertions(+), 2 deletions(-)
---
base-commit: 79eb6679ef6a0d5ea68da53a8321fb1dc72299b9
change-id: 20261111-bug-block-elevator-unchanged-a6cd2d761d38

Best regards,
-- 
Qiliang Yuan <qiliang.yuan@linux.dev>


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-11-12 14:05 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-12  3:00 [PATCH 0/2] block: make rewriting the current I/O scheduler cheap again Qiliang Yuan
2026-11-12  3:00 ` [PATCH 1/2] block: don't request a module for the none elevator Qiliang Yuan
2026-11-12 14:03   ` Christoph Hellwig
2026-11-12  3:00 ` [PATCH 2/2] block: return early when the elevator doesn't change Qiliang Yuan
2026-11-12 14:05   ` Christoph Hellwig
2026-11-12 14:03 ` [PATCH 0/2] block: make rewriting the current I/O scheduler cheap again Christoph Hellwig

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.