From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753379Ab0IPGCO (ORCPT ); Thu, 16 Sep 2010 02:02:14 -0400 Received: from cantor.suse.de ([195.135.220.2]:50031 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751549Ab0IPGCN convert rfc822-to-8bit (ORCPT ); Thu, 16 Sep 2010 02:02:13 -0400 From: Nikanth Karthikesan Organization: suse.de To: KOSAKI Motohiro Subject: [PATCH] Document the new Anonymous field in smaps. Date: Thu, 16 Sep 2010 11:34:59 +0530 User-Agent: KMail/1.12.4 (Linux/2.6.31.12-0.2-default; KDE/4.3.5; x86_64; ; ) Cc: Hugh Dickins , Matt Mackall , Richard Guenther , Balbir Singh , linux-mm@kvack.org, Andrew Morton , Michael Matz , linux-kernel@vger.kernel.org References: <201009160856.25923.knikanth@suse.de> <20100916125147.CA08.A69D9226@jp.fujitsu.com> In-Reply-To: <20100916125147.CA08.A69D9226@jp.fujitsu.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 8BIT Message-Id: <201009161135.00129.knikanth@suse.de> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Sorry, I missed to add documentation, when I sent the patch. This depends on the patch titled, "[PATCH] Export amount of anonymous memory in a mapping via smaps". Thanks Nikanth Document the new Anonymous field in smaps. Signed-off-by: Nikanth Karthikesan --- diff --git a/Documentation/filesystems/proc.txt b/Documentation/filesystems/proc.txt index a6aca87..75c7368 100644 --- a/Documentation/filesystems/proc.txt +++ b/Documentation/filesystems/proc.txt @@ -370,6 +370,7 @@ Shared_Dirty: 0 kB Private_Clean: 0 kB Private_Dirty: 0 kB Referenced: 892 kB +Anonymous: 0 kB Swap: 0 kB KernelPageSize: 4 kB MMUPageSize: 4 kB @@ -380,7 +381,10 @@ the amount of the mapping that is currently resident in RAM, the "proportional set size” (divide each shared page by the number of processes sharing it), the number of clean and dirty shared pages in the mapping, and the number of clean and dirty private pages in the mapping. The "Referenced" indicates the amount -of memory currently marked as referenced or accessed. +of memory currently marked as referenced or accessed. The "Anonymous" shows +the amount of mapping that is not associated with a file. Even the private +pages in a mapping associated with a file, would become anonymous, when they +are modified. This file is only present if the CONFIG_MMU kernel configuration option is enabled. From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail138.messagelabs.com (mail138.messagelabs.com [216.82.249.35]) by kanga.kvack.org (Postfix) with ESMTP id C40BE6B007B for ; Thu, 16 Sep 2010 02:02:12 -0400 (EDT) From: Nikanth Karthikesan Subject: [PATCH] Document the new Anonymous field in smaps. Date: Thu, 16 Sep 2010 11:34:59 +0530 References: <201009160856.25923.knikanth@suse.de> <20100916125147.CA08.A69D9226@jp.fujitsu.com> In-Reply-To: <20100916125147.CA08.A69D9226@jp.fujitsu.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <201009161135.00129.knikanth@suse.de> Sender: owner-linux-mm@kvack.org To: KOSAKI Motohiro Cc: Hugh Dickins , Matt Mackall , Richard Guenther , Balbir Singh , linux-mm@kvack.org, Andrew Morton , Michael Matz , linux-kernel@vger.kernel.org List-ID: Sorry, I missed to add documentation, when I sent the patch. This depends on the patch titled, "[PATCH] Export amount of anonymous memory in a mapping v= ia smaps". Thanks Nikanth Document the new Anonymous field in smaps. Signed-off-by: Nikanth Karthikesan =2D-- diff --git a/Documentation/filesystems/proc.txt b/Documentation/filesystems= /proc.txt index a6aca87..75c7368 100644 =2D-- a/Documentation/filesystems/proc.txt +++ b/Documentation/filesystems/proc.txt @@ -370,6 +370,7 @@ Shared_Dirty: 0 kB Private_Clean: 0 kB Private_Dirty: 0 kB Referenced: 892 kB +Anonymous: 0 kB Swap: 0 kB KernelPageSize: 4 kB MMUPageSize: 4 kB @@ -380,7 +381,10 @@ the amount of the mapping that is currently resident i= n RAM, the "proportional set size=E2=80=9D (divide each shared page by the number of processes shar= ing it), the number of clean and dirty shared pages in the mapping, and the number of c= lean and dirty private pages in the mapping. The "Referenced" indicates the am= ount =2Dof memory currently marked as referenced or accessed. +of memory currently marked as referenced or accessed. The "Anonymous" shows +the amount of mapping that is not associated with a file. Even the private +pages in a mapping associated with a file, would become anonymous, when th= ey +are modified. =20 This file is only present if the CONFIG_MMU kernel configuration option is enabled. -- 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