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!

you are viewing a single comment's thread
view the rest of the comments
[-] 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 13 hours ago* (last edited 13 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 12 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 16 hours ago

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

[-] kiol@discuss.online 1 points 16 hours ago
[-] ISO@lemmy.zip 1 points 15 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