aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/sched-migration.py
diff options
context:
space:
mode:
authorAlex,Shi <[email protected]>2011-10-31 17:08:39 -0700
committerLinus Torvalds <[email protected]>2011-10-31 17:30:48 -0700
commitd2ebd0f6b89567eb93ead4e2ca0cbe03021f344b (patch)
tree1f8fc3f7702a8b4d362f5537e135e96f86043f8d /tools/perf/scripts/python/sched-migration.py
parent64212ec569bfdd094f7a23d9b09862209a983559 (diff)
kswapd: avoid unnecessary rebalance after an unsuccessful balancing
In commit 215ddd66 ("mm: vmscan: only read new_classzone_idx from pgdat when reclaiming successfully") , Mel Gorman said kswapd is better to sleep after a unsuccessful balancing if there is tighter reclaim request pending in the balancing. But in the following scenario, kswapd do something that is not matched our expectation. The patch fixes this issue. 1, Read pgdat request A (classzone_idx, order = 3) 2, balance_pgdat() 3, During pgdat, a new pgdat request B (classzone_idx, order = 5) is placed 4, balance_pgdat() returns but failed since returned order = 0 5, pgdat of request A assigned to balance_pgdat(), and do balancing again. While the expectation behavior of kswapd should try to sleep. Signed-off-by: Alex Shi <[email protected]> Reviewed-by: Tim Chen <[email protected]> Acked-by: Mel Gorman <[email protected]> Tested-by: Pádraig Brady <[email protected]> Cc: Rik van Riel <[email protected]> Cc: KOSAKI Motohiro <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/sched-migration.py')
0 files changed, 0 insertions, 0 deletions