swapoff - slow
I need to reduce the swap assigned to a server from 244 GB to 2 GB, on a SLES 12.4 server.
When the database on this server is online, the swap is use, and cannot be unmounted. I stopped the database, and started the swapoff in yast. After 4 hours the swapoff was still busy executing.
On OS level I could see the swap reducing at a very slow pace using "free -m". After 4 hours the swapoff process was still very busy, and 90 GB swap was still assigned - counting down at a very slow pace. But the downtime window was over and I had to kill the swapoff process. This undid the operation, swap assigned is back at 244 GB.
Is there another method to execute the swapoff faster?