Positive to negative ratio
Positive to negative ratio
Posted Jul 7, 2026 16:01 UTC (Tue) by kleptog (subscriber, #1183)In reply to: Positive to negative ratio by farnz
Parent article: Limiting negative dentries
ISTM what is relevant is the amount of time a dentry is in the cache. Deleting a negative dentry means the next lookup will take longer. So that's the time being saved that needs to be weighed against the extra memory usage and CPU cost of keeping the entry.
I would think that if a negative dentry hasn't been hit in the last minute you can probably toss it. The example posted above where the negative dentries are using up 1GB of memory per minute while never being referenced for me feels like the memory costs far outweighs the benefits.
