We have a linux machine, in which the swap partition gets filled to the limit from time to time. There's still enough of RAM free, so there should be no risk of running out of memory.
The usual course of action in case of a full swap is to execute a swapoff -a && swapon -a
to completely clear the swap.
My Questions:
- Is the full swap partition a problem which needs attention in the first place, or is it something "normal", which can just be ignored.
- Is turning the swap off and on again a good thing to do, or does it make the situation worse, because the kernel now gets busy clearing the swap space?
- What would be a better (or the best) way to react?