From: Ken Pratt Date: Mon, 11 Aug 2008 07:43:27 GMT Subject: Re: pack operation is thrashing my server Message-ID: In-Reply-To: <20080811030444.GC27195@spearce.org> > Have you tried something like this? > > [core] > packedGitWindowSize = 16m > packedGitLimit = 64m > > [pack] > threads = 1 > windowMemory = 64m > deltaCacheSize = 1m > > On a 64 bit system packedGitWindowSize and packedGitLimit have very > large thresholds which will cause it to mmap in the entire pack file. > You may need to try even smaller settings than these; 256m physical > memory isn't a lot when dealing with a repository 180m in size. > Especially on a 64 bit system. I just went as low as: [core] packedGitWindowSize = 1m packedGitLimit = 4m [pack] threads = 1 windowMemory = 4m deltaCacheSize = 128k And it didn't make a dent in memory usage. Server is still swapping within ~10 seconds of starting object compression. I'm starting to think repacking is just not feasible on a 64-bit server with 256MB of RAM (which is a very popular configuration in the VPS market). Thanks! Ken