Re: GIT max file size.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Thu, 8 May 2008, epankala@xxxxxxxxx wrote:
> 
> I received "fatal: Out of memory, malloc failed" error when I tried to
> check in file of ~2.5G

There's two issues there.

One is that a lot of what git does is simply "whole file at a time". The 
diff machinery, and a lot of the core stuff, simply just expects to be 
able to mmap() or read the whole file in one go. So on a 32-bit 
architecture, you'll generally be limited to the size of the address 
space, not to anything else.

The other thing is then that (partly because of the above) there probably 
are places where we haven't been as careful about size-type things as we 
could have been. A lot of the code uses size_t, but I bet not everything 
does.

		Linus
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux