Re: [PATCH] io_uring: spin in iopoll() only when reqs are in a single queue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 6/27/21 3:37 PM, Hao Xu wrote:
> We currently spin in iopoll() when requests to be iopolled are for
> same file(device), while one device may have multiple hardware queues.
> given an example:
> 
> hw_queue_0     |    hw_queue_1
> req(30us)           req(10us)
> 
> If we first spin on iopolling for the hw_queue_0. the avg latency would
> be (30us + 30us) / 2 = 30us. While if we do round robin, the avg
> latency would be (30us + 10us) / 2 = 20us since we reap the request in
> hw_queue_1 in time. So it's better to do spinning only when requests
> are in same hardware queue.

Applied, thanks.

-- 
Jens Axboe




[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux