[OpenStack-Infra] Fun (important!) project: optimize Gerrit's nova git repo

James E. Blair corvus at inaugust.com
Mon Jun 13 14:58:18 UTC 2016


Zaro <zaro0508 at gmail.com> writes:

> I forgot to mention that the apps we use (gerrit and cgit) to host our
> git repos do read the repos directly from disk therefore I think that
> performing a gc on the repos would provide a performance improvement
> (CPU and memory utilization) to gerrit and cgit.  It might be
> difficult to quantify how much of an improvement since both those apps
> do some cacheing of the repo data.  Anyways I think there would be
> other benefits of `git gc` over `gerrit repack -adf` besides just
> recovering disk space.  -Khai

What was the effect of 'git prune' with 'git gc'?  In my original
message, I mentioned that the two together had the greatest effect on
disk space -- the change in ref structure could have a significant
impact to cloning time as well, but also to our ability to issue
corrective modifications to the repos.

-Jim



More information about the OpenStack-Infra mailing list