The patch titled Subject: mm-page_alloc-add-same-penalty-is-enough-to-get-round-robin-order-v3 has been added to the -mm tree. Its filename is mm-page_alloc-add-same-penalty-is-enough-to-get-round-robin-order-v3.patch This patch should soon appear at https://ozlabs.org/~akpm/mmots/broken-out/mm-page_alloc-add-same-penalty-is-enough-to-get-round-robin-order-v3.patch and later at https://ozlabs.org/~akpm/mmotm/broken-out/mm-page_alloc-add-same-penalty-is-enough-to-get-round-robin-order-v3.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Wei Yang <richard.weiyang@xxxxxxxxx> Subject: mm-page_alloc-add-same-penalty-is-enough-to-get-round-robin-order-v3 remove remove MAX_NODE_LOAD, per Vlastimil Link: https://lkml.kernel.org/r/20220412001319.7462-1-richard.weiyang@xxxxxxxxx Signed-off-by: Wei Yang <richard.weiyang@xxxxxxxxx> Acked-by: Vlastimil Babka <vbabka@xxxxxxx> Acked-by: David Hildenbrand <david@xxxxxxxxxx> Acked-by: Oscar Salvador <osalvador@xxxxxxx> Cc: David Rientjes <rientjes@xxxxxxxxxx> Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@xxxxxxxxxxxxxx> Cc: Krupa Ramakrishnan <krupa.ramakrishnan@xxxxxxx> Cc: Michal Hocko <mhocko@xxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- --- a/mm/page_alloc.c~mm-page_alloc-add-same-penalty-is-enough-to-get-round-robin-order-v3 +++ a/mm/page_alloc.c @@ -6182,7 +6182,6 @@ int numa_zonelist_order_handler(struct c } -#define MAX_NODE_LOAD (nr_online_nodes) static int node_load[MAX_NUMNODES]; /** @@ -6229,7 +6228,7 @@ int find_next_best_node(int node, nodema val += PENALTY_FOR_NODE_WITH_CPUS; /* Slight preference for less loaded node */ - val *= (MAX_NODE_LOAD*MAX_NUMNODES); + val *= MAX_NUMNODES; val += node_load[n]; if (val < min_val) { @@ -6312,7 +6311,7 @@ static void build_zonelists(pg_data_t *p */ if (node_distance(local_node, node) != node_distance(local_node, prev_node)) - node_load[node] += nr_online_nodes; + node_load[node] += 1; node_order[nr_nodes++] = node; prev_node = node; _ Patches currently in -mm which might be from richard.weiyang@xxxxxxxxx are mm-memcg-mz-already-removed-from-rb_tree-if-not-null.patch mm-memcg-set-memcg-after-css-verified-and-got-reference.patch mm-memcg-set-pos-explicitly-for-reclaim-and-reclaim.patch mm-memcg-move-generation-assignment-and-comparison-together.patch mm-memcg-non-hierarchical-mode-is-deprecated.patch mm-page_alloc-add-same-penalty-is-enough-to-get-round-robin-order.patch mm-page_alloc-add-same-penalty-is-enough-to-get-round-robin-order-v3.patch mm-vmscan-reclaim-only-affects-managed_zones.patch mm-vmscan-make-sure-wakeup_kswapd-with-managed-zone.patch mm-vmscan-make-sure-wakeup_kswapd-with-managed-zone-v2.patch mm-vmscan-sc-reclaim_idx-must-be-a-valid-zone-index.patch