Re: Resizing io_uring SQ/CQ?

Jens Axboe
2023-03-15T15:18:28Z

On 3/10/23 9:56 AM, Stefan Hajnoczi wrote:
> On Fri, Mar 10, 2023 at 11:14:04PM +0800, Ming Lei wrote:
>
> Hi Ming,
> Another question about this:
>
> Does the io worker thread pool have limits so that eventually work
> queues up and new work is not able to execute until in-flight work
> completes?

It's effectively limited by how many processes you are allowed to
create. If you exceed that limit, then yes you would have work
sitting behind other work, and that new work won't get to run
before _something_ completes.

But no ring sizing will save that, you've effectively exhausted
any resources in the system, at least for you.

--
Jens Axboe