From: Jeff King Date: Mon, 22 Jun 2009 21:15:42 GMT Subject: Re: [BUG] malloc error when using large file. Message-ID: <20090622211542.GA19364@coredump.intra.peff.net> In-Reply-To: On Mon, Jun 22, 2009 at 02:54:18AM -0700, Emmanuel Puerto wrote: > I use Git with some Virtual Machine and I have an issue with 2 of them. > When I use some VM I have created with a "pre-allocated" disk split > into a 2Go file. For example a "ls" give: > [...] > So if I just do a "git init" and after do a "git add -A" I have the > following error: > fatal: Out of memory, malloc failed Many operations in git assume that a whole file can be held in memory at once. Do you actually have 2G available on the machine? Are there any OS limits that might be a problem? -Peff