Hi team,When I clone a remote repository, git clone stays in theremote: counting objects : (*/2000000)remote: finding sources: (*/14000000)stage For more than an hour, the number * increases by 4,000 per second on average.
Excuse me, how can I speed up the git clone? It's best to tune it through the gerrit configuration file.Gerrit version v3.11Thanks
--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en
---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/repo-discuss/CAG5NPhpLFTQwhQScxVmzkqQsex6EcU-3nCeJPFyp6w4YX3tSCg%40mail.gmail.com.
On 1 Jun 2025, at 03:31, Gavin <gavin....@gmail.com> wrote:
repo.git]# git count-objects -vH
count: 124171
size: 507.07 MiB
in-pack: 15112959
packs: 1072
To view this discussion visit https://groups.google.com/d/msgid/repo-discuss/CAG5NPhqsJXdec8_Ee-34x_u-bnwU72ttU_Ohv-dwARH0PS2Few%40mail.gmail.com.
repo.git]# git count-objects -vH
count: 124171
size: 507.07 MiB
in-pack: 15112959
packs: 1072
size-pack: 5.63 GiB
prune-packable: 8221
garbage: 0
size-garbage: 0
On 1 Jun 2025, at 21:15, Matthias Sohn <matthi...@gmail.com> wrote:On Sun, Jun 1, 2025 at 3:31 AM Gavin <gavin....@gmail.com> wrote:repo.git]# git count-objects -vH
count: 124171the repo has 124k loose objectssize: 507.07 MiB
in-pack: 15112959
packs: 1072and a ton of pack filessize-pack: 5.63 GiB
prune-packable: 8221
garbage: 0
size-garbage: 0You need to schedule running jgit gc or git gc on all repositories on a regular basis.
We run it on most repositories once a day and on busy repositories every couple of hoursand on All-Users every 30 minutes.
If a repository has more than a couple of thousand loose objects and / or more than a few dozen packfilesperformance will degrade since JGit runs a binary search on the indexes of all pack files to lookup objectsit wants to load and in addition checks for loose objects with the id of the object it's looking for.
The git bitmap index uses the file extension .bitmap, it's stored in the objects/pack/ directory.
To view this discussion visit https://groups.google.com/d/msgid/repo-discuss/CAKSZd3TFAxk_hjM2tKC5YbXg9SEoor36oyOmCYJN0BJFY40_Cw%40mail.gmail.com.