我要评分
获取效率
正确性
完整性
易理解

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