ubuntu 20.04lts on Gateway E-475M laptop
I do not normally shut down daily, but suspend onto battery overnight, but notice the SWAP usage (2GB RAM / 2GB SWAP) grows each day until it gets almost maxed out, where I have to reboot and it's usage drops to zero. I use the laptop to browse only (read local newspaper in morning, watch 30 min news stream, check GAB and PARLER once daily, once in awhile do search...). Any way to 'clear out' the SWAP without rebootin'?
OK - so increased SWAP from 2Gb to 4Gb and get this now:
free -h
total used free shared buff/cache available
Mem: 1.9Gi 1.1Gi 97Mi 187Mi 802Mi 556Mi
Swap: 4.0Gi 51Mi 3.9Gi
grep -i swap /etc/fstab
/swapfile none swap sw 0 0
...so, I'm forgetting my "clear SWAP" answer as when SWAP is large, there's not enough RAM so it lockes up everything - major crash...
Just hope the double size helps with the slow down when the SWAP was getting big... thanks!
All this may be irrelevant as while messing with this swapfile stuff, I just got HIBERNATE working, so now will be hibernating, not suspending to RAM, overnight... found info here that worked for hibernate: - - - - - - - - - - askubuntu.com/questions/1240123/… - - - - - - - - - - then made keyboard shortcut super+H... awesome!