Bug 1491000 - infra: git clone is really slow. Is it it time for a `git gc` on the repo?
Summary: infra: git clone is really slow. Is it it time for a `git gc` on the repo?
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: GlusterFS
Classification: Community
Component: project-infrastructure
Version: mainline
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Nigel Babu
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-09-12 17:41 UTC by Kaleb KEITHLEY
Modified: 2017-09-13 12:20 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-09-13 12:20:48 UTC
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:


Attachments (Terms of Use)

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

$summary

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


How reproducible:


Steps to Reproduce:
1.
2.
3.

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.


Note You need to log in before you can comment on or make changes to this bug.