[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1285010660.21906.905.camel@calx>
Date: Mon, 20 Sep 2010 14:24:20 -0500
From: Matt Mackall <mpm@...enic.com>
To: Hugh Dickins <hughd@...gle.com>
Cc: Nikanth Karthikesan <knikanth@...e.de>,
KOSAKI Motohiro <kosaki.motohiro@...fujitsu.com>,
Richard Guenther <rguenther@...e.de>,
Balbir Singh <balbir@...ux.vnet.ibm.com>, linux-mm@...ck.org,
Andrew Morton <akpm@...ux-foundation.org>,
Michael Matz <matz@...ell.com>, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2] Document the new Anonymous field in smaps.
On Mon, 2010-09-20 at 00:11 -0700, Hugh Dickins wrote:
> On Fri, 17 Sep 2010, Nikanth Karthikesan wrote:
> > Document the new Anonymous field in smaps.
>
> Thanks for doing that, good effort, but your shifts between singular
> and plural rather jarred on my ear, so I've rewritten it a little below.
> Also added a sentence on "Swap"; but gave up when it came to KernelPageSize
> and MMUPageSize, let someone else clarify those later.
>
>
> [PATCH v3] Document the new Anonymous field in smaps.
>
> From: Nikanth Karthikesan <knikanth@...e.de>
>
> Document the new Anonymous field in smaps, and also the Swap field.
> Explain what smaps means by shared and private, which differs from
> MAP_SHARED and MAP_PRIVATE.
>
> Signed-off-by: Nikanth Karthikesan <knikanth@...e.de>
> Signed-off-by: Hugh Dickins <hughd@...gle.com>
Looks good,
Acked-by: Matt Mackall <mpm@...enic.com>
> ---
>
> Documentation/filesystems/proc.txt | 15 +++++++++++----
> 1 file changed, 11 insertions(+), 4 deletions(-)
>
> --- a/Documentation/filesystems/proc.txt
> +++ b/Documentation/filesystems/proc.txt
> @@ -370,17 +370,24 @@ 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
>
> -The first of these lines shows the same information as is displayed for the
> -mapping in /proc/PID/maps. The remaining lines show the size of the mapping,
> +The first of these lines shows the same information as is displayed for the
> +mapping in /proc/PID/maps. The remaining lines show the size of the mapping,
> 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.
> +and dirty private pages in the mapping. Note that even a page which is part of
> +a MAP_SHARED mapping, but has only a single pte mapped, i.e. is currently used
> +by only one process, is accounted as private and not as shared. "Referenced"
> +indicates the amount of memory currently marked as referenced or accessed.
> +"Anonymous" shows the amount of memory that does not belong to any file. Even
> +a mapping associated with a file may contain anonymous pages: when MAP_PRIVATE
> +and a page is modified, the file page is replaced by a private anonymous copy.
> +"Swap" shows how much would-be-anonymous memory is also used, but out on swap.
>
> This file is only present if the CONFIG_MMU kernel configuration option is
> enabled.
--
Mathematics is the supreme nostalgia of our time.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists