Skip to content

Commit

Permalink
pagemap: document KPF_KSM and show it in page-types
Browse files Browse the repository at this point in the history
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: Wu Fengguang <fengguang.wu@intel.com>
Cc: Hugh Dickins <hugh.dickins@tiscali.co.uk>
Cc: Izik Eidus <ieidus@redhat.com>
Acked-by: Chris Wright <chrisw@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Wu Fengguang authored and Linus Torvalds committed Oct 8, 2009
1 parent 253fb02 commit a1bbb5e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Documentation/vm/page-types.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@
#define KPF_UNEVICTABLE 18
#define KPF_HWPOISON 19
#define KPF_NOPAGE 20
#define KPF_KSM 21

/* [32-] kernel hacking assistances */
#define KPF_RESERVED 32
Expand Down Expand Up @@ -119,6 +120,7 @@ static char *page_flag_names[] = {
[KPF_UNEVICTABLE] = "u:unevictable",
[KPF_HWPOISON] = "X:hwpoison",
[KPF_NOPAGE] = "n:nopage",
[KPF_KSM] = "x:ksm",

[KPF_RESERVED] = "r:reserved",
[KPF_MLOCKED] = "m:mlocked",
Expand Down
4 changes: 4 additions & 0 deletions Documentation/vm/pagemap.txt
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ There are three components to pagemap:
18. UNEVICTABLE
19. HWPOISON
20. NOPAGE
21. KSM

Short descriptions to the page flags:

Expand Down Expand Up @@ -93,6 +94,9 @@ Short descriptions to the page flags:
20. NOPAGE
no page frame exists at the requested address

21. KSM
identical memory pages dynamically shared between one or more processes

[IO related page flags]
1. ERROR IO error occurred
3. UPTODATE page has up-to-date data
Expand Down

0 comments on commit a1bbb5e

Please sign in to comment.