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

Re: Out of memory error during git push

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Aug 20, 2010, 12:51 UTC
Message-ID
<20100820125119.GA9762@burratino>
In-Reply-To
<4C6E46A4.8050502@kinet.ch>
(+cc: Nicolas, who knows the packing code pretty well)
Hi,
Thomas Jampen wrote:
Show 9 quoted lines
> I'm experiencing the following error while pushing a git repo (home
> directory) to my QNAP TS-210:
> 
> user@mypc:~$ git push origin master
> Counting objects: 12532, done.
> Delta compression using up to 2 threads.
> Compressing objects: 100% (8974/8974), done.
> fatal: Out of memory, malloc failed, 986.06 MiB | 1.65 MiB/s
> error: pack-objects died of signal 13

What version of git are you using? Do you have overcommit accounting enabled?

I am not sure this is the problem you are running into, but pack-objects like many other parts of git uses mmap() to read packfiles, which can make the address space usage high.

Show 11 quoted lines
> I've searched the internet and found suggestions to try to repack with
> lower values for 'depth', 'window' and 'windowMemory'. I used 3, 3, 50
> respectively, but a push after the repack command resulted in the same
> error.
> 
> I tried git fsck which reported a few dangling blobs only and I got the
> same error again during the next push.
> 
> I watched /proc/meminfo and /proc/swaps on the NAS while pushing and saw
> that there are always 20-50MB of free RAM and that from 512MB swap space
> only about 180MB are used.
I don't know --- this is out of my depth. :)

Good luck, Jonathan

Previous: Thomas JampenNext: Thomas Jampen
Message 2 of 8 in “Out of memory error during git push”
  1. Thomas JampenAug 20, 2010
  2. Jonathan NiederAug 20, 2010
  3. Thomas JampenAug 20, 2010
  4. Jonathan NiederAug 20, 2010
  5. Thomas JampenAug 20, 2010
  6. Nicolas PitreAug 20, 2010
  7. Nicolas PitreAug 20, 2010
  8. Thomas JampenAug 20, 2010

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.