Positive to negative ratio
Positive to negative ratio
Posted Jul 7, 2026 10:40 UTC (Tue) by Fowl (subscriber, #65667)Parent article: Limiting negative dentries
I’m imaging the implementation is probably not simple, but would setting a limit at some ratio of positive entires work? Surely finding the negative entry gets harder than not finding the actual file at some point? Does a directory with 10 files need them at all?
Keeping counts might be difficult, but it doesn’t need to be precise - even just a few buckets maybe.
I guess there’d a potential for a “cliff” (instead of gradual performance degradation) at reaching any limit at all if there’s not been one before.
