aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/libxed.py
diff options
context:
space:
mode:
authorThomas Gleixner <[email protected]>2023-05-25 14:57:04 +0200
committerAndrew Morton <[email protected]>2023-06-09 16:25:40 -0700
commitca5e46c3400badc418a8fbcaeba711ad60ff4e1b (patch)
tree7de31529fbc5f27f7a0a7a0b1a32f121be753e8b /tools/perf/scripts/python/libxed.py
parentfc1e0d980037e065441cd1d9a1a5e9c9117e4ba2 (diff)
mm/vmalloc: avoid iterating over per CPU vmap blocks twice
_vunmap_aliases() walks the per CPU xarrays to find partially unmapped blocks and then walks the per cpu free lists to purge fragmented blocks. Arguably that's waste of CPU cycles and cache lines as the full xarray walk already touches every block. Avoid this double iteration: - Split out the code to purge one block and the code to free the local purge list into helper functions. - Try to purge the fragmented blocks in the xarray walk before looking at their dirty space. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Thomas Gleixner <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Reviewed-by: Baoquan He <[email protected]> Cc: Lorenzo Stoakes <[email protected]> Cc: Uladzislau Rezki (Sony) <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/libxed.py')
0 files changed, 0 insertions, 0 deletions