My Swap memory shows SWAP critical 0% free
on NMS.
I tried:
`$ swapon --show`
but nothing showed up. I went on to do:
$ free -m
total used free shared buff/cache available
Mem: 7873 2858 1151 1295 3863 3373
Swap: 0 0 0
Then:
$ swapon -a
swapon: /swapfile: insecure permissions 0644, 0600 suggested.
swapon: /swapfile: read swap header failed
sudo chmod 600 /swapfile
swapon --show
, it means you do not have a swap partition. 2) this is corroborated by the output offree -m
. 3) Apparently you (or some process) created a swapfile, whose permissions are0644
instead of0600
. Change permissions with:sudo chmod 600 /swapfile
or whatever the path to the swapfile is.