Re: git-repack: Outof memory
From: Shawn Pearce <hidden>
Date: 2016-06-15 22:42:40
Dongsheng Song [off-list ref] wrote:
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.