thrashWindow property
How soon after its eviction a branch has to be wanted again for that to count as thrash rather than housekeeping.
An eviction is ordinary: a repository opened this morning and not touched since is what the budget is for. A branch evicted and read again before the next poll would have come round is different — it was in use, the budget is below the working set, and every tick is paying a commit read and a tree read for the last tick's evictions. That is the signal maxCachedTreeEntries should be set from, so it is logged as a warning where an eviction is logged at debug.
The default poll interval, as the stand-in for "one tick". The interval in force is the scheduler's business and may be shorter; a window that is too long reports a little thrash that was not, which is the cheaper error for a signal whose job is to be noticed.
Implementation
Duration thrashWindow = defaultThrashWindow;