aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/event_analyzing_sample.py
diff options
context:
space:
mode:
authorWonhyuk Yang <[email protected]>2022-05-12 20:22:51 -0700
committerAndrew Morton <[email protected]>2022-05-13 07:20:09 -0700
commit8a87d6959f0d81108d95b0dbd3d7dc2cecea853d (patch)
treeec0296f866a992891ac6e87de4d2f9d272cecfbb /tools/perf/scripts/python/event_analyzing_sample.py
parent81a84182c3430c8f5f7ccf9e95a10b99f727f727 (diff)
mm/page_alloc: cache the result of node_dirty_ok()
To spread dirty pages, nodes are checked whether they have reached the dirty limit using the expensive node_dirty_ok(). To reduce the frequency of calling node_dirty_ok(), the last node that hit the dirty limit can be cached. Instead of caching the node, caching both the node and its node_dirty_ok() status can reduce the number of calle to node_dirty_ok(). [[email protected]: rename last_pgdat_dirty_limit to last_pgdat_dirty_ok] Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Wonhyuk Yang <[email protected]> Acked-by: Johannes Weiner <[email protected]> Acked-by: Mel Gorman <[email protected]> Cc: Donghyeok Kim <[email protected]> Cc: JaeSang Yoo <[email protected]> Cc: Jiyoup Kim <[email protected]> Cc: Ohhoon Kwon <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions