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

From: Thomas Tuttle
Date: Thu Jun 05 2008 - 12:04:41 EST


On Thu, Jun 5, 2008 at 12:01 PM, Matt Mackall <mpm@xxxxxxxxxxx> wrote:
>
> 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.

Oh. Sorry about that. (It's been a while since I sent patches to LKML.)

--ttuttle
--
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/