git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: Nicolas Pitre <nico@fluxnic.net>
To: Alif Wahid <alif.wahid@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: Git exhausts memory.
Date: Sat, 02 Apr 2011 11:05:38 -0400 (EDT)	[thread overview]
Message-ID: <alpine.LFD.2.00.1104021103130.28032@xanadu.home> (raw)
In-Reply-To: <BANLkTin=yUtzbZjs_92FHDfs62VFFuLHwg@mail.gmail.com>

On Sat, 2 Apr 2011, Alif Wahid wrote:

> Hi there,
> 
> I'm using Git v1.7.1 on Ubuntu v10.10 and unfortunately Git seems to
> regularly exhaust the memory on my machine and fails to compress loose
> objects and/or collect garbage.
> 
> My Intel based dual-core machine has 2 GB of RAM and 4 GB of swap
> space. I need to track a working tree with a handful of really large
> tarballs that rarely change and loads of really small text files that
> change frequently. What I'm seeing is that over time whenever "git gc"
> runs automatically it fails with the message "fatal: Out of memory,
> malloc failed". So I've been trying to manually run "git repack -ad
> --window-memory=1g --max-pack-size=1g" in the hope that Git will not
> exceed the physical memory. But I still get the same error message :(

Don't use --max-pack-size.  That won't help here.

How large are those tar files?


Nicolas

  reply	other threads:[~2011-04-02 15:05 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-02  5:01 Git exhausts memory Alif Wahid
2011-04-02 15:05 ` Nicolas Pitre [this message]
2011-04-03  9:15   ` Alif Wahid
2011-04-03 15:18     ` Nicolas Pitre
2011-04-04 12:52       ` Alif Wahid
2011-04-04 14:57         ` Nguyen Thai Ngoc Duy
2011-04-05  2:22           ` David Fries
2011-04-05  4:35             ` Alif Wahid
2011-04-05 11:13               ` Nguyen Thai Ngoc Duy
2011-04-05 11:26                 ` Alif Wahid
2011-04-05 16:48           ` Holger Hellmuth
2011-04-05 17:06             ` Shawn Pearce
2011-04-05 17:44               ` Junio C Hamano
2011-04-05 20:56                 ` Nicolas Pitre
2011-04-05 22:16                   ` Junio C Hamano
2011-04-05 22:19                     ` Shawn Pearce
2011-04-06  0:34                     ` Nicolas Pitre
2011-04-06 15:51                 ` Jay Soffian
2011-04-06 16:33                   ` Junio C Hamano

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

  List information: http://vger.kernel.org/majordomo-info.html

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=alpine.LFD.2.00.1104021103130.28032@xanadu.home \
    --to=nico@fluxnic.net \
    --cc=alif.wahid@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.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).