From: "Jonathan Blanton" <jonathan.blanton@gmail.com>
To: git@vger.kernel.org
Subject: malloc fails when dealing with huge files
Date: Wed, 10 Dec 2008 10:42:29 -0500 [thread overview]
Message-ID: <43c10b980812100742t3a65466yb9b7310bfedb2b18@mail.gmail.com> (raw)
I'm using Git for a project that contains huge (multi-gigabyte) files.
I need to track these files, but with some of the really big ones,
git-add aborts with the message "fatal: Out of memory, malloc failed".
Also, git-gc sometimes fails because it can't allocate enough memory.
I've been using the "--window-memory" option to git- repack to work
around the git-gc problem, but I don't know of a similar trick for
git-add. Is there any way (aside from adding more memory, of course)
that I can deal with these huge files? I'm using git 1.5.6.2 on
Debian 4.0.
Thanks in advance.
Jonathan Blanton
next reply other threads:[~2008-12-10 15:44 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-10 15:42 Jonathan Blanton [this message]
2008-12-10 19:32 ` malloc fails when dealing with huge files Linus Torvalds
2008-12-11 0:16 ` Jeff Whiteside
2008-12-11 9:11 ` Johannes Schindelin
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=43c10b980812100742t3a65466yb9b7310bfedb2b18@mail.gmail.com \
--to=jonathan.blanton@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).