diff options
author | Hyeonggon Yoo <[email protected]> | 2022-03-07 07:40:55 +0000 |
---|---|---|
committer | Vlastimil Babka <[email protected]> | 2022-03-09 12:25:18 +0100 |
commit | 5182f3c9180397b16d15981b385ecfad9249e527 (patch) | |
tree | b774fdc78d5cdb3a25dd85c1e7aa402d9e6aa2c6 /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/EventClass.py | |
parent | ffb217a13a2eaf6d5bd974fc83036a53ca69f1e2 (diff) |
mm/slub: limit number of node partial slabs only in cache creation
SLUB sets number of minimum partial slabs for node (min_partial)
using set_min_partial(). SLUB holds at least min_partial slabs even if
they're empty to avoid excessive use of page allocator.
set_min_partial() limits value of min_partial limits value of
min_partial MIN_PARTIAL and MAX_PARTIAL. As set_min_partial() can be
called by min_partial_store() too, Only limit value of min_partial
in kmem_cache_open() so that it can be changed to value that a user wants.
[ [email protected]: Fold set_min_partial() into its callers ]
Signed-off-by: Hyeonggon Yoo <[email protected]>
Reviewed-by: Vlastimil Babka <[email protected]>
Reviewed-by: Roman Gushchin <[email protected]>
Signed-off-by: Vlastimil Babka <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/EventClass.py')
0 files changed, 0 insertions, 0 deletions