From: Junio C Hamano Date: Wed, 27 Mar 2013 15:03:58 GMT Subject: Re: propagating repo corruption across clone Message-ID: <7v1ub0rijl.fsf@alter.siamese.dyndns.org> In-Reply-To: Sitaram Chamarty writes: > On Wed, Mar 27, 2013 at 9:17 AM, Junio C Hamano wrote: > >> To be paranoid, you may want to set transfer.fsckObjects to true, >> perhaps in your ~/.gitconfig. > > do we have any numbers on the overhead of this? > > Even a "guesstimate" will do... On a reasonably slow machine: $ cd /project/git/git.git && git repack -a -d $ ls -hl .git/objects/pack/*.pack -r--r--r-- 1 junio src 44M Mar 26 13:18 .git/objects/pack/pack-c40635e5ee2b7094eb0e2c416e921a2b129bd8d2.pack $ cd .. && git --bare init junk && cd junk $ time git index-pack --strict --stdin <../git.git/.git/objects/pack/*.pack real 0m13.873s user 0m21.345s sys 0m2.248s That's about 3.2 Mbps? Compare that with the speed your other side feeds you (or your line speed could be the limiting factor) and decide how much you value your data.