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.

    • billwashere@lemmy.world
      link
      fedilink
      English
      arrow-up
      6
      ·
      9 months ago

      I know the feeling. I have a “desktop” that has 640GB of memory. Now I say “desktop” because while it IS desktop I mainly use it for a nested virtualization lab.

      Of course creating a 500gb RAM disk for some ungodly fast file manipulation is not something I’ve ever thought about or done. /s.

      In case you’re wondering it’s an Intel MacPro that just happened to be compatible with the memory in a retired production blade … so yay!

      • seaQueue@lemmy.world
        link
        fedilink
        arrow-up
        2
        ·
        9 months ago

        I jammed 64GB into my work laptop sort of by accident (I thought the original kit I ordered was 2x16GB but it was 1x32 so why not keep going) and I have no regrets. 20GB tmpfs for builds? Why not?

    • seaQueue@lemmy.world
      link
      fedilink
      arrow-up
      5
      ·
      edit-2
      9 months ago

      I still keep some swap around on the off chance something eats up a shit 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.

    • kadu@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      9 months ago

      Disabling swap can cause issues even with free RAM. It shouldn’t, mind you, but some programs running under old assumptions can have issues.