I have Centos 6.10 Server with initial swap of 3.81 GB working ok no issue.
I noticed wrong swap today amount of 4kb. I tried removing the partition and recreate entry on fstab and remount but no avail. Also tried creating swapfile 8GB using fallocate -l 8G /home/swapfile and added on fstab swapon -a. Still doesn't work.
Below are some info on system:
mkswap command
You should create swap file system and enable swap with
swapon
. Swap could be created by commandmkswap
.mkswap /home/swapfile
for file andmkswap /dev/sdX
for partition, see this answer.