[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <45F57E7D.6080604@sw.ru>
Date: Mon, 12 Mar 2007 19:23:25 +0300
From: Kirill Korotaev <dev@...ru>
To: "Eric W. Biederman" <ebiederm@...ssion.com>
CC: Pavel Emelianov <xemul@...ru>, containers@...ts.osdl.org,
Paul Menage <menage@...gle.com>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
Andrew Morton <akpm@...l.org>
Subject: Re: [RFC][PATCH 4/7] RSS accounting hooks over the code
Eric W. Biederman wrote:
> Pavel Emelianov <xemul@...ru> writes:
>
>
>>Pages are charged to their first touchers which are
>>determined using pages' mapcount manipulations in
>>rmap calls.
>
>
> NAK pages should be charged to every rss group whose mm_struct they
> are mapped into.
For these you essentially need per-container page->_mapcount counter,
otherwise you can't detect whether rss group still has the page in question being mapped
in its processes' address spaces or not.
1. This was discussed before and considered to be ok by all the resource management
involved people.
2. this can be done with a-la page beancounters which are used in OVZ for shared
fractions accounting. It's a next step forward.
If you know how to get "pages should be charged to every rss group whose mm_struct they
are mapped into" w/o additional pointer in struct page, please throw me an idea.
Thanks,
Kirill
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists