From: Jeff King Date: Tue, 23 Jun 2009 18:42:08 GMT Subject: Re: [BUG] malloc error when using large file. Message-ID: <20090623184208.GA8165@coredump.intra.peff.net> In-Reply-To: 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