From 964269520a9c438f63a8f314e308b3fea5f0772c Mon Sep 17 00:00:00 2001 From: sommerfeld Date: Tue, 21 Apr 2026 01:24:55 +0100 Subject: system: add zram swap via zram-generator Cap at 8 GiB, zstd compression. Tune VM for RAM-backed swap: high swappiness, no read-ahead clustering. --- etc/systemd/zram-generator.conf | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 etc/systemd/zram-generator.conf (limited to 'etc/systemd/zram-generator.conf') diff --git a/etc/systemd/zram-generator.conf b/etc/systemd/zram-generator.conf new file mode 100644 index 0000000..c6e112e --- /dev/null +++ b/etc/systemd/zram-generator.conf @@ -0,0 +1,4 @@ +[zram0] +zram-size = min(ram / 2, 8192) +compression-algorithm = zstd +swap-priority = 100 -- cgit v1.2.3-70-g09d2