How to disable all swaps on Linux

How to disable all swaps on Linux to force the application/kernel use the physical memory?

To diable all swaps on Linux, run this command as root:

# swapoff -a

-a means all swaps.

Answered by anonymous.

Similarly, to enable all swaps on Linux:

# swapon -a

Leave a Reply

Your email address will not be published. Required fields are marked *