Re: [PATCH] Repeated fork() causes SLAB to grow without bound

2014-12-05 Thread Jerome Marchand
On 11/26/2014 06:35 PM, Michal Hocko wrote: > On Tue 25-11-14 16:00:06, Michal Hocko wrote: >> On Tue 25-11-14 16:13:16, Konstantin Khlebnikov wrote: >>> On Tue, Nov 25, 2014 at 1:59 PM, Michal Hocko wrote: On Mon 24-11-14 11:09:40, Konstantin Khlebnikov wrote: > On Thu, Nov 20, 2014 at 6

Re: [PATCH] Repeated fork() causes SLAB to grow without bound

2014-11-26 Thread Michal Hocko
On Tue 25-11-14 16:00:06, Michal Hocko wrote: > On Tue 25-11-14 16:13:16, Konstantin Khlebnikov wrote: > > On Tue, Nov 25, 2014 at 1:59 PM, Michal Hocko wrote: > > > On Mon 24-11-14 11:09:40, Konstantin Khlebnikov wrote: > > >> On Thu, Nov 20, 2014 at 6:03 PM, Konstantin Khlebnikov > > >> wrote:

Re: [PATCH] Repeated fork() causes SLAB to grow without bound

2014-11-25 Thread Michal Hocko
On Tue 25-11-14 16:13:16, Konstantin Khlebnikov wrote: > On Tue, Nov 25, 2014 at 1:59 PM, Michal Hocko wrote: > > On Mon 24-11-14 11:09:40, Konstantin Khlebnikov wrote: > >> On Thu, Nov 20, 2014 at 6:03 PM, Konstantin Khlebnikov > >> wrote: > >> > On Thu, Nov 20, 2014 at 5:50 PM, Rik van Riel w

Re: [PATCH] Repeated fork() causes SLAB to grow without bound

2014-11-25 Thread Konstantin Khlebnikov
On Tue, Nov 25, 2014 at 1:59 PM, Michal Hocko wrote: > On Mon 24-11-14 11:09:40, Konstantin Khlebnikov wrote: >> On Thu, Nov 20, 2014 at 6:03 PM, Konstantin Khlebnikov >> wrote: >> > On Thu, Nov 20, 2014 at 5:50 PM, Rik van Riel wrote: >> >> -BEGIN PGP SIGNED MESSAGE- >> >> Hash: SHA1 >

Re: [PATCH] Repeated fork() causes SLAB to grow without bound

2014-11-25 Thread Michal Hocko
On Mon 24-11-14 11:09:40, Konstantin Khlebnikov wrote: > On Thu, Nov 20, 2014 at 6:03 PM, Konstantin Khlebnikov > wrote: > > On Thu, Nov 20, 2014 at 5:50 PM, Rik van Riel wrote: > >> -BEGIN PGP SIGNED MESSAGE- > >> Hash: SHA1 > >> > >> On 11/20/2014 09:42 AM, Konstantin Khlebnikov wrote:

Re: [PATCH] Repeated fork() causes SLAB to grow without bound

2014-11-23 Thread Konstantin Khlebnikov
On Thu, Nov 20, 2014 at 6:03 PM, Konstantin Khlebnikov wrote: > On Thu, Nov 20, 2014 at 5:50 PM, Rik van Riel wrote: >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA1 >> >> On 11/20/2014 09:42 AM, Konstantin Khlebnikov wrote: >> >>> I'm thinking about limitation for reusing anon_vmas which migh

Re: [PATCH] Repeated fork() causes SLAB to grow without bound

2014-11-20 Thread Michel Lespinasse
On Thu, Nov 20, 2014 at 3:42 PM, Konstantin Khlebnikov wrote: > On Thu, Nov 20, 2014 at 2:14 AM, Michel Lespinasse wrote: >> On Wed, Nov 19, 2014 at 8:58 AM, Konstantin Khlebnikov >> wrote: >>> On Wed, Nov 19, 2014 at 7:09 PM, Vlastimil Babka wrote: Also from reading http://lwn.net/Articl

Re: [PATCH] Repeated fork() causes SLAB to grow without bound

2014-11-20 Thread Konstantin Khlebnikov
On Thu, Nov 20, 2014 at 5:50 PM, Rik van Riel wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On 11/20/2014 09:42 AM, Konstantin Khlebnikov wrote: > >> I'm thinking about limitation for reusing anon_vmas which might >> increase performance without breaking asymptotic estimation of >>

Re: [PATCH] Repeated fork() causes SLAB to grow without bound

2014-11-20 Thread Rik van Riel
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 11/20/2014 09:42 AM, Konstantin Khlebnikov wrote: > I'm thinking about limitation for reusing anon_vmas which might > increase performance without breaking asymptotic estimation of > count anon_vma in the worst case. For example this heuristic: all

Re: [PATCH] Repeated fork() causes SLAB to grow without bound

2014-11-20 Thread Konstantin Khlebnikov
On Thu, Nov 20, 2014 at 2:14 AM, Michel Lespinasse wrote: > On Wed, Nov 19, 2014 at 8:58 AM, Konstantin Khlebnikov > wrote: >> On Wed, Nov 19, 2014 at 7:09 PM, Vlastimil Babka wrote: >>> Also from reading http://lwn.net/Articles/383162/ I understand that >>> correctness >>> also depends on the

Re: [PATCH] Repeated fork() causes SLAB to grow without bound

2014-11-19 Thread Michel Lespinasse
On Wed, Nov 19, 2014 at 8:58 AM, Konstantin Khlebnikov wrote: > On Wed, Nov 19, 2014 at 7:09 PM, Vlastimil Babka wrote: >> Also from reading http://lwn.net/Articles/383162/ I understand that >> correctness >> also depends on the hierarchy and I wonder if there's a danger of >> reintroducing >>

