aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorMinchan Kim <[email protected]>2010-03-05 13:41:45 -0800
committerLinus Torvalds <[email protected]>2010-03-06 11:26:24 -0800
commit45973d74fd3b1e3e16c025b688a725c7653b1443 (patch)
tree79b002bf8da8807a4d82314426611ca2109f83e8 /tools/perf/scripts/python
parent59e99e5b9706867f18d4a36c1e4645fbaacbec2e (diff)
vmscan: check high watermark after shrink zone
Kswapd checks that zone has sufficient pages free via zone_watermark_ok(). If any zone doesn't have enough pages, we set all_zones_ok to zero. !all_zone_ok makes kswapd retry rather than sleeping. I think the watermark check before shrink_zone() is pointless. Only after kswapd has tried to shrink the zone is the check meaningful. Move the check to after the call to shrink_zone(). [[email protected]: fix comment, layout] Signed-off-by: Minchan Kim <[email protected]> Reviewed-by: KOSAKI Motohiro <[email protected]> Cc: Mel Gorman <[email protected]> Cc: Rik van Riel <[email protected]> Reviewed-by: Wu Fengguang <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions