Re: pack operation is thrashing my server
- From
Shawn O. Pearce <spearce@spearce.org>
- Date
- Aug 11, 2008, 15:59 UTC
- Message-ID
- <20080811155959.GG26363@spearce.org>
- In-Reply-To
- <32541b130808110840p1287426fpeef967a9ff4fb094@mail.gmail.com>
Avery Pennarun <apenwarr@gmail.com> wrote:
Show 12 quoted lines
> On Mon, Aug 11, 2008 at 11:01 AM, Shawn O. Pearce <spearce@spearce.org> wrote: > > On the up side, packing should only be consuming huge memory like > > this when it needs to move loose objects into a pack file. I think > > Martin Langhoff suggested packing this on your laptop then using > > rsync over SSH to copy the pack file and .idx file to the server, so > > the server didn't have to spend time figuring out the deltas itself. > > Do you need to also introduce a ".keep" file to get the benefit from > this? I had a repo with some very large objects, and it was killing > my low-memory server *every* time I did "git gc", until I repacked on > another system, created the .keep file, and rsynced it back. Does > that make sense?
No, the ".keep" file wouldn't have an impact. Delta reuse (the feature I was alluding to) works whether or not there is a .keep file present.
I wonder if your "git gc" was using --aggressive?
-- Shawn.