linux-block.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* ublk: slow recovery process when io queue depth is low
@ 2025-04-17 10:06 Yoav Cohen
  2025-04-17 14:22 ` Jens Axboe
  2025-04-17 18:12 ` Uday Shankar
  0 siblings, 2 replies; 3+ messages in thread
From: Yoav Cohen @ 2025-04-17 10:06 UTC (permalink / raw)
  To: linux-block@vger.kernel.org
  Cc: ming.lei@redhat.com, axboe@kernel.dk, Guy Eisenberg,
	Jared Holzman

Hi,

I'm running ublk on Ubuntu Kenrel 6.8.0-56-generic.
I notice that if I'm running an IO commands that causing the IO queues to be full (at least the ublk hw queue) it seems like some of the IO's are done 30 seconds~ after they where submitted.
Enlarging the IO queues fixed the issue, and I'm pretty sure the 30 seconds magic number may be result of blk_mq_tag_set timeout filed default(see blk_mq_init_allocated_queue where it set to 30 * HZ)


Can you guys explain the behaviour? 


Thank you

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

* Re: ublk: slow recovery process when io queue depth is low
  2025-04-17 10:06 ublk: slow recovery process when io queue depth is low Yoav Cohen
@ 2025-04-17 14:22 ` Jens Axboe
  2025-04-17 18:12 ` Uday Shankar
  1 sibling, 0 replies; 3+ messages in thread
From: Jens Axboe @ 2025-04-17 14:22 UTC (permalink / raw)
  To: Yoav Cohen, linux-block@vger.kernel.org
  Cc: ming.lei@redhat.com, Guy Eisenberg, Jared Holzman

On 4/17/25 4:06 AM, Yoav Cohen wrote:
> Hi,
> 
> I'm running ublk on Ubuntu Kenrel 6.8.0-56-generic. I notice that if
> I'm running an IO commands that causing the IO queues to be full (at
> least the ublk hw queue) it seems like some of the IO's are done 30
> seconds~ after they where submitted. Enlarging the IO queues fixed the
> issue, and I'm pretty sure the 30 seconds magic number may be result
> of blk_mq_tag_set timeout filed default(see
> blk_mq_init_allocated_queue where it set to 30 * HZ)
> 
> 
> Can you guys explain the behaviour? 

Please try a more recent kernel - 6.8 is both pretty old in terms of
ublk, and more importantly, it's also not a supported stable release.
That means that even if we could fix any issues in 6.8, since there's no
further release of that, it's a dead end.

The only one you can talk to about distro kernel issues is the distro.
And I'm guessing you're using Ubuntu - they do have closer-to-mainline
kernels available, that'd be a much better base to use.

-- 
Jens Axboe

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

* Re: ublk: slow recovery process when io queue depth is low
  2025-04-17 10:06 ublk: slow recovery process when io queue depth is low Yoav Cohen
  2025-04-17 14:22 ` Jens Axboe
@ 2025-04-17 18:12 ` Uday Shankar
  1 sibling, 0 replies; 3+ messages in thread
From: Uday Shankar @ 2025-04-17 18:12 UTC (permalink / raw)
  To: Yoav Cohen
  Cc: linux-block@vger.kernel.org, ming.lei@redhat.com, axboe@kernel.dk,
	Guy Eisenberg, Jared Holzman

On Thu, Apr 17, 2025 at 10:06:36AM +0000, Yoav Cohen wrote:
> Hi,
> 
> I'm running ublk on Ubuntu Kenrel 6.8.0-56-generic.
> I notice that if I'm running an IO commands that causing the IO queues to be full (at least the ublk hw queue) it seems like some of the IO's are done 30 seconds~ after they where submitted.
> Enlarging the IO queues fixed the issue, and I'm pretty sure the 30 seconds magic number may be result of blk_mq_tag_set timeout filed default(see blk_mq_init_allocated_queue where it set to 30 * HZ)

Correct, that's where the 30s comes from.

> Can you guys explain the behaviour? 

The behavior you describe was actually just fixed yesterday by [1]; see
that commit message for a more detailed explanation. You might also be
interested in [2], which is a test that recreates exactly the behavior
you describe. Before the fix in [1], the test saw an I/O take ~30s to
complete, but after the fix, the I/O completes quickly.

[1] https://lore.kernel.org/linux-block/20250416035444.99569-6-ming.lei@redhat.com/
[2] https://lore.kernel.org/linux-block/20250416035444.99569-9-ming.lei@redhat.com/


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

end of thread, other threads:[~2025-04-17 18:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-17 10:06 ublk: slow recovery process when io queue depth is low Yoav Cohen
2025-04-17 14:22 ` Jens Axboe
2025-04-17 18:12 ` Uday Shankar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).