aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorPavel Begunkov <asml.silence@gmail.com>2023-04-04 13:39:45 +0100
committerJens Axboe <axboe@kernel.dk>2023-04-04 09:30:39 -0600
commitb8fb5b4fdd67f9d18109c5d21d44a8bd4ddb608b (patch)
treed88a6c8049aeb16442461afa53182a2c603a5eb6 /tools/perf/scripts/python/export-to-postgresql.py
parentio_uring: cap io_sqring_entries() at SQ ring size (diff)
downloadwireguard-linux-b8fb5b4fdd67f9d18109c5d21d44a8bd4ddb608b.tar.xz
wireguard-linux-b8fb5b4fdd67f9d18109c5d21d44a8bd4ddb608b.zip
io_uring/rsrc: use non-pcpu refcounts for nodes
One problem with the current rsrc infra is that often updates will generates lots of rsrc nodes, each carry pcpu refs. That takes quite a lot of memory, especially if there is a stall, and takes lots of CPU cycles. Only pcpu allocations takes >50 of CPU with a naive benchmark updating files in a loop. Replace pcpu refs with normal refcounting. There is already a hot path avoiding atomics / refs, but following patches will further improve it. Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Link: https://lore.kernel.org/r/e9ed8a9457b331a26555ff9443afc64cdaab7247.1680576071.git.asml.silence@gmail.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions