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.

  • @seaQueue@lemmy.world
    link
    fedilink
    12
    edit-2
    2 years ago

    I use this on all of my machines now, it does a much better job of preventing swap thrashing than the original LRU code. I’ve been running the MGLRU patch set for like two years (?) without any downside that I’ve been able to detect.

    Edit: We switched to using the MGLRU patch set for all of our Arch kernel packages in the asus-linux community back when the patch set was in development, there have been zero problem reports over an installed base of at least a couple hundred people. As far as I can tell there really isn’t a downside to using it.

    • Presi300
      link
      fedilink
      English
      22 years ago

      How do I enable it? I’ve been having huge issues with reclaiming swap and memory usage in general. Do I have to compile the kernel myself and if I do, where is the option located?

        • Presi300
          link
          fedilink
          English
          12 years ago

          Ah, then where in the menuconfig is this option located, if I need to build my own kernel…

          • @seaQueue@lemmy.world
            link
            fedilink
            1
            edit-2
            2 years ago

            Use the search function and look for LRU_GEN. Try make nconfig while you’re at it, it’s the new terminal config menu system.

            • Presi300
              link
              fedilink
              English
              12 years ago

              man, make nconfig is such a life savior when configuring a new kernel, it’s great