swapon
NAME TYPE SIZE USED PRIO
/var/lib/systemd-swap/swapfc/1 file 512M 0B 50
It is supposed to be:-
NAME TYPE SIZE USED PRIO
/var/lib/systemd-swap/swapfc/1 file 512M 0B -2
The PRIO is 50 and output should be PRIO -2
I don’t know where I went wrong? The system is now less responsive that before installing systemd-swap.
free -m
total used free shared buff/cache available
Mem: 15471 1638 12129 158 1703 13392
Swap: 511 0 511
AFAIK swap priority only matters if you have multiple swap devices and a reason to prefer some of them to others. If you have a single swap device, it won’t make any difference.
Use swapon -p but you can check more options consulting swapon --help
Also, do not forget about swappiness
Also, also
for swap is nowhere to be ok.
Personally i prefer zram-generator so when i run swapon i get some like this (depending what i do and what applications have opened):
NAME TYPE SIZE USED PRIO
/dev/zram0 partition 11,7G 1,1G 100
Thanks every one @omano said Systemd Swap not working and @bogdancovaciu suggestedd zram-generator.
How do I remove systemd-swap and install zram-generator.