aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/event_analyzing_sample.py
diff options
context:
space:
mode:
authorMel Gorman <[email protected]>2013-07-03 15:01:44 -0700
committerLinus Torvalds <[email protected]>2013-07-03 16:07:28 -0700
commite82e0561dae9f3ae5a21fc2d3d3ccbe69d90be46 (patch)
tree68b346634ac7dfcb99708862498f2e9cebd3cc75 /tools/perf/scripts/python/event_analyzing_sample.py
parent75485363ce8552698bfb9970d901f755d5713cca (diff)
mm: vmscan: obey proportional scanning requirements for kswapd
Simplistically, the anon and file LRU lists are scanned proportionally depending on the value of vm.swappiness although there are other factors taken into account by get_scan_count(). The patch "mm: vmscan: Limit the number of pages kswapd reclaims" limits the number of pages kswapd reclaims but it breaks this proportional scanning and may evenly shrink anon/file LRUs regardless of vm.swappiness. This patch preserves the proportional scanning and reclaim. It does mean that kswapd will reclaim more than requested but the number of pages will be related to the high watermark. [[email protected]: Correct proportional reclaim for memcg and simplify] [[email protected]: Recalculate scan based on target] [[email protected]: Account for already scanned pages properly] Signed-off-by: Mel Gorman <[email protected]> Acked-by: Rik van Riel <[email protected]> Reviewed-by: Michal Hocko <[email protected]> Cc: Johannes Weiner <[email protected]> Acked-by: KAMEZAWA Hiroyuki <[email protected]> Cc: Jiri Slaby <[email protected]> Cc: Valdis Kletnieks <[email protected]> Tested-by: Zlatko Calusic <[email protected]> Cc: dormando <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions