What's using space in /swap ?

Posted by I0I0I0I@reddit | linuxadmin | View on Reddit | 34 comments

I've disabled swap on this system for the purpose of trying to answer this question. What's consuming 16G in /swap? Lubuntu 22.04.

zzyzx@zzyzx: [ ~ ]$ ls -al /swap/
total 0
drwxr-xr-x 1 root root   0 May 29 13:30 .
drwxr-xr-x 1 root root 170 Sep 11  2024 ..
zzyzx@zzyzx: [ ~ ]$ df -h /swap/
Filesystem      Size  Used Avail Use% Mounted on
/dev/sdb2       462G   16G  443G   4% /swap
zzyzx@zzyzx: [ ~ ]$ swapon --verbose --show
zzyzx@zzyzx: [ ~ ]$ 
zzyzx@zzyzx: [ ~ ]$ free
               total        used        free      shared  buff/cache   available
Mem:         8007708     3633660     1385412      276000     2988636     3794596
Swap:              0           0           0