aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorSergey Senozhatsky <[email protected]>2023-06-24 14:12:14 +0900
committerAndrew Morton <[email protected]>2023-08-18 10:12:07 -0700
commitdf9cd3cbf209b9357f2939ba63afa427026e954b (patch)
tree6edccf70a8136ce43aefe5d6a60a935d3e46d067 /tools/perf/scripts/python
parent3fade62b62e84dd8dbf6e92d494b0e7eca750c43 (diff)
zsmalloc: do not scan for allocated objects in empty zspage
Patch series "zsmalloc: small compaction improvements", v2. A tiny series that can reduce the number of find_alloced_obj() invocations (which perform a linear scan of sub-page) during compaction. Inspired by Alexey Romanov's findings. This patch (of 3): zspage migration can terminate as soon as it moves the last allocated object from the source zspage. Add a simple helper zspage_empty() that tests zspage ->inuse on each migration iteration. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Sergey Senozhatsky <[email protected]> Suggested-by: Alexey Romanov <[email protected]> Reviewed-by: Alexey Romanov <[email protected]> Acked-by: Minchan Kim <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions