git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Simon Strandgaard <neoneye@gmail.com>
To: git@vger.kernel.org
Subject: Re: git gc - out of memory
Date: Sun, 15 Nov 2009 19:33:27 +0100	[thread overview]
Message-ID: <df1390cc0911151033h2825053fxafe5bb2bb788fbb2@mail.gmail.com> (raw)
In-Reply-To: <hdp44d$4ml$1@ger.gmane.org>

On Sun, Nov 15, 2009 at 3:44 PM, Alejandro Riveira <ariveira@gmail.com> wrote:
> El Sat, 14 Nov 2009 20:26:00 +0100, Simon Strandgaard escribió:
[snip]
>> What can I do?
>
> run « git repack -adf --window=memory » on the repo where memory is
> escaled apropiately for your machine ?

Thank you Alejandro, it now works!

I think the default is 10, so I tried with window=5 and
it completed a full repack.

$ git repack -adf --window=5
Counting objects: 5934, done.
Compressing objects: 100% (5711/5711), done.
Writing objects: 100% (5934/5934), done.
Total 5934 (delta 3733), reused 0 (delta 0)
Removing duplicate objects: 100% (256/256), done.
$ git gc
Counting objects: 5934, done.
Compressing objects: 100% (1978/1978), done.
Writing objects: 100% (5934/5934), done.
Total 5934 (delta 3733), reused 5934 (delta 3733)
$


Now that it works..
Should I report the original issue as a bug somewhere?
e.g. malloc failed sounds like a bug.



Kind regards
Simon Strandgaard - http://gdtoolbox.com/

  reply	other threads:[~2009-11-15 18:33 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-14 19:26 git gc - out of memory Simon Strandgaard
2009-11-15 14:44 ` Alejandro Riveira
2009-11-15 18:33   ` Simon Strandgaard [this message]
2009-11-16 23:10     ` Alejandro Riveira

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=df1390cc0911151033h2825053fxafe5bb2bb788fbb2@mail.gmail.com \
    --to=neoneye@gmail.com \
    --cc=git@vger.kernel.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).