From: Wu Fengguang Date: Wed, 7 Oct 2009 23:32:28 +0000 (-0700) Subject: pagemap: document KPF_KSM and show it in page-types X-Git-Tag: 2.1b_release~10687 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a1bbb5ec39042fb762e7f4bcc634da0d87834193;p=platform%2Fkernel%2Fkernel-mfld-blackbay.git 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: Wu Fengguang Cc: Hugh Dickins Cc: Izik Eidus Acked-by: Chris Wright Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/Documentation/vm/page-types.c b/Documentation/vm/page-types.c index 87f5722..9899fa2 100644 --- a/Documentation/vm/page-types.c +++ b/Documentation/vm/page-types.c @@ -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 @@ -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", diff --git a/Documentation/vm/pagemap.txt b/Documentation/vm/pagemap.txt index 2fdd84a..df09b96 100644 --- a/Documentation/vm/pagemap.txt +++ b/Documentation/vm/pagemap.txt @@ -59,6 +59,7 @@ There are three components to pagemap: 18. UNEVICTABLE 19. HWPOISON 20. NOPAGE + 21. KSM Short descriptions to the page flags: @@ -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