Elektrine lite

← Feed

@moonfaced@goo.dgirl.gay

2026-09-14 19:30 UTC

in defense of swap on permanent storage swap is not meant for the purposes of being "backup RAM" when you run out of actual RAM! if you are frequently running out of RAM it's probably because you're using too much or you don't have enough. even the best SSDs are much too slow to be memory. swap today is meant to be for parking memory that's not being used. interactive programs like your browser and your window manager and stuff should not be swapping. about zswap (aka zram swap, using a compressed RAM-backed filesystem as swap): it's useful but does not replace swap because it has much more limited capacity and of course, it uses RAM itself. much better to have zram + lower priority swap in there in my opinion. i don't like that a lot of distributions completely forgo regular swap in favor of it. i wonder if this is because developers expect everybody to be in excess of RAM. about SSD wear: people are too concerned about this in general. i suspect this is some kind of remnant anxiety due to the first generations of SSDs being much worse at handling wear. there is nothing wrong with using SSDs for swap. about hibernation: it's useful! you should have a swap large enough to support it :) so, is swap of any use if it's not for avoiding out of memory conditions killing my processes, you ask? well it actually does that! only it's a passive process, not an emergency mode. if you're having memory pressure issues, it can be very useful (also look into tuning swappiness, your system OOM killer, and cgroup settings).

Replies (0)

No replies.