Re: [FYI] very large text files and their problems.
- From
Nguyen Thai Ngoc Duy <pclouds@gmail.com>
- Date
- Feb 22, 2012, 16:18 UTC
- Message-ID
- <CACsJy8Bdbegs7QdztvsFnKPcpAX5UL7s7uc37wF3_nF4kJQjrQ@mail.gmail.com>
- In-Reply-To
- <20120222154926.GC11202@pomac.netswarm.net>
On Wed, Feb 22, 2012 at 10:49 PM, Ian Kumlien <pomac@vapor.com> wrote:
> Hi, > > We just saw a interesting issue, git compressed a ~3.4 gb project to ~57 mb.
How big are those files? How many of them? How often do they change?
Show 6 quoted lines
> But when we tried to clone it on a big machine we got: > > fatal: Out of memory, malloc failed (tried to allocate > 18446744072724798634 bytes) > > This is already fixed in the 1.7.10 mainline - but it also seems like
Does 1.7.9 have this problem?
Show 8 quoted lines
> git needs to have atleast the same ammount of memory as the largest > file free... Couldn't this be worked around? > > On a (32 bit) machine with 4GB memory - results in: > fatal: Out of memory, malloc failed (tried to allocate 3310214313 bytes) > > (and i see how this could be a problem, but couldn't it be mitigated? or > is it bydesign and intended behaviour?)
I think that it's delta resolving that hogs all your memory. If your files are smaller than 512M, try lower core.bigFileThreshold. The topic jc/split-blob, which stores a big file are several smaller pieces, might solve your problem. Unfortunately the topic is not complete yet.
-- Duy