Re: git repack command on larger pack file

2015-10-28 Thread Junio C Hamano
Jeff King writes: > Git tries to take some shortcuts when repacking: if two objects are in > the same pack but not deltas, it will not consider making deltas out of > them. The logic is we would already have tried that while making the > original pack. But of course when you are

Re: git repack command on larger pack file

2015-10-28 Thread Junio C Hamano
Junio C Hamano writes: >> [1] This is all theory, and I don't know how well git actually finds >> such deltas, but it is probably better to have a dense tree of >> deltas rather than long chains. If you have a chain of N objects >> and would to add object N+1 to

Re: git repack command on larger pack file

2015-10-27 Thread Philip Oakley
From: "Junio C Hamano" Junio C Hamano writes: Sivakumar Selvam writes: ... So I thought of splitting the pack file into 4 GB chunks. ... Hmmm, what is "this issue"? I do not see anything surprising. While the explanation

Re: git repack command on larger pack file

2015-10-27 Thread Jeff King
On Sun, Oct 25, 2015 at 11:41:23PM -0700, Junio C Hamano wrote: > Also it has to write more data to disk (see below), it has to find a > good place to split, it has to adjust bookkeeping data at the pack > boundary, in general it has to do more, not less, to produce split > packs. It would be

Re: git repack command on larger pack file

2015-10-27 Thread Jeff King
On Tue, Oct 27, 2015 at 02:04:23AM +, Sivakumar Selvam wrote: >When I finished git repacking, I found 12 pack files with each 4 GB and > the total size is 48 GB. Again I ran the same git repack command by just > removing only --max-pack-size= parameter, the size of the single pack file >

git repack command on larger pack file

2015-10-26 Thread Sivakumar Selvam
Hi, I ran git repack on a single larger repository abc.git where the pack file size 34 GB. Generally it used to take 20-25 minutes in my server to complete the repacking. During repacking I noticed, disk usage was more, So I thought of splitting the pack file into 4 GB chunks. I used the

Re: git repack command on larger pack file

2015-10-26 Thread Junio C Hamano
Sivakumar Selvam writes: >I ran git repack on a single larger repository abc.git where the pack > file size 34 GB. Generally it used to take 20-25 minutes in my server to > complete the repacking. During repacking I noticed, disk usage was more, So > I thought of

Re: git repack command on larger pack file

2015-10-26 Thread Junio C Hamano
Junio C Hamano writes: > Sivakumar Selvam writes: > >> ... So >> I thought of splitting the pack file into 4 GB chunks. > ... > Hmmm, what is "this issue"? I do not see anything surprising. While the explanation might have been enlightening, the

Re: git repack command on larger pack file

2015-10-26 Thread Sivakumar Selvam
Junio C Hamano pobox.com> writes: > > Junio C Hamano pobox.com> writes: > > > Sivakumar Selvam gmail.com> writes: > > > >> ... So > >> I thought of splitting the pack file into 4 GB chunks. > > ... > > Hmmm, what is "this issue"? I do not see anything surprising. > > While the explanation