[Devel] Re: [PATCH 5/8] RSS accounting hooks over the code

Andrew Morton akpm at linux-foundation.org
Wed May 30 14:46:29 PDT 2007


On Wed, 30 May 2007 19:34:18 +0400
Pavel Emelianov <xemul at openvz.org> wrote:

> As described above, pages are charged to their first touchers.
> The first toucher is determined using pages' _mapcount 
> manipulations in rmap calls.
> 
> Page is charged in two stages:
> 1. preparation, in which the resource availability is checked.
>    This stage may lead to page reclamation, thus it is performed
>    in a "might-sleep" places;
> 2. the container assignment to page. This is done in an atomic
>    code that handles races between multiple touchers.

I suppose we need to think about what to do about higher-order pages, and
compound pages, and hugetlb memory.




More information about the Devel mailing list