Re: [PATCH 2/5] pagemap: Change kpagecount to return the mapcount, not the reference count, of a page.

From: Matt Mackall
Date: Thu Jun 05 2008 - 12:02:11 EST



On Thu, 2008-06-05 at 11:04 -0400, Thomas Tuttle wrote:
> 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.

I'm pretty sure this has been suggested before and I was just too
thick-skulled to get it. Yes, the reference count is less useful.

Acked-by: Matt Mackall <mpm@xxxxxxxxxxx>

ps: It's much prefered to send patches inline.

--
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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/