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

Andrea Arcangeli
2010-12-14T17:39:52Z

On Fri, Nov 19, 2010 at 10:14:27AM +0900, KAMEZAWA Hiroyuki wrote:
> 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.

Removed, thanks!