Re: [PATCH 38 of 66] memcontrol: try charging huge pages from stock

KAMEZAWA Hiroyuki
2010-11-19T01:20:22Z

On Wed, 03 Nov 2010 16:28:13 +0100
Andrea Arcangeli <aarcange@redhat.com> wrote:

> From: Johannes Weiner <hannes@cmpxchg.org>
>
> The stock unit is just bytes, there is no reason to only take normal
> pages from it.
>
> Signed-off-by: Johannes Weiner <hannes@cmpxchg.org>
> Signed-off-by: Andrea Arcangeli <aarcange@redhat.com>

nonsense. The stock size is CHARGE_SIZE=32*PAGE_SIZE at maximum.
When we make this to be larger than HUGEPAGE size, 2M per cpu at least.
This means memcg's resource "usage" accounting will have 128MB inaccuracy.

Nack.

Thanks,
-Kame