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

Re: git-repack: Outof memory

From
Shawn Pearce <spearce@spearce.org>
Date
Sep 18, 2006, 00:23 UTC
Message-ID
<20060918002357.GA19727@spearce.org>
In-Reply-To
<4b3406f0609170543p68d96b9x9ba0c5a74d9e89e8@mail.gmail.com>
Dongsheng Song <dongsheng.song@gmail.com> wrote:
Show 10 quoted lines
> finished, thanks a lot.
> 
> $ ls -l .git/objects/pack/
> total 1675466
> -rw-r--r-- 1 www-data www-data    2964992 Sep 17 19:17
> pack-b09c57c25e4459f6365b5d27139abfd93bf1c86f.idx
> -rw-r--r-- 1 www-data www-data 1711037142 Sep 17 19:17
> pack-b09c57c25e4459f6365b5d27139abfd93bf1c86f.pack
> 
> If the pack files larger than 2.5g,  how can  I repack it on i686 ?
*youch* A 1.5 GiB pack file?

Your files apparently do not delta compress very well. I fear that you are going to bump up against address space limitations soon on 32 bit systems. Then you will bump up against the 4 GiB pack file size limit. Which means you will need to use several packs and avoid the '-a' flag when calling git-repack.

Nico was suggesting using the default window size (rather than --window=64) as larger windows requires more memory during repack. But you may also need the mmap window code I'm working on. I better hurry up and get that into Junio's testing branches. :-)

-- 
Shawn.
Previous: Nicolas PitreNext: Junio C Hamano
Message 4 of 6 in “git-repack: Outof memory”
  1. Dongsheng SongSep 17, 2006
  2. Shawn PearceSep 17, 2006
  3. Nicolas PitreSep 17, 2006
  4. Shawn PearceSep 18, 2006
  5. Junio C HamanoSep 18, 2006
  6. Shawn PearceSep 18, 2006

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.