[Devel] Re: [PATCH 1/1] Memory usage limit notification addition to memcg

2009-07-13 Thread Vladislav D. Buzov
KAMEZAWA Hiroyuki wrote: On Wed, 08 Jul 2009 18:43:48 -0700 Vladislav D. Buzov vbu...@embeddedalley.com wrote: KAMEZAWA Hiroyuki wrote: 2 points. - Do we have to check this always we account ? What are the options? Every N pages? How to select N? I think you

[Devel] Re: [PATCH 1/1] Memory usage limit notification addition to memcg

2009-07-13 Thread Vladislav D. Buzov
Paul Menage wrote: On Tue, Jul 7, 2009 at 5:56 PM, KAMEZAWA Hiroyukikamezawa.hir...@jp.fujitsu.com wrote: I know people likes to wait for file descriptor to get notification in these days. Can't we have event file descriptor in cgroup layer and make it reusable for other purposes ?

[Devel] Re: [PATCH 1/1] Memory usage limit notification addition to memcg

2009-07-08 Thread Vladislav D. Buzov
KAMEZAWA Hiroyuki wrote: I don't think notify_available_in_bytes is necessary. I agree. This was a replacement for the old percentage calculation that was harder for the application to resolve. I'll remove it and update the example to use the other available memory controller information.