Re: [patch] mm: memcontrol: support transparent huge pages under pressure

2014-09-23 Thread Greg Thelen
On Tue, Sep 23 2014, Johannes Weiner wrote: > On Mon, Sep 22, 2014 at 10:52:50PM -0700, Greg Thelen wrote: >> >> On Fri, Sep 19 2014, Johannes Weiner wrote: >> >> > In a memcg with even just moderate cache pressure, success rates for >> > transparent huge page allocations drop to zero, wasting

Re: [patch] mm: memcontrol: support transparent huge pages under pressure

2014-09-23 Thread Vladimir Davydov
On Tue, Sep 23, 2014 at 07:48:27AM -0400, Johannes Weiner wrote: > On Tue, Sep 23, 2014 at 12:29:27PM +0400, Vladimir Davydov wrote: > > On Mon, Sep 22, 2014 at 10:52:50PM -0700, Greg Thelen wrote: > > > In this condition, if res usage is at limit then there's no point in > > > swapping because

Re: [patch] mm: memcontrol: support transparent huge pages under pressure

2014-09-23 Thread Johannes Weiner
On Tue, Sep 23, 2014 at 12:29:27PM +0400, Vladimir Davydov wrote: > [sorry for butting in, but I think I can answer your question] > > On Mon, Sep 22, 2014 at 10:52:50PM -0700, Greg Thelen wrote: > > > > On Fri, Sep 19 2014, Johannes Weiner wrote: > > > > > In a memcg with even just moderate

Re: [patch] mm: memcontrol: support transparent huge pages under pressure

2014-09-23 Thread Vladimir Davydov
On Tue, Sep 23, 2014 at 12:29:27PM +0400, Vladimir Davydov wrote: > On Mon, Sep 22, 2014 at 10:52:50PM -0700, Greg Thelen wrote: > > In this condition, if res usage is at limit then there's no point in > > swapping because memsw.usage is already maximal. Prior to this patch > > I think the kernel

Re: [patch] mm: memcontrol: support transparent huge pages under pressure

2014-09-23 Thread Johannes Weiner
On Mon, Sep 22, 2014 at 10:52:50PM -0700, Greg Thelen wrote: > > On Fri, Sep 19 2014, Johannes Weiner wrote: > > > In a memcg with even just moderate cache pressure, success rates for > > transparent huge page allocations drop to zero, wasting a lot of > > effort that the allocator puts into

Re: [patch] mm: memcontrol: support transparent huge pages under pressure

2014-09-23 Thread Vladimir Davydov
[sorry for butting in, but I think I can answer your question] On Mon, Sep 22, 2014 at 10:52:50PM -0700, Greg Thelen wrote: > > On Fri, Sep 19 2014, Johannes Weiner wrote: > > > In a memcg with even just moderate cache pressure, success rates for > > transparent huge page allocations drop to

Re: [patch] mm: memcontrol: support transparent huge pages under pressure

2014-09-23 Thread Greg Thelen
On Fri, Sep 19 2014, Johannes Weiner wrote: > In a memcg with even just moderate cache pressure, success rates for > transparent huge page allocations drop to zero, wasting a lot of > effort that the allocator puts into assembling these pages. > > The reason for this is that the memcg reclaim

Re: [patch] mm: memcontrol: support transparent huge pages under pressure

2014-09-23 Thread Greg Thelen
On Fri, Sep 19 2014, Johannes Weiner wrote: In a memcg with even just moderate cache pressure, success rates for transparent huge page allocations drop to zero, wasting a lot of effort that the allocator puts into assembling these pages. The reason for this is that the memcg reclaim code

Re: [patch] mm: memcontrol: support transparent huge pages under pressure

2014-09-23 Thread Vladimir Davydov
[sorry for butting in, but I think I can answer your question] On Mon, Sep 22, 2014 at 10:52:50PM -0700, Greg Thelen wrote: On Fri, Sep 19 2014, Johannes Weiner wrote: In a memcg with even just moderate cache pressure, success rates for transparent huge page allocations drop to zero,

