I have changed to a swappiness of 10 on my 17.10 VM which I use for development, so I'm generally running a couple terminals, a browser, an editor, etc. I've been trying to track down leaks that consume all the RAM/SWAP.
I think I have that sorted out, but have noticed now (even after rebooting) that once the system starts using SWAP, even if I close all open apps (except terminal) and watch my RAM usage drop below 80% of the available 4GB, SWAP usage doesn't drop. At present, SWAP consumption has remained at nearly 20% of the 1GB available. I realize rebooting would free it up, but...
Is this expected?
Does the fact that SWAP is not freed indicate it was consumed by leaked memory?
What steps should I take next?