merged arch-install contents
This commit is contained in:
15
scripts/arch-install/zram0.conf
Normal file
15
scripts/arch-install/zram0.conf
Normal file
@ -0,0 +1,15 @@
|
||||
# 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
|
Reference in New Issue
Block a user