Negative dentries, 20 years later
Negative dentries, 20 years later
Posted Apr 11, 2022 19:31 UTC (Mon) by willy (subscriber, #9762)In reply to: Negative dentries, 20 years later by dskoll
Parent article: Negative dentries, 20 years later
The idea I'm currently advocating (a little busy with other projects to work on myself) is that after allocating 100 entries, we scan 110 entries at the tail of the list and either return them to the head of the list with their 'referenced' flag cleared, or free them. That allows the cache to both shrink (if <100 have been referenced) and grow (if >100 have been referenced)
Obviously those numbers are a bit magic. Why not 150? Or 200? Needs some experimentation.