Re: [PATCH] Repeated fork() causes SLAB to grow without bound

2014-11-19 Thread Konstantin Khlebnikov
On Wed, Nov 19, 2014 at 7:09 PM, Vlastimil Babka wrote: > On 11/19/2014 03:36 PM, Konstantin Khlebnikov wrote: >> On Wed, Nov 19, 2014 at 2:50 AM, Vlastimil Babka wrote: >>> On 11/19/2014 12:02 AM, Konstantin Khlebnikov wrote: On Wed, Nov 19, 2014 at 1:15 AM, Konstantin Khlebnikov wro

Re: [PATCH] Repeated fork() causes SLAB to grow without bound

2014-11-19 Thread Vlastimil Babka
On 11/19/2014 03:36 PM, Konstantin Khlebnikov wrote: > On Wed, Nov 19, 2014 at 2:50 AM, Vlastimil Babka wrote: >> On 11/19/2014 12:02 AM, Konstantin Khlebnikov wrote: >>> On Wed, Nov 19, 2014 at 1:15 AM, Konstantin Khlebnikov >>> wrote: On Tue, Nov 18, 2014 at 11:19 PM, Andrew Morton

Re: [PATCH] Repeated fork() causes SLAB to grow without bound

2014-11-19 Thread Konstantin Khlebnikov
On Wed, Nov 19, 2014 at 2:50 AM, Vlastimil Babka wrote: > On 11/19/2014 12:02 AM, Konstantin Khlebnikov wrote: >> On Wed, Nov 19, 2014 at 1:15 AM, Konstantin Khlebnikov >> wrote: >>> On Tue, Nov 18, 2014 at 11:19 PM, Andrew Morton >>> wrote: On Mon, 17 Nov 2014 21:41:57 -0500 Rik van Riel

Re: [PATCH] Repeated fork() causes SLAB to grow without bound

2014-11-18 Thread Rik van Riel
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 11/18/2014 03:19 PM, Andrew Morton wrote: > On Mon, 17 Nov 2014 21:41:57 -0500 Rik van Riel > wrote: > >> That way people can understand what the code does simply by >> looking at the changelog - no need to go find old linux-kernel >> mailing lis

Re: [PATCH] Repeated fork() causes SLAB to grow without bound

2014-11-18 Thread Vlastimil Babka
On 11/19/2014 12:02 AM, Konstantin Khlebnikov wrote: > On Wed, Nov 19, 2014 at 1:15 AM, Konstantin Khlebnikov > wrote: >> On Tue, Nov 18, 2014 at 11:19 PM, Andrew Morton >> wrote: >>> On Mon, 17 Nov 2014 21:41:57 -0500 Rik van Riel wrote: >>> > Because of the serial forking there does inde

Re: [PATCH] Repeated fork() causes SLAB to grow without bound

2014-11-18 Thread Konstantin Khlebnikov
On Wed, Nov 19, 2014 at 1:15 AM, Konstantin Khlebnikov wrote: > On Tue, Nov 18, 2014 at 11:19 PM, Andrew Morton > wrote: >> On Mon, 17 Nov 2014 21:41:57 -0500 Rik van Riel wrote: >> >>> > Because of the serial forking there does indeed end up being an >>> > infinite number of vmas. The initial

Re: [PATCH] Repeated fork() causes SLAB to grow without bound

2014-11-18 Thread Konstantin Khlebnikov
On Tue, Nov 18, 2014 at 11:19 PM, Andrew Morton wrote: > On Mon, 17 Nov 2014 21:41:57 -0500 Rik van Riel wrote: > >> > Because of the serial forking there does indeed end up being an >> > infinite number of vmas. The initial vma can never be deleted >> > (even though the initial parent process h

Re: [PATCH] Repeated fork() causes SLAB to grow without bound

2014-11-18 Thread Andrew Morton
On Mon, 17 Nov 2014 21:41:57 -0500 Rik van Riel wrote: > > Because of the serial forking there does indeed end up being an > > infinite number of vmas. The initial vma can never be deleted > > (even though the initial parent process has long since terminated) > > because the initial vma is refer

Re: [PATCH] Repeated fork() causes SLAB to grow without bound

2014-11-17 Thread Rik van Riel
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 11/17/2014 08:41 PM, Daniel Forrest wrote: > On Mon, Nov 17, 2014 at 04:02:12PM -0800, Andrew Morton wrote: >> On Fri, 14 Nov 2014 10:30:53 -0600 Daniel Forrest >> wrote: >> >>> There have been a couple of inquiries about the status of this >>> pa

Re: [PATCH] Repeated fork() causes SLAB to grow without bound

2014-11-17 Thread Daniel Forrest
On Mon, Nov 17, 2014 at 04:02:12PM -0800, Andrew Morton wrote: > On Fri, 14 Nov 2014 10:30:53 -0600 Daniel Forrest > wrote: > > > There have been a couple of inquiries about the status of this patch > > over the last few months, so I am going to try pushing it out. > > > > Andrea Arcangeli has

Re: [PATCH] Repeated fork() causes SLAB to grow without bound

2014-11-17 Thread Andrew Morton
On Fri, 14 Nov 2014 10:30:53 -0600 Daniel Forrest wrote: > There have been a couple of inquiries about the status of this patch > over the last few months, so I am going to try pushing it out. > > Andrea Arcangeli has commented: > > > Agreed. The only thing I don't like about this patch is the

[PATCH] Repeated fork() causes SLAB to grow without bound

2014-11-14 Thread Daniel Forrest
There have been a couple of inquiries about the status of this patch over the last few months, so I am going to try pushing it out. Andrea Arcangeli has commented: > Agreed. The only thing I don't like about this patch is the hardcoding > of number 5: could we make it a variable to tweak with sys