Sometime the swap memory hit 100% and the running script (PHP) is considerably slower. I'd like to ask in which scenario it is okay to run the command swapoff -a ; swapon -a
to clear up the swap memory so that the running script is not affected, and in which scenario is it affected?