25
submitted 18 hours ago by kiol@discuss.online to c/linux@lemmy.ml

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!

all 23 comments
sorted by: hot top controversial new old
[-] HelloRoot@lemy.lol 18 points 15 hours ago
[-] kiol@discuss.online 5 points 15 hours ago
[-] ISO@lemmy.zip 3 points 14 hours ago

It's shit info. zram is actually better, more so with high ram size+high usage situations.

[-] floquant@lemmy.dbzer0.com 6 points 4 hours ago

Anything you'd like to dispute specifically or we should just take your "it's shit" over a detailed explanation?

[-] gamma@programming.dev 6 points 6 hours ago

Shit info from a kernel dev who works on the memory management subsystem?

[-] PetteriPano@lemmy.world 4 points 17 hours ago

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.

[-] ISO@lemmy.zip 2 points 17 hours ago

zram makes sense if you do not have swap.

wrong.

zswap is probably enabled by default in most distros.

wrong

[-] db2@lemmy.world 9 points 17 hours ago
[-] monovergent@lemmy.ml 1 points 15 hours ago* (last edited 15 hours ago)

My workstation has 48 GB RAM with 50% allocation allowed to zram, no disk swapping. 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.

[-] motruck@lemmy.zip 2 points 10 hours ago

Not according to the chrisdown blog post above.

[-] monovergent@lemmy.ml 1 points 7 hours ago

What about it? I see it kicking in at least 10 GB before my RAM is full and I haven't noticed any fundamental differences between how zram works on my 48 GB workstation and my 8 GB devices. Maybe I've never had a workload that filled all 48 GB + extra zram capacity, but it's never given me an issue.

[-] Eggymatrix@sh.itjust.works 1 points 15 hours ago

Genuinely curious: what are you doing to be needing this?

I cannot think of any modern usecase for swap a part from hybernation

[-] amorangi@lemmy.nz 4 points 9 hours ago

Local AI can chew it up. Wasn't able to run certain jobs on 64Gb until I switched to zswap.

[-] Outsider9042@lemmy.world 3 points 12 hours ago

Compiling Librewollf with a sufficient number of jobs is a great way to eat up 32GB of RAM, and the some.

[-] kiol@discuss.online 4 points 13 hours ago

I've been using lower ram machines lately, so made me curious about if people are using things like zram with 32gb+

[-] ISO@lemmy.zip 1 points 17 hours ago

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.

[-] non_burglar@lemmy.world 6 points 12 hours ago* (last edited 12 hours ago)

That isn't how swappiness works.

Changing the sysctl for swappiness only adjusts the ratio of anonymous and file pages, it doesn't set a "threshold" or "aggressivity" in swapping pages, nor does it dictate how much or how little to swap.

It's generally ill-advised to touch swappiness at all unless you know what you're doing. You can start here.

If you're going to hand out free advice, at least make sure the advice is worth the price of admission.

[-] ISO@lemmy.zip 1 points 11 hours ago

If you’re going to hand out free advice, at least make sure the advice is worth the price of admission.

This is very ironic, considering your comment is a mix of straw man and wrong.

[-] floquant@lemmy.dbzer0.com 3 points 4 hours ago

"a strawman is when people disagree with me!"

[-] kiol@discuss.online 2 points 15 hours ago

I simply haven't had the chance to try it yet, so asking

[-] kiol@discuss.online 1 points 15 hours ago
[-] ISO@lemmy.zip 1 points 14 hours ago

Oh, you wrote "easy" not "early" in OP. In any case, this looks stupid. But to each their own, I guess.

this post was submitted on 19 May 2026
25 points (100.0% liked)

Linux

65378 readers
134 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 7 years ago
MODERATORS