I think MGLRU isn't ready for a lot of uses unless it keeps the paired lists
I think MGLRU isn't ready for a lot of uses unless it keeps the paired lists
Posted Mar 6, 2026 16:33 UTC (Fri) by jthill (subscriber, #56558)In reply to: I think MGLRU isn't ready for a lot of uses unless it keeps the paired lists by PeeWee
Parent article: Reconsidering the multi-generational LRU
I don't think tmpfs pages are considered file-backed, so your swappiness setting wouldn't be trying to protect them anyway.
I got in to swappiness tuning when I only had an hdd and was pushing limits, I found I disliked deferring slowdowns to workload-switching time, if I needed to do like ten minutes of image editng and it was little slower but say madeupnumber30 seconds extra, then go back to what I was doing before, the needed files being all still cached and ready is very gratifying, like, when *I'm* done with the interruption, my computer's got my back and the real work is all still up to speed instead of making me sit and wait for 10 seconds while it rereads all the stuff it evicted to save me those 30 I didn't notice and might have spent anyway.
tl;dr: whether the computer's ready for my next trick a little before or well before I'm ready to perform it makes no difference to me, but if it's not ready when I am, that matters.
So yeah, it's going to be workload-specific, and my impression from the article was people with specific workloads didn't like mglru's observed behavior. So if the idea is to settle on just one reclaim algorithm I think pick the one that's easily tunable to avoid frustrating waiting humans.
