Disabling Swap
Purpose
Linux virtual memory automatically adjusts based on system load. Swapping memory pages to disk degrades test performance.
Procedure
Before disabling Swap, run the free -g command to query the Swap value. If the value is not 0, Swap is enabled.
free -g
Run the following command to disable Swap.
swapoff -a
Run the free -g command to query the Swap value. If the value is 0, Swap is disabled.
free -g

Parent topic: OS Tuning