1
0
IaC/scripts/arch-install/zram0.conf

16 lines
550 B
Plaintext
Raw Normal View History

2024-01-11 06:14:09 -05:00
# 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