From: Ying Han <yinghan@google.com>
To: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Cc: David Rientjes <rientjes@google.com>,
Balbir Singh <balbir@linux.vnet.ibm.com>,
Pavel Emelyanov <xemul@openvz.org>,
KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>,
Suleiman Souhlal <suleiman@google.com>,
linux-mm@kvack.org
Subject: Re: memcg: slab control
Date: Thu, 26 Nov 2009 23:01:51 -0800 [thread overview]
Message-ID: <604427e00911262301tac7f55avedd44263fbabccc2@mail.gmail.com> (raw)
In-Reply-To: <20091126113209.5A68.A69D9226@jp.fujitsu.com>
On Wed, Nov 25, 2009 at 6:35 PM, KOSAKI Motohiro
<kosaki.motohiro@jp.fujitsu.com> wrote:
> Hi
>
>> Hi,
>>
>> I wanted to see what the current ideas are concerning kernel memory
>> accounting as it relates to the memory controller. Eventually we'll want
>> the ability to restrict cgroups to a hard slab limit. That'll require
>> accounting to map slab allocations back to user tasks so that we can
>> enforce a policy based on the cgroup's aggregated slab usage similiar to
>> how the memory controller currently does for user memory.
>>
>> Is this currently being thought about within the memcg community? We'd
>> like to start a discussion and get everybody's requirements and interests
>> on the table and then become actively involved in the development of such
>> a feature.
>
> I don't think memory hard isolation is bad idea. however, slab restriction
> is too strange. some device use slab frequently, another someone use get_free_pages()
> directly. only slab restriction will not make expected result from admin view.
>
> Probably, we need to implement generic memory reservation framework. it mihgt help
> implemnt rt-task memory reservation and userland oom manager.
>
> It is only my personal opinion...
Looks like the beancounters implementation counts both the kernel slab
objects as well as the
pages from get_free_pages(). But It relies the caller to pass down a
GFP flag indicating the page
or slab to be accountable or not. I am looking at the beancounters v5 at:
http://lkml.indiana.edu/hypermail/linux/kernel/0610.0/1719.html
I kind of like the idea to have a kernel memory controller instead of
kernel slab controller.
If we only count kernel slabs, do we need another mechanism to count
kernel allocations
directly from get_free_pages() ?
--Ying
>
>
> Thanks.
>
>
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
next prev parent reply other threads:[~2009-11-27 7:02 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-25 23:08 David Rientjes
2009-11-26 1:14 ` KAMEZAWA Hiroyuki
2009-11-26 8:50 ` Balbir Singh
2009-11-26 8:56 ` KAMEZAWA Hiroyuki
2009-11-26 9:10 ` Pavel Emelyanov
2009-11-26 9:33 ` KAMEZAWA Hiroyuki
2009-11-26 9:56 ` Pavel Emelyanov
2009-11-26 10:24 ` Suleiman Souhlal
2009-11-26 12:31 ` Pavel Emelyanov
2009-11-26 12:52 ` Suleiman Souhlal
2009-12-01 7:40 ` Balbir Singh
2009-11-27 7:15 ` Ying Han
2009-11-27 9:45 ` Pavel Emelyanov
2009-12-01 5:14 ` KOSAKI Motohiro
2009-11-30 22:57 ` David Rientjes
2009-12-01 10:31 ` Pavel Emelyanov
2009-12-01 22:29 ` David Rientjes
2009-12-01 7:36 ` Balbir Singh
2009-12-01 10:40 ` Pavel Emelyanov
2009-12-01 15:14 ` Balbir Singh
2009-12-02 10:14 ` Pavel Emelyanov
2009-12-02 10:19 ` Balbir Singh
2009-12-02 10:51 ` Pavel Emelyanov
2009-11-30 22:55 ` David Rientjes
2009-12-01 10:39 ` Pavel Emelyanov
2009-11-26 10:13 ` Suleiman Souhlal
2009-11-30 9:17 ` Balbir Singh
2009-11-30 22:45 ` David Rientjes
2009-11-26 1:17 ` KAMEZAWA Hiroyuki
2009-11-26 10:01 ` Suleiman Souhlal
2009-11-26 2:35 ` KOSAKI Motohiro
2009-11-27 7:01 ` Ying Han [this message]
2009-11-27 9:48 ` Pavel Emelyanov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=604427e00911262301tac7f55avedd44263fbabccc2@mail.gmail.com \
--to=yinghan@google.com \
--cc=balbir@linux.vnet.ibm.com \
--cc=kamezawa.hiroyu@jp.fujitsu.com \
--cc=kosaki.motohiro@jp.fujitsu.com \
--cc=linux-mm@kvack.org \
--cc=rientjes@google.com \
--cc=suleiman@google.com \
--cc=xemul@openvz.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox