Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8374

Beta testing • Re: rpi-swap (Trixie only) - zram-based swap

$
0
0

Code:

# /usr/lib/systemd/zram-generator.conf# This config file enables a /dev/zram0 swap device with the following# properties:# * size: 50% of available RAM or 4GiB, whichever is less# * compression-algorithm: kernel default## This device's properties can be modified by adding options under the# `[zram0]` section, or disabled by removing the section header.# Additional zram devices can be created by appending new `[zramX]`# sections and setting the appropriate options for each device.## See /usr/share/doc/systemd-zram-generator/zram-generator.conf.example# and/or zram-generator.conf(5) for a list of available options.[zram0]# /run/systemd/zram-generator.conf.d/20-rpi-swap-zram0-ctrl.conf# Automatically generated by rpi-swap-generator[zram0]host-memory-limit=nonefs-type=swapzram-size=2048writeback-device=/dev/disk/by-backingfile/var-swap

Code:

# Automatically generated by /usr/lib/systemd/system-generators/zram-generator[Unit]BindsTo=dev-%i.swap dev-disk-by\x2dbackingfile-var\x2dswap.deviceAfter=dev-disk-by\x2dbackingfile-var\x2dswap.device

Statistics: Posted by TheSassyBear — Fri Dec 26, 2025 1:49 pm



Viewing all articles
Browse latest Browse all 8374

Trending Articles