git/list[1] front-page[2] threads[3] people[4] search[5] about
 

malloc fails when dealing with huge files

From
JBJonathan Blanton <jonathan.blanton@gmail.com>
Date
Dec 10, 2008, 15:42 UTC
Message-ID
<43c10b980812100742t3a65466yb9b7310bfedb2b18@mail.gmail.com>
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: Linus Torvalds
Message 1 of 4 in “malloc fails when dealing with huge files”
  1. Jonathan BlantonDec 10, 2008
  2. Linus TorvaldsDec 10, 2008
  3. Jeff WhitesideDec 11, 2008
  4. Johannes SchindelinDec 11, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.