[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20251205231721.104505-2-mfo@igalia.com>
Date: Fri, 5 Dec 2025 20:17:13 -0300
From: Mauricio Faria de Oliveira <mfo@...lia.com>
To: Andrew Morton <akpm@...ux-foundation.org>,
David Hildenbrand <david@...nel.org>
Cc: Lorenzo Stoakes <lorenzo.stoakes@...cle.com>,
Michal Hocko <mhocko@...e.com>,
Vlastimil Babka <vbabka@...e.cz>,
Oscar Salvador <osalvador@...e.de>,
linux-mm@...ck.org,
linux-kernel@...r.kernel.org,
kernel-dev@...lia.com
Subject: [PATCH RFC 1/9] mm: add config option SWAP_PAGE_OWNER
Add config option for page_owner support for pages in swap space.
Signed-off-by: Mauricio Faria de Oliveira <mfo@...lia.com>
---
mm/Kconfig.debug | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/mm/Kconfig.debug b/mm/Kconfig.debug
index 7638d75b27db..60bc0b6c3d69 100644
--- a/mm/Kconfig.debug
+++ b/mm/Kconfig.debug
@@ -119,6 +119,15 @@ config PAGE_OWNER
If unsure, say N.
+config SWAP_PAGE_OWNER
+ bool "Track page owner in swap space (EXPERIMENTAL)"
+ depends on PAGE_OWNER
+ help
+ This also keeps track of what call chain is the owner of a page
+ in swap space, maintaining the initial call chain over swap-out
+ and swap-in (otherwise lost at swap-out and reset at swap-in).
+ You should pass the "page_owner=on,swap" parameter to enable it.
+
config PAGE_TABLE_CHECK
bool "Check for invalid mappings in user page tables"
depends on ARCH_SUPPORTS_PAGE_TABLE_CHECK
--
2.51.0
Powered by blists - more mailing lists