mm-demotion-demote-pages-according-to-allocation-fallback-order.patch removed from -mm tree
The quilt patch titled
Subject: mm/demotion: demote pages according to allocation fallback order
has been removed from the -mm tree. Its filename was
mm-demotion-demote-pages-according-to-allocation-fallback-order.patch
This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: Jagdish Gediya <[email protected]>
Subject: mm/demotion: demote pages according to allocation fallback order
Date: Thu, 18 Aug 2022 18:40:40 +0530
Currently, a higher tier node can only be demoted to selected nodes on the next lower tier as defined by the demotion path. This strict demotion order does not work in all use cases (e.g. some use cases may want to allow cross-socket demotion to another node in the same demotion tier as a fallback when the preferred demotion node is out of space). This demotion order is also inconsistent with the page allocation fallback order when all the nodes in a higher tier are out of space: The page allocation can fall back to any node from any lower tier, whereas the demotion order doesn't allow that currently.
This patch adds support to get all the allowed demotion targets for a memory tier. demote_page_list() function is now modified to utilize this allowed node mask as the fallback allocation mask.
---
include/linux/memory-tiers.h | 12 ++++++ mm/memory-tiers.c | 51 +++++++++++++++++++++++++++-- mm/vmscan.c | 58 ++++++++++++++++++++++++--------- 3 files changed, 103 insertions(+), 18 deletions(-)
include/linux/memory-tiers.h renamed from include/linux/memory-tiers.h~mm-demotion-demote-pages-according-to-allocation-fallback-order +12 -0
@@ -5,6 +5,7 @@#include <linux/types.h> #include <linux/nodemask.h> #include <linux/kref.h> +#include <linux/mmzone.h> /* * Each tier cover a abstrace distance chunk size of 128 */
@@ -38,11 +39,17 @@ void init_node_memory_type(int node, strvoid clear_node_memory_type (int node,struct memory_dev_type *memtype);#ifdef CONFIG_MIGRATION int next_demotion_node (int node); +void node_get_allowed_targets (pg_data_t *pgdat,nodemask_t *targets);#else static inline int next_demotion_node (int node) {return NUMA_NO_NODE ; } + +static inline void node_get_allowed_targets (pg_data_t *pgdat,nodemask_t *targets) +{ + *targets =NODE_MASK_NONE ; +}#endif #else
@@ -75,5 +82,10 @@ static inline int next_demotion_node(int {return NUMA_NO_NODE ; } + +static inline void node_get_allowed_targets (pg_data_t *pgdat,nodemask_t *targets) +{ + *targets =NODE_MASK_NONE ; +}#endif /* CONFIG_NUMA */ #endif /* _LINUX_MEMORY_TIERS_H */
mm/memory-tiers.c renamed from mm/memory-tiers.c~mm-demotion-demote-pages-according-to-allocation-fallback-order +48 -3
90 lines not on this page · raw message
mm/vmscan.c renamed from mm/vmscan.c~mm-demotion-demote-pages-according-to-allocation-fallback-order +43 -15
80 lines not on this page · raw message
_
Patches currently in -mm which might be from [email protected] are