I am looking to enable hibernation on Ubuntu 18.04.
I'd like to know if my swapfile exists and is being recognized as a swapfile. Not sure if I have swap, or if one part of the system does not recognize swap, or if I do not have swap.
$ sudo filefrag -v /dev/nvme0n1p4
Filesystem type is: 1021994
File size of /dev/nvme0n1p4 is 0 (0 blocks of 4096 bytes)
/dev/nvme0n1p4: 0 extents found
$ swapon -s
Filename Type Size Used Priority
/dev/nvme0n1p4 partition 16191484 0 -2
Ubuntu Disk Driver shows a 16G partition for swap under the same.
TIA.
htop
and tell us what percentage of your physical RAM is in use? – Nmath Mar 09 '21 at 21:04htop
, system has 1.2/7.4G of physical RAM in use, 0.0/15.4G of Swapfile in use. But I'm not sure whyFile size of /dev/nvme0n1p4 is 0 (0 blocks of 4096 bytes)
instead of the full 15 gigs. – wip Mar 10 '21 at 03:31