On Thu, Apr 3, 2014 at 8:53 PM, Shawn Pearce <
s...@google.com> wrote:
>> I'll give it a try, but I don't expect it to help much. I don't think
>> that phase is slow because of many objects, but because the counting
>> itself is slow. And my initial question was targeting at: What server
>> hardware upgrade would make countering faster?
>
> CPU and RAM. Its mostly CPU and bound and disk IO bound. RAM to make
> sure data is cached in memory and is not running at disk seek speeds,
> and CPU as it is computationally intensive.
Thanks.
> But really, run `git gc`. Part of what makes it slow is the disk data
> is not in an optimized format. `git gc` not only removes garbage, it
> also re-optimizes the on disk format to improve read performance. A
> periodic `git gc` can improve counting performance without doing a
> hardware upgrade.
I was already wondering how often Gerrit would run "git gc" on its
repos, but it seems to me you're saying that Gerrit is *never* running
it automatically. Is that correct? Is there not even a plugin for
this?
--
Sebastian Schuberth