Files
mesh-catalog/modules/memory-pressure/files/zram-generator.conf
T

12 lines
556 B
Plaintext

# Managed by the mesh (module memory-pressure). Replaced on every push; edit the catalogue instead.
#
# Compressed swap in RAM: fast, at a higher priority than any swap on disk, so it takes the everyday
# pressure before anything spills to a disk. Half the RAM, at most 16 GiB, compressed with zstd.
# The swap on disk, its size and whether one exists at all are the machine's, not this module's.
#
# Read by the generator at boot: a change applies at the next boot.
[zram0]
zram-size = min(ram / 2, 16384)
compression-algorithm = zstd
swap-priority = 100