Elektrine lite

← Feed

@ISO@lemmy.zip

Post #2698337

2026-05-19 17:57 UTC

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.

Replies (3)

  • @kiol@discuss.online 2026-05-19 19:24

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

    Open ##2698336

  • @non_burglar@lemmy.world 2026-05-19 22:23

    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](https://www.howtogeek.com/449691/what-is-swapiness-on-linux-and-how-to-change-it/). If you're going to hand out free advice, at least make sure the advice is worth the price of admission.

    Open ##2927833

  • @kiol@discuss.online 2026-05-19 19:24

    https://github.com/rfjakob/earlyoom

    Open ##2927834