@outie: After Fedora announced they're turning on zram by default on systems, I figured I'd add it on all my systems here (Fedora, Ubuntu, Debian, & Raspbian — Endless has it on by default already).

It's made a very noticeable differences, especially on the Raspberry Pi boards.

But it even made a huge difference on my work machine (where I hit swap even with 20 G RAM). It completely solved my swap IO issue there too.

TL;DR: zram for swap would probably be useful for you too (esp. on the Pi 4)

@garrett @outie It's quite useful on smaller RasPis too (as long as your memory usage doesn't actually exceed what's available). I've been using a script called systemd-swap to avoid having to deal with the setup details (see this post:

@garrett @outie I'm actually quite surprised they're using zram rather than zswap here. zram is great for systems that otherwise have no swap, but if you do have disk swap, the ability zswap has to use least-recently-used prioritization to write back pages to disk under memory pressure seems like an advantage.

(fwiw, i've been using zswap on many systems, and it also helps reduce swap io quite a bit - and is easier to set up than zram if you already have a swap partition!)

Sign in to participate in the conversation

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!