diff options
author | Hao Xu <[email protected]> | 2021-06-28 05:37:30 +0800 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2021-06-30 14:15:40 -0600 |
commit | 915b3dde9b72cb4f531b04208daafcd0a257b847 (patch) | |
tree | 7c7d74779edb837045b006b3d657d6b0681d5a31 /lib/mpi/mpi-add.c | |
parent | 99ebe4efbd3882422db1fd6a1b477291ea8bdab7 (diff) |
io_uring: spin in iopoll() only when reqs are in a single queue
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.
Signed-off-by: Hao Xu <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-add.c')
0 files changed, 0 insertions, 0 deletions