In my Phabricator instance I have several external hosting repositories. Some git repos, one small Mercurial, and one large Mercurial repo with over 1000 branches. CPUs load jump up to 100% whenever I have the large mercurial repo turned on. I looked at the process log and see around 100 - 200 hg calls at all times on the server.
The large Mercurial has been fully imported into the database already, at least as reported by PH. And i don't see any write going into the database while all the hg calls are happening.
It doesn't seem to occur with other repositories.
Uptime
```
root@andyt-ubuntu:/etc/apache2# uptime
09:43:35 up 2 days, 18:10, 4 users, load average: 58.86, 55.50, 49.40
```
hg call processes
```
ph-daem+ 22367 0.0 0.0 37264 5304 ? R 09:44 0:00 /usr/bin/python /usr/bin/hg log --template={node} --rev '43fb2866610810f9d375c7fb830cb5187844c068'
ph-daem+ 22368 0.0 0.0 37264 5464 ? R 09:44 0:00 /usr/bin/python /usr/bin/hg log --template={node} --rev '53ac7368a8706e2593005fd6f4f28c8f29d91ed2'
ph-daem+ 22369 0.0 0.0 37128 5260 ? R 09:44 0:00 /usr/bin/python /usr/bin/hg log --template={node} --rev '62dcbd2c6d220b0f14b0f44134fb0090bff43ea4'
ph-daem+ 22370 0.0 0.0 37264 5468 ? R 09:44 0:00 /usr/bin/python /usr/bin/hg log --template={node} --rev 'dd10c3338cf591fdae61005804bad0cae8916905'
ph-daem+ 22371 0.0 0.0 4444 656 ? S 09:44 0:00 sh -c hg log --template='{node}' --rev ''\''5c75504853979ec2e31e5b1dd558519f589a440c'\'''
ph-daem+ 22373 0.0 0.0 29708 4376 ? R 09:44 0:00 /usr/bin/python /usr/bin/hg log --template={node} --rev '5c75504853979ec2e31e5b1dd558519f589a440c'
ph-daem+ 22374 0.0 0.0 4444 656 ? S 09:44 0:00 sh -c hg log --template='{node}' --rev ''\''a6f2142cd8cf328c3db6bd8bb4cc389195b11307'\'''
ph-daem+ 22375 0.0 0.0 4444 652 ? S 09:44 0:00 sh -c hg log --template='{node}' --rev ''\''52238cf1a495429a7b32087de839c03269a03fc3'\'''
ph-daem+ 22376 0.0 0.0 4444 656 ? S 09:44 0:00 sh -c hg log --template='{node}' --rev ''\''241ff3a36a6038d88b43c9ecdeaadc3f84d0361a'\'''
ph-daem+ 22377 0.0 0.0 20468 3152 ? R 09:44 0:00 /usr/bin/python /usr/bin/hg log --template={node} --rev 'a6f2142cd8cf328c3db6bd8bb4cc389195b11307'
ph-daem+ 22378 0.0 0.0 20472 3400 ? R 09:44 0:00 /usr/bin/python /usr/bin/hg log --template={node} --rev '52238cf1a495429a7b32087de839c03269a03fc3'
ph-daem+ 22379 0.0 0.0 4444 104 ? R 09:44 0:00 sh -c hg log --template='{node}' --rev ''\''241ff3a36a6038d88b43c9ecdeaadc3f84d0361a'\'''
ph-daem+ 22380 0.0 0.0 4444 652 ? S 09:44 0:00 sh -c hg log --template='{node}' --rev ''\''938c969d7b398ec5b7c5df43f9717622eb8d92f5'\'''
```