Commit f7b5d647946aae1647bf5cd26c16b3a793c1ac49

Authored by Mel Gorman
Committed by Linus Torvalds
1 parent bb0b6dffa2

mm: page_alloc: abort fair zone allocation policy when remotes nodes are encountered

The purpose of numa_zonelist_order=zone is to preserve lower zones for
use with 32-bit devices.  If locality is preferred then the
numa_zonelist_order=node policy should be used.

Unfortunately, the fair zone allocation policy overrides this by
skipping zones on remote nodes until the lower one is found.  While this
makes sense from a page aging and performance perspective, it breaks the
expected zonelist policy.  This patch restores the expected behaviour
for zone-list ordering.

Signed-off-by: Mel Gorman <mgorman@suse.de>
Acked-by: Johannes Weiner <hannes@cmpxchg.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -1965,7 +1965,7 @@
1965 1965 */
1966 1966 if (alloc_flags & ALLOC_FAIR) {
1967 1967 if (!zone_local(preferred_zone, zone))
1968   - continue;
  1968 + break;
1969 1969 if (zone_page_state(zone, NR_ALLOC_BATCH) <= 0)
1970 1970 continue;
1971 1971 }