Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

When is garbage collection being runned at the serverside repositories

Sander.Hoevers April 1, 2020

We have many git repositories in bitbucket. For optimal performance I want to be sure that my repositories are being garbage collected.

 

How or when is git gc executed?

1 answer

1 accepted

0 votes
Answer accepted
Daniil Penkin
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 1, 2020

Hello @Sander.Hoevers ,

Garbage collection is triggered when you push commits to your repository, however it doesn't happen on every push because GC is potentially quite expensive operation, especially when the repository becomes large. Our Git configuration has some heuristics around when and what kind of GC to trigger (it has several levels of "aggressiveness").

Note that GC shouldn't really affect performance in any way because Git walks over the graph of objects that are still alive when performing modifications. It is more a matter of the repository size reported by Git to reflect actual size of alive objects.

Hope this sheds some light on how GC works. Let me know if you have any questions.

Cheers,
Daniil

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events