summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorQiliang Yuan <odys.yuan@gmail.com>2026-11-03 01:28:02 -0500
committerKeith Busch <kbusch@kernel.org>2026-11-06 08:31:47 -0800
commitfc991838ef25f1cab9ff34b55b39f16d95ed39b3 (patch)
treeee933acc181823b57b08b1eb6c34a4a5891c7dbb /tools/perf/scripts/python
parent1e1d36e7610fc2c2c425ea246caf8ea0380d5fd6 (diff)
nvme: remove namespaces in parallel
nvme_remove_namespaces() removes the namespaces of a controller one after another. Each removal waits for RCU grace periods in del_gendisk() for the namespace and for its multipath head, about 20 ms in all. Deleting a controller, such as disconnecting from a fabrics target, thus takes time proportional to its namespace count, over a second for 64 namespaces. Scanning had the same problem until commit 4e893ca81170 ("nvme_core: scan namespaces asynchronously") made it add namespaces in parallel. Remove the namespaces through an async domain the same way, and wait for all of them before returning. Each removal still waits about 20 ms, but the waits now overlap: a grace period is system-wide, so removals that wait at the same time are released by the same grace periods instead of each needing its own. Disconnect time from a target on the same host, over tcp to 127.0.0.1 and over nvme-loop, with 4 I/O queues, median of 3 runs on each of two boots per kernel: namespaces transport before after 8 tcp 170 / 171 ms 85 / 91 ms 32 tcp 628 / 628 ms 294 / 293 ms 64 tcp 1201 / 1308 ms 533 / 550 ms 64 loop 1988 / 1913 ms 1283 / 1200 ms Signed-off-by: Qiliang Yuan <odys.yuan@gmail.com> Reviewed-by: Nilay Shroff <nilay@linux.ibm.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Hannes Reinecke <hare@kernel.org> Reviewed-by: Daniel Wagner <dwagner@suse.de> Signed-off-by: Keith Busch <kbusch@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions