Commit a1bbb5ec authored by Wu Fengguang's avatar Wu Fengguang Committed by Linus Torvalds

pagemap: document KPF_KSM and show it in page-types

It indicates to the system admin that processes mapping such pages may be
eating less physical memory than the reported numbers by legacy tools.
Signed-off-by: default avatarWu Fengguang <fengguang.wu@intel.com>
Cc: Hugh Dickins <hugh.dickins@tiscali.co.uk>
Cc: Izik Eidus <ieidus@redhat.com>
Acked-by: default avatarChris Wright <chrisw@redhat.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 253fb02d
...@@ -71,6 +71,7 @@ ...@@ -71,6 +71,7 @@
#define KPF_UNEVICTABLE 18 #define KPF_UNEVICTABLE 18
#define KPF_HWPOISON 19 #define KPF_HWPOISON 19
#define KPF_NOPAGE 20 #define KPF_NOPAGE 20
#define KPF_KSM 21
/* [32-] kernel hacking assistances */ /* [32-] kernel hacking assistances */
#define KPF_RESERVED 32 #define KPF_RESERVED 32
...@@ -119,6 +120,7 @@ static char *page_flag_names[] = { ...@@ -119,6 +120,7 @@ static char *page_flag_names[] = {
[KPF_UNEVICTABLE] = "u:unevictable", [KPF_UNEVICTABLE] = "u:unevictable",
[KPF_HWPOISON] = "X:hwpoison", [KPF_HWPOISON] = "X:hwpoison",
[KPF_NOPAGE] = "n:nopage", [KPF_NOPAGE] = "n:nopage",
[KPF_KSM] = "x:ksm",
[KPF_RESERVED] = "r:reserved", [KPF_RESERVED] = "r:reserved",
[KPF_MLOCKED] = "m:mlocked", [KPF_MLOCKED] = "m:mlocked",
......
...@@ -59,6 +59,7 @@ There are three components to pagemap: ...@@ -59,6 +59,7 @@ There are three components to pagemap:
18. UNEVICTABLE 18. UNEVICTABLE
19. HWPOISON 19. HWPOISON
20. NOPAGE 20. NOPAGE
21. KSM
Short descriptions to the page flags: Short descriptions to the page flags:
...@@ -93,6 +94,9 @@ Short descriptions to the page flags: ...@@ -93,6 +94,9 @@ Short descriptions to the page flags:
20. NOPAGE 20. NOPAGE
no page frame exists at the requested address no page frame exists at the requested address
21. KSM
identical memory pages dynamically shared between one or more processes
[IO related page flags] [IO related page flags]
1. ERROR IO error occurred 1. ERROR IO error occurred
3. UPTODATE page has up-to-date data 3. UPTODATE page has up-to-date data
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment