From: Junio C Hamano <gitster@pobox.com>
To: Phil Susi <psusi@ubuntu.com>
Cc: git@vger.kernel.org
Subject: Re: git-repack keeps running out of memory
Date: Mon, 01 Jun 2015 11:43:01 -0700 [thread overview]
Message-ID: <xmqqlhg35ky2.fsf@gitster.dls.corp.google.com> (raw)
In-Reply-To: <556CA6C8.6000804@ubuntu.com> (Phil Susi's message of "Mon, 01 Jun 2015 14:39:04 -0400")
Phil Susi <psusi@ubuntu.com> writes:
> I keep having git-repack run out of virtual memory ( 32 bit system )
> when trying to repack my linux kernel repo. It keeps making it right
> up to 99% then barfing saying mmap failed: Cannot allocate memory.
>
> I thought I could help this by limiting the pack size, and using
> --window-memory to limit the memory usage, but it still happens with
> this full command line:
>
> git repack -a -d --max-pack-size=500m -f -F --depth=20 --window=250
> --window-memory=500m
>
> The key factor seems to be the --window... with 50 it works fine, but
> with 100 or more, even with the very low --window-memory limit, it
> crashes.
Unfortunately, that is totally expected. Window tells us to keep
enough information to compare with that many objects in-core. I do
not think max-pack-size would affect much.
next prev parent reply other threads:[~2015-06-01 18:43 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-01 18:39 git-repack keeps running out of memory Phil Susi
2015-06-01 18:43 ` Junio C Hamano [this message]
2015-06-01 19:07 ` Phil Susi
2015-06-01 20:58 ` Jeff King
2015-06-02 0:04 ` Phillip Susi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=xmqqlhg35ky2.fsf@gitster.dls.corp.google.com \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=psusi@ubuntu.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.