lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-id: <001001c9d212$57d1eeb0$0775cc10$@rwth-aachen.de>
Date:	Mon, 11 May 2009 10:27:37 +0200
From:	Stefan Lankes <lankes@...s.rwth-aachen.de>
To:	linux-kernel@...r.kernel.org
Subject: [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(-)


diff --git a/include/linux/vmstat.h b/include/linux/vmstat.h
index 524cd1b..64c8e66 100644
--- a/include/linux/vmstat.h
+++ b/include/linux/vmstat.h
@@ -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,
+#endif
                NR_VM_EVENT_ITEMS
 };
 
diff --git a/mm/Kconfig b/mm/Kconfig
index c2b57d8..025c328 100644
--- a/mm/Kconfig
+++ b/mm/Kconfig
@@ -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
 
diff --git a/mm/vmstat.c b/mm/vmstat.c
index 66f6130..d0e9489 100644
--- a/mm/vmstat.c
+++ b/mm/vmstat.c
@@ -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
 };

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