Elektrine lite

← Feed

@kiol@discuss.online

Anyone using zram and similar memory management with 32gb of ram or more?

2026-05-19 16:54 UTC

I have been setting up Zram, Swap, Swappiness and EasyOOM daemon on 16gb ram boxes, or lower. Someone asked me about 32gb of ram, or more, and I’m unsure. Wondering if others have experimented with this!

Replies (8)

  • @HelloRoot@lemy.lol 2026-05-19 19:11

    chrisdown.name/…/zswap-vs-zram-when-to-use-what.h…

    Open ##2698284

  • @ISO@lemmy.zip 2026-05-19 17:57

    Why do you think 32GiB is special compared to 16GiB? And wtf is EasyOOM? You maximize the usefulness of zram by actually increasing sappiness, and giving zram devices high priority. e.g. sysctl vm.swappiness=100 for i in {1..8}; do swapon /dev/zram${i} -p 32767 done Then you enable other swap devices with lower priority. This is the way regardless of how much RAM you have. I mean, it may be pointless if you never ever exceed, let’s say 10/32GiB (including caching). But it still wouldn’t be harmful in any way.

    Open ##2698337

  • @Eggymatrix@sh.itjust.works 2026-05-19 19:41

    Genuinely curious: what are you doing to be needing this? I cannot think of any modern usecase for swap a part from hybernation

    Open ##2698689

  • @monovergent@lemmy.ml 2026-05-19 19:42

    My workstation has 48 GB RAM with 50% allocation allowed to zram, no swap. It works just fine. Once I use up the majority of my RAM, it kicks in the same way it would on any other system with less RAM.

    Open ##2698697

  • @mactan@lemmy.ml 2026-05-20 12:28

    been testing this quite a lot for star citizen which regularly sees 20-40 GB use. zram is the easiest solution to avoiding OOM Killer by a long shot. zswap was swapping over 100 GB to disk cumulative throughout the day and still oom killing the game

    Open ##2712667

  • @adarza@lemmy.ca 2026-05-20 17:07

    i don’t see a lot of swap use on my systems, but i do have zswap backed by a swap partition on a couple of them; otherwise i generally i just use a basic swap partition on most everything. basic systems (browser, email, light docs/media use) i set up for others that are using ext4 might use a swapfile instead if it was the default for whatever distribution i used for it.

    Open ##2723637

  • @Heavybell@lemmy.world 2026-05-22 10:41

    Yeah, I have 96gb and I still assign a zram swap, just in case. I also have a zram tmp, and a zram for my portage compilation dir (I use Gentoo). The latter gets the most use.

    Open ##2784691

  • @PetteriPano@lemmy.world 2026-05-19 17:32

    zram makes sense if you do not have swap. zswap is probably enabled by default in most distros. It compresses cold pages on the fly so that they're ready to quickly get swapped in and out. I do hit the swap partition occasionally on my 32GB systems. It doesn't really kick in until you have proper pressure. I want my swap partition for hibernation, anyway.

    Open ##2927831