# Install zram-generator package # Place this file in /etc/systemd/zram-generator.conf.d/ # Ensure zvol has been created to match writeback-device # sudo zfs create -V 8G -o volblocksize=4096 -o volmode=dev -o primarycache=none -o secondarycache=none -o compression=off nvme/zvol/zram0 # sudo systemctl daemon-reload # sudo systemctl start /dev/zram0 # zramctl to confirm device is created [zram0] host-memory-limit = none zram-size = min(ram / 4, 4096) compression-algorithm = zstd swap-priority = 100 writeback-device = /dev/zvol/nvme/zvol/zram0