I have installed and enabled zram but at boot i get the error: Failed to start manage swap and zram, it seems the systemd-swap unit is failing to start.
sudo systemctl status systemd-swap INT ✘ 4m 56s
× systemd-swap.service - Manage swap spaces on zram, files and partitions.
Loaded: loaded (/usr/lib/systemd/system/systemd-swap.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Thu 2022-01-20 21:34:59 -03; 13min ago
Main PID: 567 (code=exited, status=1/FAILURE)
CPU: 333ms
jan 20 21:34:59 julio-550xbe350xbe systemd-swap[567]: start()
jan 20 21:34:59 julio-550xbe350xbe systemd-swap[567]: File "/usr/bin/systemd-swap", line 561, in start
jan 20 21:34:59 julio-550xbe350xbe systemd-swap[567]: stop(on_init=True)
jan 20 21:34:59 julio-550xbe350xbe systemd-swap[567]: File "/usr/bin/systemd-swap", line 778, in stop
jan 20 21:34:59 julio-550xbe350xbe systemd-swap[567]: swapfc_path = config.get("swapfc_path")
jan 20 21:34:59 julio-550xbe350xbe systemd-swap[567]: File "/usr/bin/systemd-swap", line 103, in get
jan 20 21:34:59 julio-550xbe350xbe systemd-swap[567]: return as_type(self.config[key])
jan 20 21:34:59 julio-550xbe350xbe systemd-swap[567]: KeyError: 'swapfc_path'
jan 20 21:34:59 julio-550xbe350xbe systemd[1]: systemd-swap.service: Failed with result 'exit-code'.
jan 20 21:34:59 julio-550xbe350xbe systemd[1]: Failed to start Manage swap spaces on zram, files and partitions..
sudo nano /etc/systemd/swap.conf
# This file is part of systemd-swap.
#
# Entries in this file show the systemd-swap defaults as
# specified in /usr/share/systemd-swap/swap-default.conf
# You can change settings by editing this file.
# Defaults can be restored by simply deleting this file.
#
# See swap.conf(5) and /usr/share/systemd-swap/swap-default.conf for details.
#zswap_enabled=1
#zswap_compressor=zstd
#zswap_max_pool_percent=25
#zswap_zpool=z3fold
#zram_enabled=0
#zram_size=$(( RAM_SIZE / 4 ))
#zram_count=${NCPU}
#zram_streams=${NCPU}
#zram_alg=zstd
#zram_prio=32767
#swapfc_enabled=0
probably … I didn’t read the documentation of the thing you chose to use.
I tried a random configuration that seemed to make sense - and it worked.
and I revealed what I use …
Btw, french is not “some weird language”, it’s the language of cultured persons, the language of Olympic games and a reference language for professional diplomacy…