In case you don’t know Multi-Gen LRU is an alternative LRU implementation that optimizes page reclaim and improves performance under memory pressure. Page reclaim decides the kernel’s caching policy and ability to overcommit memory. It directly impacts the kswapd CPU usage and RAM efficiency.
Has anyone enabled this feature on their machines? Have you noticed any performance gains or memory management improvements? It’s developed by Google and is reportedly is being used in ChromeOS and Android.
I still keep some swap around on the off chance something eats up a removed ton of memory. Dealing with the OOM killer is always a bad time.
If you don’t want to use disk swap there’s always zram, it’ll consume like ~4GB RAM for ~12GB active swap if you use zstd with it. It won’t allocate any (meaningful amount of) compressed memory if swap isn’t active so there’s not much of a downside here.