Disable disk SWAP and add support for ZRAM swap (Home Assistant OS)

My system that runs on Home Assistant OS is needlessly writing to disk swap (consuming the finite writes on my SSD).

Please add three options in system settings:

  1. Disable disk swap
  2. Enable ZRAM swap
  3. Disk and ZRAM swap combination (use ZRAM swap first before writing to disk based swap)

You should vote for your own FR too.

1 Like

I think ZRAM swap should be enabled by default for Home Assistant OS.

I tend to agree…
Here is a reference (See Advanced Memory Management section). It use to be that ZRAM was used for swap. Apparently it was changed in support for low RAM memory devices. So if you have plenty of RAM, then seems plausible to have this as an option.

I agree as well. Being playing around with zram/zswap for a while now - on systems with lots of RAM this can be hugely benifical as swap in zram saves on Disk-I/O