Re: [PATCH v3] memcg: Add memory.pressure_level events

2013-04-02 Thread Anton Vorontsov
On Tue, Mar 26, 2013 at 01:46:56PM -0700, Andrew Morton wrote: [...] > > +The file memory.pressure_level is only used to setup an eventfd, > > +read/write operations are no implemented. [...] > Did we tell people how to use the eventfd interface anywhere? Good point. In v4 I added a detailed instr

Re: [PATCH v3] memcg: Add memory.pressure_level events

2013-04-02 Thread Anton Vorontsov
On Wed, Mar 27, 2013 at 10:53:30AM +0900, Kamezawa Hiroyuki wrote: [...] > >+++ b/mm/memcontrol.c > >@@ -49,6 +49,7 @@ > > #include > > #include > > #include > >+#include > > #include > > #include > > #include > >@@ -376,6 +377,9 @@ struct mem_cgroup { > > atomic_tnumainfo_

Re: [PATCH v3] memcg: Add memory.pressure_level events

2013-03-26 Thread Kamezawa Hiroyuki
(2013/03/22 16:13), Anton Vorontsov wrote: With this patch userland applications that want to maintain the interactivity/memory allocation cost can use the pressure level notifications. The levels are defined like this: The "low" level means that the system is reclaiming memory for new allocatio

Re: [PATCH v3] memcg: Add memory.pressure_level events

2013-03-26 Thread Andrew Morton
On Fri, 22 Mar 2013 00:13:51 -0700 Anton Vorontsov wrote: > With this patch userland applications that want to maintain the > interactivity/memory allocation cost can use the pressure level > notifications. The levels are defined like this: > > The "low" level means that the system is reclaimin

[PATCH v3] memcg: Add memory.pressure_level events

2013-03-22 Thread Anton Vorontsov
With this patch userland applications that want to maintain the interactivity/memory allocation cost can use the pressure level notifications. The levels are defined like this: The "low" level means that the system is reclaiming memory for new allocations. Monitoring this reclaiming activity might