I have a Rasperri Pi 5 and I need to increase swap memory to 4GB.
I made sure that zram generator is installed by running:
sudo apt install systemd-zram-generator
and I have ONLY one config file in this location: /etc/systemd/zram-generator.conf
the content is like this
[zram0]
zram-size = 4096
swap-priority = 100
No matter what I do, after each reboot, the swapon --show command displays this
NAME TYPE SIZE USED PRIO
/dev/zram0 partition 2G 0B 100
How can I change this permanently to have 4GB of swap memory?