cross-posted from: https://sh.itjust.works/post/21361730

Hello, I came across zram recently and I’d like to know if I should use it, my laptop only has ~4GB of ram, and for the most part it’ll only stutter when I open multiple programs or a game, so would zram be adequate in my case?

Also, would the compressing and decompressing have a significant impact on my cpu?

  • vividspecter@lemm.ee
    link
    fedilink
    arrow-up
    5
    ·
    edit-2
    3 days ago

    Yes, and consider using zstd (if it’s not the default on your distribution) and be pretty aggressive with the disk size since it has a high compression ratio. I normally set it to 100% (so zram disk size = physical RAM size), but you can experiment with different values.