Re: [patch] mm: memcontrol: support transparent huge pages under pressure

2014-09-23 Thread Johannes Weiner
On Mon, Sep 22, 2014 at 10:52:50PM -0700, Greg Thelen wrote: On Fri, Sep 19 2014, Johannes Weiner wrote: In a memcg with even just moderate cache pressure, success rates for transparent huge page allocations drop to zero, wasting a lot of effort that the allocator puts into assembling

Re: [patch] mm: memcontrol: support transparent huge pages under pressure

2014-09-23 Thread Vladimir Davydov
On Tue, Sep 23, 2014 at 12:29:27PM +0400, Vladimir Davydov wrote: On Mon, Sep 22, 2014 at 10:52:50PM -0700, Greg Thelen wrote: In this condition, if res usage is at limit then there's no point in swapping because memsw.usage is already maximal. Prior to this patch I think the kernel did

Re: [patch] mm: memcontrol: support transparent huge pages under pressure

2014-09-23 Thread Johannes Weiner
On Tue, Sep 23, 2014 at 12:29:27PM +0400, Vladimir Davydov wrote: [sorry for butting in, but I think I can answer your question] On Mon, Sep 22, 2014 at 10:52:50PM -0700, Greg Thelen wrote: On Fri, Sep 19 2014, Johannes Weiner wrote: In a memcg with even just moderate cache

Re: [patch] mm: memcontrol: support transparent huge pages under pressure

2014-09-23 Thread Vladimir Davydov
On Tue, Sep 23, 2014 at 07:48:27AM -0400, Johannes Weiner wrote: On Tue, Sep 23, 2014 at 12:29:27PM +0400, Vladimir Davydov wrote: On Mon, Sep 22, 2014 at 10:52:50PM -0700, Greg Thelen wrote: In this condition, if res usage is at limit then there's no point in swapping because memsw.usage

Re: [patch] mm: memcontrol: support transparent huge pages under pressure

2014-09-23 Thread Greg Thelen
On Tue, Sep 23 2014, Johannes Weiner wrote: On Mon, Sep 22, 2014 at 10:52:50PM -0700, Greg Thelen wrote: On Fri, Sep 19 2014, Johannes Weiner wrote: In a memcg with even just moderate cache pressure, success rates for transparent huge page allocations drop to zero, wasting a lot of

Re: [patch] mm: memcontrol: support transparent huge pages under pressure

2014-09-22 Thread Vladimir Davydov
On Fri, Sep 19, 2014 at 09:20:40AM -0400, Johannes Weiner wrote: > In a memcg with even just moderate cache pressure, success rates for > transparent huge page allocations drop to zero, wasting a lot of > effort that the allocator puts into assembling these pages. > > The reason for this is that

Re: [patch] mm: memcontrol: support transparent huge pages under pressure

2014-09-22 Thread Vladimir Davydov
On Fri, Sep 19, 2014 at 09:20:40AM -0400, Johannes Weiner wrote: In a memcg with even just moderate cache pressure, success rates for transparent huge page allocations drop to zero, wasting a lot of effort that the allocator puts into assembling these pages. The reason for this is that the

[patch] mm: memcontrol: support transparent huge pages under pressure

2014-09-19 Thread Johannes Weiner
In a memcg with even just moderate cache pressure, success rates for transparent huge page allocations drop to zero, wasting a lot of effort that the allocator puts into assembling these pages. The reason for this is that the memcg reclaim code was never designed for higher-order charges. It

[patch] mm: memcontrol: support transparent huge pages under pressure

2014-09-19 Thread Johannes Weiner
In a memcg with even just moderate cache pressure, success rates for transparent huge page allocations drop to zero, wasting a lot of effort that the allocator puts into assembling these pages. The reason for this is that the memcg reclaim code was never designed for higher-order charges. It