FYI, I decided to do this:
$ sudo swapoff -a && sudo swapon -a $ free -h total used free shared buff/cache available Mem: 15Gi 5.9Gi 4.8Gi 2.0Gi 4.8Gi 7.2Gi Swap: 15Gi 348Mi 15Gi
Even though I am no where near needing to swap, after the swapoff/swapon, it immediately climbed back up to 348M.
Oddly, I did it again after flushing the page cache, and the swap stayed at zero:
$ sudo sync ; sudo sh -c 'echo 1 > /proc/sys/vm/drop_caches' $ sudo swapoff -a && sudo swapon -a $ free -h total used free shared buff/cache available Mem: 15Gi 5.6Gi 6.8Gi 2.6Gi 3.1Gi 7.0Gi Swap: 15Gi 0B 15Gi
I don't know if flushing the page cache is related or coincidence with the second swap clearance.
FYI, I decided to do this:
$ sudo swapoff -a && sudo swapon -a
$ free -h
total used free shared buff/cache available
Mem: 15Gi 5.9Gi 4.8Gi 2.0Gi 4.8Gi 7.2Gi
Swap: 15Gi 348Mi 15Gi
Even though I am no where near needing to swap, after the swapoff/swapon, it immediately climbed back up to 348M.
Oddly, I did it again after flushing the page cache, and the swap stayed at zero:
$ sudo sync ; sudo sh -c 'echo 1 > /proc/sys/ vm/drop_ caches'
$ sudo swapoff -a && sudo swapon -a
$ free -h
total used free shared buff/cache available
Mem: 15Gi 5.6Gi 6.8Gi 2.6Gi 3.1Gi 7.0Gi
Swap: 15Gi 0B 15Gi
I don't know if flushing the page cache is related or coincidence with the second swap clearance.