From: Andreas Ericsson Date: Wed, 18 Apr 2012 08:49:07 GMT Subject: Re: gc --aggressive Message-ID: <4F8E8003.6000206@op5.se> In-Reply-To: <20120417221849.GA11936@sigill.intra.peff.net> On 04/18/2012 12:18 AM, Jeff King wrote: > On Tue, Apr 17, 2012 at 03:17:28PM -0700, Junio C Hamano wrote: > >>> How many cores are there on this box? Have you tried setting >>> pack.windowMemory to (12 / # of cores) or thereabouts? >> >> Hrm, from the end-user's point of view, it appears that pack.windowMemory >> ought to mean the total without having to worry about the division of it >> across threads (which the implementation should be responsible for). > > Agreed. I had to look in the code to check which it meant. I'm not sure > we can change it without regressing existing users, though. > Introduce a new one. core.maxmemoryusage = , which acts as an upper bound in all codepaths where we actually keep track. -- Andreas Ericsson andreas.ericsson@op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 Considering the successes of the wars on alcohol, poverty, drugs and terror, I think we should give some serious thought to declaring war on peace.