git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git repack command on larger pack file
@ 2015-10-26  5:57 Sivakumar Selvam
  2015-10-26  6:41 ` Junio C Hamano
  0 siblings, 1 reply; 9+ messages in thread
From: Sivakumar Selvam @ 2015-10-26  5:57 UTC (permalink / raw)
  To: git

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 following
command to do repacking.
   git repack -A -b -d -q --depth=50 --window=10 abc.git

   After adding --max-pack-size=4g to the above command again I ran to split
pack files..
   git repack -A -b -d -q --depth=50 --window=10 --max-pack-size=4g abc.git
 
   When I finished running, I found 12 pack files with each 4 GB and the
size is 48 GB. Now my disk usage has increased by 14 GB. Again, I ran to
check the performance, but the size (48 GB) and time to repacking takes
another 35 minutes more. Why this issue? If we split a larger pack file,
repacking takes more time with more disk usage for storing pack files. Any
thoughts on this why this happens?

Thanks,
Sivakumar Selvam.

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2015-10-28  6:47 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-26  5:57 git repack command on larger pack file Sivakumar Selvam
2015-10-26  6:41 ` Junio C Hamano
2015-10-26  7:11   ` Junio C Hamano
2015-10-27  2:04     ` Sivakumar Selvam
2015-10-27 23:44       ` Jeff King
2015-10-28  6:23         ` Junio C Hamano
2015-10-28  6:47           ` Junio C Hamano
2015-10-27  8:52     ` Philip Oakley
2015-10-27 23:47   ` Jeff King

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).