treemanifest: increase revlog lru cache from 15 to 100

Summary:
This lru cache keeps recently accessed revlogs in memory for fast
access. Originally we had it set to 15 since we estimated that would likely be
longer than most directory paths. It turns out this causes significant slow
downs in some of our mirroring jobs because big revlogs, like the root tree, may
be discarded from the lrucache.

So let's crank this up to 100. This should still bound memory nicely, while
giving us better cache hit rates.

Reviewed By: quark-zju

Differential Revision: D8879648

fbshipit-source-id: d7b6e4244a6e403b7299b61de5d469004667497c
This commit is contained in:
Durham Goode 2018-07-18 10:13:29 -07:00 committed by Facebook Github Bot
parent 6c71f5a3c0
commit 143e925e07

View File

@ -265,7 +265,7 @@ class manifestrevlogstore(object):
def __init__(self, repo):
self._store = repo.store
self._svfs = repo.svfs
self._revlogs = util.lrucachedict(15)
self._revlogs = util.lrucachedict(100)
self._cl = revlog.revlog(self._svfs, "00changelog.i")
self._repackstartlinkrev = 0