Re: [PATCH 4/5] Add a freeing threshold for the garbage collector.

2011-10-10 Thread Richard Guenther
On Mon, Oct 10, 2011 at 3:58 PM, Andi Kleen wrote: > On Mon, Oct 10, 2011 at 12:20:53PM +0200, Richard Guenther wrote: >> On Sun, Oct 9, 2011 at 9:55 PM, Andi Kleen wrote: >> > From: Andi Kleen >> > >> > Add a threshold to avoid freeing pages back too early to the OS. >> > This avoid virtual mem

Re: [PATCH 4/5] Add a freeing threshold for the garbage collector.

2011-10-10 Thread Andi Kleen
On Mon, Oct 10, 2011 at 12:20:53PM +0200, Richard Guenther wrote: > On Sun, Oct 9, 2011 at 9:55 PM, Andi Kleen wrote: > > From: Andi Kleen > > > > Add a threshold to avoid freeing pages back too early to the OS. > > This avoid virtual memory map fragmentation. > > > > Based on a idea from Honza >

Re: [PATCH 4/5] Add a freeing threshold for the garbage collector.

2011-10-10 Thread Richard Guenther
On Sun, Oct 9, 2011 at 9:55 PM, Andi Kleen wrote: > From: Andi Kleen > > Add a threshold to avoid freeing pages back too early to the OS. > This avoid virtual memory map fragmentation. > > Based on a idea from Honza Less than 20% looks high. Shouldn't ggc-free-min be enough to avoid fragmentati

[PATCH 4/5] Add a freeing threshold for the garbage collector.

2011-10-09 Thread Andi Kleen
From: Andi Kleen Add a threshold to avoid freeing pages back too early to the OS. This avoid virtual memory map fragmentation. Based on a idea from Honza ggc/doc/: 2011-10-08 Andi Kleen PR other/50636 * invoke.texi (ggc-free-threshold, ggc-free-min): Add. ggc/: 2011-10-08