Re: Git server eats all memory
- From
Nguyen Thai Ngoc Duy <pclouds@gmail.com>
- Date
- Aug 9, 2010, 09:57 UTC
- Message-ID
- <AANLkTinT-taMqB87moLZ_CLio2USnxsriq6U0EJvSGte@mail.gmail.com>
- In-Reply-To
- <wesbp9cnnag.fsf@kanis.fr>
On Mon, Aug 9, 2010 at 7:33 PM, Ivan Kanis <expire-by-2010-08-14@kanis.fr> wrote:
Show 8 quoted lines
> Nguyen Thai Ngoc Duy <pclouds@gmail.com> 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