aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stat-cpi.py
diff options
context:
space:
mode:
authorPavel Begunkov <[email protected]>2021-10-09 23:14:41 +0100
committerJens Axboe <[email protected]>2021-10-19 05:49:55 -0600
commitab409402478462b5da007bfc46d165587c3adfc3 (patch)
tree0f32078a415091abc25f0c091aa902f9e97acde8 /tools/perf/scripts/python/stat-cpi.py
parenta46be971edb69fe4b1dcc4359c3ddf9127629dab (diff)
io_uring: optimise rsrc referencing
Apparently, percpu_ref_put/get() are expensive enough if done per request, get them in a batch and cache on the submission side to avoid getting it over and over again. Also, if we're completing under uring_lock, return refs back into the cache instead of perfcpu_ref_put(). Pretty similar to how we do tctx->cached_refs accounting, but fall back to normal putting when we already changed a rsrc node by the time of free. Signed-off-by: Pavel Begunkov <[email protected]> Link: https://lore.kernel.org/r/b40d8c5bc77d3c9550df8a319117a374ac85f8f4.1633817310.git.asml.silence@gmail.com Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stat-cpi.py')
0 files changed, 0 insertions, 0 deletions