diff options
author | Pavel Begunkov <[email protected]> | 2022-04-12 15:09:51 +0100 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2022-04-24 18:02:46 -0600 |
commit | d8da428b7a9a71bc2ee6bf628a8c0f9beb96a195 (patch) | |
tree | 24e83fa14dea9343d98fc5227421e610a0a4befc /tools/perf/scripts/python/sched-migration.py | |
parent | 1cd15904b6e836f46e925229da8950785252b315 (diff) |
io_uring: optimise io_get_cqe()
io_get_cqe() is expensive because of a bunch of loads, masking, etc.
However, most of the time we should have enough of entries in the CQ,
so we can cache two pointers representing a range of contiguous CQE
memory we can use. When the range is exhausted we'll go through a slower
path to set up a new range. When there are no CQEs avaliable, pointers
will naturally point to the same address.
Signed-off-by: Pavel Begunkov <[email protected]>
Link: https://lore.kernel.org/r/487eeef00f3146537b3d9c1a9cef2fc0b9a86f81.1649771823.git.asml.silence@gmail.com
[axboe: santinel -> sentinel]
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/sched-migration.py')
0 files changed, 0 insertions, 0 deletions