zram issue Sat Feb 22, 2025
Big thanks to forum user spina for finding this.
Tho not a game stopper, doesn't seem to affect the operation. Just entries into /var/log/boot.log
Is related to swap.
So far no reports of adverse behavior has been reported.
Code:
Feb 20 14:49:54 raspberrypi systemd[1]: Failed to start zramswap.service - Linux zramswap setup.
░░ Subject: A start job for unit zramswap.service has failed
░░ Defined-By: systemd
░░ Support: www.debian.org/support
░░
░░ A start job for unit zramswap.service has finished with a failure.
░░
░░ The job identifier is 119 and the job result is failed.
[/boot]
Issue is related to systemd-zram-generator not being installed.
So what is need is to install the missing package, disable the service that comes with the image, installation of the package installs a new service, finally the log files are rotated. Please only execute the instructions listed below.
[code]
sudo apt update
sudo apt install systemd-zram-generator
sudo systemctl mask zramswap.service
sudo logrotate --force /etc/logrotate.conf
A reboot can be done now or you can edit the file mentioned below to prior to rebooting.
By default up to 4GB of ram or half the ram is used, depending on how much ram one has.
On my 4GB system I have the following entry, which allocates 1GB to zram swap......the file to edit is after the # symbol.
Code:
# /etc/systemd/zram-generator.conf
[zram0]
zram-size = ram / 4
Apologies for missing this prior to releasing the images.