From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755545Ab0ITDyL (ORCPT ); Sun, 19 Sep 2010 23:54:11 -0400 Received: from victor.provo.novell.com ([137.65.250.26]:39815 "EHLO victor.provo.novell.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755504Ab0ITDyB (ORCPT ); Sun, 19 Sep 2010 23:54:01 -0400 From: Nikanth Karthikesan Organization: suse.de To: Richard Guenther Subject: [PATCH] Document /proc/pid/pagemap in Documentation/filesystems/proc.txt Date: Sun, 19 Sep 2010 23:08:20 +0530 User-Agent: KMail/1.12.4 (Linux/2.6.31.12-0.2-default; KDE/4.3.5; x86_64; ; ) Cc: Balbir Singh , KOSAKI Motohiro , linux-mm@kvack.org, Andrew Morton , Michael Matz , Matt Mackall , linux-kernel@vger.kernel.org References: <20100915134724.C9EE.A69D9226@jp.fujitsu.com> <201009192307.09309.knikanth@suse.de> In-Reply-To: <201009192307.09309.knikanth@suse.de> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201009192308.20500.knikanth@suse.de> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Document /proc/pid/pagemap in Documentation/filesystems/proc.txt Signed-off-by: Nikanth Karthikesan --- diff --git a/Documentation/filesystems/proc.txt b/Documentation/filesystems/proc.txt index a6aca87..a9c85a6 100644 --- a/Documentation/filesystems/proc.txt +++ b/Documentation/filesystems/proc.txt @@ -136,6 +136,7 @@ Table 1-1: Process specific entries in /proc statm Process memory status information status Process status in human readable form wchan If CONFIG_KALLSYMS is set, a pre-decoded wchan + pagemap Page table stack Report full stack trace, enable via CONFIG_STACKTRACE smaps a extension based on maps, showing the memory consumption of each mapping @@ -397,6 +398,9 @@ To clear the bits for the file mapped pages associated with the process > echo 3 > /proc/PID/clear_refs Any other value written to /proc/PID/clear_refs will have no effect. +The /proc/pid/pagemap gives the PFN, which can be used to find the pageflags +using /proc/kpageflags and number of times a page is mapped using +/proc/kpagecount. For detailed explanation, see Documentation/vm/pagemap.txt. 1.2 Kernel data --------------- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail190.messagelabs.com (mail190.messagelabs.com [216.82.249.51]) by kanga.kvack.org (Postfix) with ESMTP id EB04C6B007D for ; Sun, 19 Sep 2010 23:33:46 -0400 (EDT) From: Nikanth Karthikesan Subject: [PATCH] Document /proc/pid/pagemap in Documentation/filesystems/proc.txt Date: Sun, 19 Sep 2010 23:08:20 +0530 References: <20100915134724.C9EE.A69D9226@jp.fujitsu.com> <201009192307.09309.knikanth@suse.de> In-Reply-To: <201009192307.09309.knikanth@suse.de> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201009192308.20500.knikanth@suse.de> Sender: owner-linux-mm@kvack.org To: Richard Guenther Cc: Balbir Singh , KOSAKI Motohiro , linux-mm@kvack.org, Andrew Morton , Michael Matz , Matt Mackall , linux-kernel@vger.kernel.org List-ID: Document /proc/pid/pagemap in Documentation/filesystems/proc.txt Signed-off-by: Nikanth Karthikesan --- diff --git a/Documentation/filesystems/proc.txt b/Documentation/filesystems/proc.txt index a6aca87..a9c85a6 100644 --- a/Documentation/filesystems/proc.txt +++ b/Documentation/filesystems/proc.txt @@ -136,6 +136,7 @@ Table 1-1: Process specific entries in /proc statm Process memory status information status Process status in human readable form wchan If CONFIG_KALLSYMS is set, a pre-decoded wchan + pagemap Page table stack Report full stack trace, enable via CONFIG_STACKTRACE smaps a extension based on maps, showing the memory consumption of each mapping @@ -397,6 +398,9 @@ To clear the bits for the file mapped pages associated with the process > echo 3 > /proc/PID/clear_refs Any other value written to /proc/PID/clear_refs will have no effect. +The /proc/pid/pagemap gives the PFN, which can be used to find the pageflags +using /proc/kpageflags and number of times a page is mapped using +/proc/kpagecount. For detailed explanation, see Documentation/vm/pagemap.txt. 1.2 Kernel data --------------- -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org