I know this may sound like an over the top useless tinkerink, but I just like to tinker with, play around with stuff and learn, and that may be why I use Linux on my notebook.

I have read some articles about ZRAM and what might be the best configuration and even chatted with some generative models, but didn’t come to a decisive conclusion regarding size, compression algorythm etc… I am asking anyone interested to respond about their experience and recommendations given my specs:

OS: Fedora Linux 41 (Workstation Edition) x86_64
CPU: AMD Ryzen 3 7330U (8) @ 4.39 GHz
GPU: Amd Barcelo [Integrated]
Memory: 5.63 GiB (2 GiB is reserved by the GPU)

I use the notebook for school, mainly lightweight programming and using the browser.

I don’t expect any magical improvements from the ZRAM as I already use it with the default config, just wanted to learn something new.

  • Deckweiss@lemmy.world
    link
    fedilink
    arrow-up
    7
    ·
    1 day ago

    I usually run the default arch zram config which is 50% of the RAM. For your case I’d go with 2 or 3 GB

  • NotAnArdvark@lemmy.ca
    link
    fedilink
    arrow-up
    1
    ·
    1 day ago

    For whatever it’s worth - I have a laptop with 4GB of RAM and a 4GB ZRAM device, and it can’t use all the ZRAM before everything grinds to a halt. I think the way ZRAM works best is if it can “swap out” (compress) anonymous pages that aren’t actually needed again right away, freeing up the fast memory for disk caching and other memory needs.

    In my case, I think I can reach a point where the amount of memory Linux needs simultaneously active goes beyond the 4GB of RAM, so it’s just compressing/uncompressing forever and getting nowhere.

    So, I think I’d argue that maybe you can’t go too big? I think only anonymous pages can get compressed, and there’s probably only so many gigabytes of those in memory at any given time.