Hi guys! I’m a bit tired that my system sometimes completely becomes unresponsive while running things that could fill up the memory. I have 32GB of RAM, a bit of a swap file in my SSD (I think something like 5GB swap), but this clearly isn’t cutting it. I was having a few browser windows opened, a handbrake encoding that was paused and decided to open Death Stranding 2, which is optimized to take around 5-6GB of RAM. And the system became once more so unresponsive that I had to literally reset it, after 5mins of nothing. I’d like to implement in my Ubuntu-based distro what they have in CachyOS. I’m not exactly sure, but I think it’s a ZRAM-based swap partition? Something like 1 or 2GB commited to compressed virtual memory in RAM? Seems this works much better when things are close to getting dicey…how would I go about doing what they use in CachyOS? Is there any easy to follow guide?

  • catdog@lemmy.ml
    link
    fedilink
    arrow-up
    3
    ·
    13 days ago

    Try it. I have configured ZRAM on Linux Mint and Debian, works like a charm.

    If I may ask: why are you thinking of only committing 1 or 2GB to ZRAM? This way your net RAM capacity increase will only be a few hundred megs. I recommend to allocate 25% to 60% of your RAM to it.

    To set it up, I have used an LLM for instructions, so don’t listen to me for derails. I recommend prompting/searching for instructions youryelf if others aren’t aplble to point you to a guide.