Zram how set up writeback-device

I just configured zram with zram-generator and it is working correctly, I just need to add a writeback-device but there are things I don’t understand, does this partition have to be in Linux-swap format?

I know … it’s from reddit, but perhaps it helps.

thanks you but there is not much there

I beg to differ - the only answer, the first paragraph.
Also the link to:
xyproblem.info

turns out that “writeback-device” feature is not completely implemented on zram-generator.

  1. RFE: Actually use the writeback device · Issue #164 · systemd/zram-generator · GitHub

  2. Add support for new zram features (recompression, etc) · Issue #178 · systemd/zram-generator · GitHub

The archwiki has this to say…
https://wiki.archlinux.org/title/Zram#Enabling_a_backing_device_for_a_zram_block

Theres some general documentation of the zram module as well
https://www.kernel.org/doc/html/latest/admin-guide/blockdev/zram.html#optional-feature

1 Like