Slow performance with 16,000 commits / 16,000 tags
Created by: linagee
I have a repo that has about 16,000 commits and 16,000 tags. When I pull it up in GitLab, it takes around 10 seconds to render the commits page and 4 seconds to render the tags page. Is there any way to get this to come up faster? Looking at 'top' inside the server, it seems the problem is one ruby process on one core using 100% cpu. (Looks like a unicorn worker.) The server is using an AMD Phenom II X4 975. If I were to switch to an Intel Core i7-4790K which apparently has better single core performance, do you think I would see an improvement? Is there anything I can tune anywhere that would help? It does not appear to be running out of RAM and it has 8GB available. It does not appear to be I/O bound looking at iowait. Thanks.
edit: It seems that the commits page I was pulling up only lists 40 commits. So, this command should emulate what its doing: (I've set my git pager to cat) Not sure why this takes about a second where GitLab takes 10x as long to display the same thing?
time git log --all --oneline -n 40 >/dev/null
real 0m0.895s
user 0m0.868s
sys 0m0.028s