From: Nguyen Thai Ngoc Duy Date: Mon, 09 Aug 2010 09:57:00 GMT Subject: Re: Git server eats all memory Message-ID: In-Reply-To: On Mon, Aug 9, 2010 at 7:33 PM, Ivan Kanis wrote: > Nguyen Thai Ngoc Duy wrote: > >> Can you send me massif report of git pack-objects? It'd be interesting >> to see how memory is allocated. > > Hi Nguyen, > > I have attached the massif report. Thanks. It does not look like it used a lot of memory (~50MB) (viewed with ms_print). Git allocates 32 bytes per tree and 48 per commit plus all tree contents, and all that will stay in memory until the end. This command on git already gives me ~40MB peak. Are you sure you ran it on your big repo? echo|valgrind --tool=massif ./git pack-objects --all --stdout > /dev/null -- Duy