bigboy-alma-deploy/ansible/templates/zram-generator.conf

21 lines
No EOL
933 B
Text

# zram-generator.conf — BigBoy's compressed-RAM swap tier
#
# Implemented 2026-07-19, alongside the existing NVMe swapfile — not a
# replacement for it. zram is the fast, first-preference tier (default
# priority 100, well above the swapfile's -2); the swapfile is the
# larger, slower fallback that actually resolved the original OOM kill
# during the llama.cpp CUDA build. Both are active simultaneously,
# by decision — see CLAUDE.md / group_vars/bigboy.yml (zram_percentage).
#
# Deploy: copy to /etc/systemd/system/zram-generator.conf... actually to
# /etc/systemd/zram-generator.conf, then:
# sudo systemctl daemon-reload
# sudo systemctl start systemd-zram-setup@zram0.service
# (or just reboot — the generator runs automatically at boot from here on)
#
# Confirm with: swapon --show
# Expect two entries: zram0 (priority 100) and /swapfile (priority -2)
[zram0]
zram-size = ram / 2
compression-algorithm = zstd