Skip to content

Object Hash detection takes 3.5% of Gitaly CPU usage

Detecting the object hash of the repository accumulates to using 3.5% of the CPU. Perhaps we could cache this or find other ways to reduce this?

https://console.cloud.google.com/profiler/gitaly/cpu;filter=showStacks:gitlab.com%2Fgitlab-org%2Fgitaly%2Fv16%2Finternal%2Fgit.DetectObjectHash?referrer=search&project=gitlab-production

image.png

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information