Re: [PATCH 14/14] mm: memcontrol: hook up vmpressure to socket pressure

2015-11-18 Thread Vladimir Davydov
On Tue, Nov 17, 2015 at 05:22:17PM -0500, Johannes Weiner wrote: > On Tue, Nov 17, 2015 at 11:18:50PM +0300, Vladimir Davydov wrote: > > AFAIK vmpressure was designed to allow userspace to tune hard limits of > > cgroups in accordance with their demands, in which case the way how > > vmpressure

Re: [PATCH 14/14] mm: memcontrol: hook up vmpressure to socket pressure

2015-11-18 Thread Johannes Weiner
On Wed, Nov 18, 2015 at 07:02:54PM +0300, Vladimir Davydov wrote: > On Tue, Nov 17, 2015 at 05:22:17PM -0500, Johannes Weiner wrote: > > On Tue, Nov 17, 2015 at 11:18:50PM +0300, Vladimir Davydov wrote: > > > And with this patch it will work this way, but only if sum limits < > > > total ram,

Re: [PATCH 14/14] mm: memcontrol: hook up vmpressure to socket pressure

2015-11-17 Thread Vladimir Davydov
On Mon, Nov 16, 2015 at 01:53:16PM -0500, Johannes Weiner wrote: > On Sun, Nov 15, 2015 at 04:54:57PM +0300, Vladimir Davydov wrote: > > On Thu, Nov 12, 2015 at 06:41:33PM -0500, Johannes Weiner wrote: > > > Let the networking stack know when a memcg is under reclaim pressure > > > so that it can

Re: [PATCH 14/14] mm: memcontrol: hook up vmpressure to socket pressure

2015-11-17 Thread Johannes Weiner
On Tue, Nov 17, 2015 at 11:18:50PM +0300, Vladimir Davydov wrote: > AFAIK vmpressure was designed to allow userspace to tune hard limits of > cgroups in accordance with their demands, in which case the way how > vmpressure notifications work makes sense. You can still do that when the reporting

Re: [PATCH 14/14] mm: memcontrol: hook up vmpressure to socket pressure

2015-11-16 Thread Johannes Weiner
On Sun, Nov 15, 2015 at 04:54:57PM +0300, Vladimir Davydov wrote: > On Thu, Nov 12, 2015 at 06:41:33PM -0500, Johannes Weiner wrote: > > Let the networking stack know when a memcg is under reclaim pressure > > so that it can clamp its transmit windows accordingly. > > > > Whenever the reclaim

Re: [PATCH 14/14] mm: memcontrol: hook up vmpressure to socket pressure

2015-11-15 Thread Vladimir Davydov
On Thu, Nov 12, 2015 at 06:41:33PM -0500, Johannes Weiner wrote: > Let the networking stack know when a memcg is under reclaim pressure > so that it can clamp its transmit windows accordingly. > > Whenever the reclaim efficiency of a cgroup's LRU lists drops low > enough for a MEDIUM or HIGH

[PATCH 14/14] mm: memcontrol: hook up vmpressure to socket pressure

2015-11-12 Thread Johannes Weiner
Let the networking stack know when a memcg is under reclaim pressure so that it can clamp its transmit windows accordingly. Whenever the reclaim efficiency of a cgroup's LRU lists drops low enough for a MEDIUM or HIGH vmpressure event to occur, assert a pressure state in the socket and tcp memory