Bug 1491000

Summary: infra: git clone is really slow. Is it it time for a `git gc` on the repo?
Product: [Community] GlusterFS Reporter: Kaleb KEITHLEY <kkeithle>
Component: project-infrastructureAssignee: Nigel Babu <nigelb>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: mainlineCC: bugs, gluster-infra, kkeithle, mscherer
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-09-13 12:20:48 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Kaleb KEITHLEY 2017-09-12 17:41:12 UTC
Description of problem:


Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:

Actual results:

Expected results:

Additional info:

Comment 1 M. Scherer 2017-09-12 23:32:22 UTC
Ok so what do you mean by "really slow" ?
Can we get a idea of the time it take for you, so we can measure improvement ?

(as I was under the impression that gerrit was doing a git gc by itself) 
Also, to be sure, that's for the main git repo on gerrit, yes ?

Comment 2 Kaleb KEITHLEY 2017-09-13 11:58:56 UTC
git.gluster.org. Is that the same as gerrit?

fedora 26 vm running on my desktop:
%time git clone ssh://kalebskeithley@git.gluster.org/glusterfs.git dummy
Cloning into 'dummy'...
Enter passphrase for key '/home/kkeithle/.ssh/fedora_id_rsa': 
remote: Counting objects: 7908, done
remote: Finding sources: 100% (1610/1610)
remote: Total 150039 (delta 641), reused 149842 (delta 641)
Receiving objects: 100% (150039/150039), 69.55 MiB | 114.00 KiB/s, done.
Resolving deltas: 100% (95302/95302), done.
23.877u 2.510s 11:20.47 3.8%	0+0k 104+208696io 0pf+0w

majority of the time is spent in Receiving objects.

But on a fedora 25 vm also running on the same desktop Receiving objects is nearly instantaneous.

Comment 3 Nigel Babu 2017-09-13 12:20:48 UTC
There's an automatic GC run every Sunday. A git clone takes about 30 seconds on my machine limited only by network speed.

git.gluster.org is a CNAME to review.gluster.org. On ssh, it should do the same thing. On HTTP(S), it points to cgit.