Re: [PATCH] vmpressure: implement strict mode

2013-07-02 Thread Luiz Capitulino
On Tue, 2 Jul 2013 21:47:03 +0200 Pavel Machek wrote: > On Tue 2013-07-02 11:06:28, Luiz Capitulino wrote: > > On Mon, 1 Jul 2013 10:51:03 +0200 > > Pavel Machek wrote: > > > > > Hi! > > > > > > > diff --git a/Documentation/cgroups/memory.txt > > > > b/Documentation/cgroups/memory.txt > > > >

Re: [PATCH] vmpressure: implement strict mode

2013-07-02 Thread Pavel Machek
On Tue 2013-07-02 11:06:28, Luiz Capitulino wrote: > On Mon, 1 Jul 2013 10:51:03 +0200 > Pavel Machek wrote: > > > Hi! > > > > > diff --git a/Documentation/cgroups/memory.txt > > > b/Documentation/cgroups/memory.txt > > > index ddf4f93..3c589cf 100644 > > > --- a/Documentation/cgroups/memory.tx

Re: [PATCH] vmpressure: implement strict mode

2013-07-02 Thread Luiz Capitulino
On Mon, 1 Jul 2013 10:51:03 +0200 Pavel Machek wrote: > Hi! > > > diff --git a/Documentation/cgroups/memory.txt > > b/Documentation/cgroups/memory.txt > > index ddf4f93..3c589cf 100644 > > --- a/Documentation/cgroups/memory.txt > > +++ b/Documentation/cgroups/memory.txt > > @@ -807,12 +807,14 @

Re: [PATCH] vmpressure: implement strict mode

2013-07-01 Thread Pavel Machek
Hi! > diff --git a/Documentation/cgroups/memory.txt > b/Documentation/cgroups/memory.txt > index ddf4f93..3c589cf 100644 > --- a/Documentation/cgroups/memory.txt > +++ b/Documentation/cgroups/memory.txt > @@ -807,12 +807,14 @@ register a notification, an application must: > > - create an event

Re: [PATCH] vmpressure: implement strict mode

2013-06-26 Thread Anton Vorontsov
On Wed, Jun 26, 2013 at 04:50:51PM +0900, Minchan Kim wrote: > On Tue, Jun 25, 2013 at 05:51:29PM -0400, Luiz Capitulino wrote: > > Currently, applications are notified for the level they registered for > > _plus_ higher levels. > > > > This is a problem if the application wants to implement diffe

Re: [PATCH] vmpressure: implement strict mode

2013-06-26 Thread Luiz Capitulino
On Wed, 26 Jun 2013 10:08:27 +0200 Michal Hocko wrote: > On Tue 25-06-13 17:51:29, Luiz Capitulino wrote: > > Currently, applications are notified for the level they registered for > > _plus_ higher levels. > > > > This is a problem if the application wants to implement different > > actions for

Re: [PATCH] vmpressure: implement strict mode

2013-06-26 Thread Luiz Capitulino
On Wed, 26 Jun 2013 17:20:40 +0900 Minchan Kim wrote: > Hello Michal, > > On Wed, Jun 26, 2013 at 09:59:21AM +0200, Michal Hocko wrote: > > On Wed 26-06-13 16:50:51, Minchan Kim wrote: > > > On Tue, Jun 25, 2013 at 05:51:29PM -0400, Luiz Capitulino wrote: > > > > Currently, applications are noti

Re: [PATCH] vmpressure: implement strict mode

2013-06-26 Thread Luiz Capitulino
On Tue, 25 Jun 2013 21:03:31 -0700 Anton Vorontsov wrote: > On Tue, Jun 25, 2013 at 05:51:29PM -0400, Luiz Capitulino wrote: > > Currently, applications are notified for the level they registered for > > _plus_ higher levels. > > > > This is a problem if the application wants to implement differ

Re: [PATCH] vmpressure: implement strict mode

2013-06-26 Thread Minchan Kim
Hello Michal, On Wed, Jun 26, 2013 at 09:59:21AM +0200, Michal Hocko wrote: > On Wed 26-06-13 16:50:51, Minchan Kim wrote: > > On Tue, Jun 25, 2013 at 05:51:29PM -0400, Luiz Capitulino wrote: > > > Currently, applications are notified for the level they registered for > > > _plus_ higher levels. >

Re: [PATCH] vmpressure: implement strict mode

2013-06-26 Thread Michal Hocko
On Tue 25-06-13 17:51:29, Luiz Capitulino wrote: > Currently, applications are notified for the level they registered for > _plus_ higher levels. > > This is a problem if the application wants to implement different > actions for different levels. For example, an application might want > to releas

Re: [PATCH] vmpressure: implement strict mode

2013-06-26 Thread Michal Hocko
On Wed 26-06-13 16:50:51, Minchan Kim wrote: > On Tue, Jun 25, 2013 at 05:51:29PM -0400, Luiz Capitulino wrote: > > Currently, applications are notified for the level they registered for > > _plus_ higher levels. > > > > This is a problem if the application wants to implement different > > actions

Re: [PATCH] vmpressure: implement strict mode

2013-06-26 Thread Minchan Kim
On Tue, Jun 25, 2013 at 05:51:29PM -0400, Luiz Capitulino wrote: > Currently, applications are notified for the level they registered for > _plus_ higher levels. > > This is a problem if the application wants to implement different > actions for different levels. For example, an application might

Re: [PATCH] vmpressure: implement strict mode

2013-06-25 Thread Anton Vorontsov
On Tue, Jun 25, 2013 at 05:51:29PM -0400, Luiz Capitulino wrote: > Currently, applications are notified for the level they registered for > _plus_ higher levels. > > This is a problem if the application wants to implement different > actions for different levels. For example, an application might

Re: [PATCH] vmpressure: implement strict mode

2013-06-25 Thread Luiz Capitulino
On Wed, 26 Jun 2013 10:12:15 +0900 Hyunhee Kim wrote: > Please see "[PATCH v3] memcg: event control at vmpressure". mail > thread. (and also the thread I sent last Saturday.) > There was discussion on this mode not sending lower events when "level > != ev->level". The new argument this patch add

Re: [PATCH] vmpressure: implement strict mode

2013-06-25 Thread Hyunhee Kim
Please see "[PATCH v3] memcg: event control at vmpressure". mail thread. (and also the thread I sent last Saturday.) There was discussion on this mode not sending lower events when "level != ev->level". Thanks, Hyunhee Kim. 2013/6/26 Kyungmin Park : > + Ms. Kim, > > she already raised this issue

Re: [PATCH] vmpressure: implement strict mode

2013-06-25 Thread Kyungmin Park
+ Ms. Kim, she already raised this issue at another mail thread. Thank you, Kyungmin Park On Wed, Jun 26, 2013 at 6:51 AM, Luiz Capitulino wrote: > Currently, applications are notified for the level they registered for > _plus_ higher levels. > > This is a problem if the application wants to im

[PATCH] vmpressure: implement strict mode

2013-06-25 Thread Luiz Capitulino
Currently, applications are notified for the level they registered for _plus_ higher levels. This is a problem if the application wants to implement different actions for different levels. For example, an application might want to release 10% of its cache on level low, 50% on medium and 100% on cr