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

Re: [BUG] malloc error when using large file.

From
Jeff King <peff@peff.net>
Date
Jun 23, 2009, 18:42 UTC
Message-ID
<20090623184208.GA8165@coredump.intra.peff.net>
In-Reply-To
<B03A893ADFE80748942D13AFAF2845190C2D5D3BDC@ITSVLEX06.it.maxim-ic.internal>
On Tue, Jun 23, 2009 at 12:05:11AM -0700, Emmanuel Puerto wrote:
> Yes I have more that 2 Go available when a do it, and after this
> allocation error if I try to do a 'git add' with a 9Go file, I did not
> have any issue.

It may be that doing a whole bunch of files in one process is leading to some memory fragmentation that doesn't let malloc get a contiguous 2G slice. I'm not sure what else to suggest trying, except perhaps to search the list archives for past discussions on memory fragmentation.

Maybe somebody else has suggestions.
-Peff
Previous: Emmanuel PuertoNext: Linus Torvalds
Message 4 of 6 in “[BUG] malloc error when using large file.”
  1. Emmanuel PuertoJun 22, 2009
  2. Jeff KingJun 22, 2009
  3. Emmanuel PuertoJun 23, 2009
  4. Jeff KingJun 23, 2009
  5. Linus TorvaldsJun 23, 2009
  6. Emmanuel PuertoJun 24, 2009

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.