I had a script which I was developing that ran away on the memory and the swap space ended up at 96% utilization instead of the normal 5-45% utilization.
I have now fixed the script but the swap space utilization still remains high in the red at 96%.
I know that on other Linux distros (including CentOS), I have successfully run the command swapoff -a && swapon -a to fix this situation; however in NethServer I get the error message “swapoff: /dev/mapper/VolGroup-lv_swap: swapoff failed: Cannot allocate memory”
Is there a quick and easy way to flush the swap space in NethServer without the need to restart the entire box?