• hallettj
    link
    fedilink
    English
    19
    edit-2
    10 months ago

    When niri runs applications it will now put them into transient systemd scopes. One concrete benefit is that when an application uses too much RAM and systemd-oomd kills it, niri won’t go down alongside the app, so the rest of your session will stay intact.

    Does Gnome do this? I’ve certainly had my entire session crash when a certain LSP server used up all of my memory. I appreciate this feature!

    I think it’s time for me to try Niri as my main WM. The main thing I want to figure out is getting XWayland going so my Wine games will work. I know there is info on this in the Niri docs, so I’ll start there.

    Edit: The key to getting the games working is gamescope! It runs a nested X session. Lutris does not work without X, but Bottles does and it has a handy gamescope checkbox in the bottle settings.

      • Gamma
        link
        fedilink
        English
        510 months ago

        8GB memory + two Firefox profiles makes things difficult on my laptop.

        • @[email protected]
          link
          fedilink
          English
          310 months ago

          16gb memory + 2 Firefox profiles + vscode makes things difficult on my laptop. Web stuff is so memory heavy

        • @[email protected]
          link
          fedilink
          110 months ago

          I work on a codebase larger than the linux kernel and firefox combined and still don’t come remotely close to running out of memory on my laptop

          • hallettj
            link
            fedilink
            English
            610 months ago

            That’s great, but yours is not the universal experience since different tasks have different RAM requirements, even within the realm of programming. I had RAM shortages when I was running the Haskell LSP server and compiler at the same time on a largish project. Haskell’s type checker does a lot more than other mainstream languages’ which is how it delivers such strong correctness guarantees. You trade RAM for scrutiny. Then the LSP server has to be fast so it has to do a lot of caching, and you get an additional trade of yet more RAM for speed.