Program launch seems to be a key factor
Program launch seems to be a key factor
Posted Mar 13, 2020 2:19 UTC (Fri) by gus3 (guest, #61103)Parent article: Dentry negativity
So why not specify the dentry cache as a ratio of positive-to-negative? The dentry cache can be split 2:1 or 3:1 or 50:1, giving positive dentries N positions for every 1 negative dentry position. Calculate the dentry cache size, then split the cache and move forward, with effectively two caches. As lookups get called, the caches get refreshed, both successes and failures. Eventually, the stale entries in each cache become invalidated and ejected, while the survivors continue to speed up performance.
On a basic desktop system, a 3- or 4-to-1 ratio might suffice for performance. On a particular server like FreeDB, the ratio would probably be very different. But that seems to me to be a basic, yet powerful sysctl tuning knob.
