: affinity-on-next-touch
Subsystems (2)
RFC PATCH 4/4 : affinity-on-next-touch
[Patch 4/4]: This part of the patch adds some counters to detect migration errors and publishes these counters via /proc/vmstat. Besides this, the Kconfig file is extend with the parameter CONFIG_AFFINITY_ON_NEXT_TOUCH.
include/linux/vmstat.h | 6 ++++++ mm/Kconfig | 9 +++++++++ mm/vmstat.c | 6 ++++++ 3 files changed, 21 insertions(+), 0 deletions(-)
include/linux/vmstat.h +6 -0
@@ -51,6 +51,12 @@ enum vm_event_item { PGPGIN, PGPGOUT, PSWPIN, PSWPOUT, UNEVICTABLE_PGSTRANDED, /* unable to isolate on unlock */ UNEVICTABLE_MLOCKFREED,#endif +#ifdef CONFIG_AFFINITY_ON_NEXT_TOUCH +AONT_INVALID_NODEMASK , +AONT_ISOLATE_BUSY , +AONT_ISOLATE_FAILED , +AONT_MIGRATION_FAILED , +#endifNR_VM_EVENT_ITEMS };
mm/Kconfig +0 -0
@@ -181,6 +181,15 @@ config MIGRATION example on NUMA systems to put pages nearer to the processors
accessing
the page.
+config AFFINITY_ON_NEXT_TOUCH
+ bool "Affinity on next touch (EXPERIMENTAL)" if (EXPERIMENTAL) + def_bool y + depends on MIGRATION + help
+ Allows the migration of pages to the node, which has the next
access
+ to the pages. This realized a page placement strategy, which is
called
+ "affinity-on-next-touch".
+
config PHYS_ADDR_T_64BIT
def_bool 64BIT || ARCH_PHYS_ADDR_T_64BIT
mm/vmstat.c +6 -0
@@ -708,6 +708,12 @@ static const char * const vmstat_text[] = { "unevictable_pgs_stranded", "unevictable_pgs_mlockfreed", #endif +#ifdef CONFIG_AFFINITY_ON_NEXT_TOUCH + "aont_invalid_nodemask", + "aont_isolate_busy", + "aont_isolate_failed", + "aont_migration_failed", +#endif #endif };