mm, page_alloc: Wake kswapd based on the highest eligible zone
A message that is not in the archive (sent off-list or not yet received): [email protected]
Hillf Danton
Acked-byQuoted 8 lines
The
ac_classzone_idxis used as the basis for waking kswapd and that is based on the preferred zoneref. If the preferred zoneref's highest zone is lower than what is available on other nodes, it's possible that kswapd is woken on a zone with only higher, but still eligible, zones. Asclasszone_idxis strictly adhered to now, it causes a problem because eligible pages are skipped.
Quoted 6 lines
For example, node 0 has only DMA32 and node 1 has only NORMAL. An allocating context running on node 0 may wake kswapd on node 1 telling it to skip all NORMAL pages.
Signed-off-by Mel Gorman <[email protected]>---
Quoted 17 lines
mm/page_alloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)mm/page_alloc.c +1
-2@@ -3415,7 +3415,7 @@ static void wake_all_kswapds(unsigned int order, const struct alloc_context *ac)for_each_zone_zonelist_nodemask (zone, z, ac->zonelist, ac->high_zoneidx, ac->nodemask) {if (last_pgdat != zone->zone_pgdat) -wakeup_kswapd (zone, order,ac_classzone_idx (ac)); +wakeup_kswapd (zone, order, ac->high_zoneidx); last_pgdat = zone->zone_pgdat; } } --
Quoted 1 line
2.6.4
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Quoted 8 lines · Hillf Danton
Quoted 8 lines
The
ac_classzone_idxis used as the basis for waking kswapd and that is based on the preferred zoneref. If the preferred zoneref's highest zone is lower than what is available on other nodes, it's possible that kswapd is woken on a zone with only higher, but still eligible, zones. Asclasszone_idxis strictly adhered to now, it causes a problem because eligible pages are skipped.
Quoted 8 lines
Quoted 6 lines
For example, node 0 has only DMA32 and node 1 has only NORMAL. An allocating context running on node 0 may wake kswapd on node 1 telling it to skip all NORMAL pages.
Signed-off-by Mel Gorman <[email protected]>---
Acked-by Hillf Danton <[email protected]>
Thanks. I also noticed when applying the ack that "zoneref's highest zone" should have been "zoneref's first zone" so fixed that too.
Signature · 8 lines
Mel Gorman SUSE Labs -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"[email protected]"> [email protected] </a>