[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <4ca0a85e0806050804s798bba46wcb29d2582120bfab@mail.gmail.com>
Date: Thu, 5 Jun 2008 11:04:33 -0400
From: "Thomas Tuttle" <ttuttle@...gle.com>
To: mpm@...enic.com, akpm@...ux-foundation.org,
linux-kernel@...r.kernel.org
Subject: [PATCH 2/5] pagemap: Change kpagecount to return the map count, not the reference count, of a page.
When trying to use pagemap to calculate the "proportional set size"
[1] of a process, I discovered that there were often references to
pages that could not be discovered by kpagecount. I changed
kpagecount to return the number of times a page is mapped, rather than
referenced, so kpagecount is more useful for determining how many
processes are using a page.
[1] PSS is the amount of memory used by a process, weighted by 1 / the
number of processes sharing the memory -- so a 128K library shared by
2 processes counts as 64K PSS for each of them.
View attachment "0002-Changed-kpagecount-to-return-the-map-count-not-the.patch" of type "text/x-patch" (885 bytes)
Powered by blists - more mailing lists