[D2D Bandwidth] Performance Degradation Caused by Enabled Swap Partition
Symptom
The bandwidth test of Ascend DMI takes a long time, and the test result does not meet the expectation.
Figure 1 Results of the bandwidth test


Possible Causes
- The swap partition is enabled in the current environment, which affects the accuracy of bandwidth test results. A swap partition allows the OS to store part of data in the memory to a special partition on a drive when the computer memory is insufficient and frees memory for other programs.
- Insufficient system memory prevents the allocation of contiguous memory, leading to suboptimal performance.
Solution
Perform the following steps to disable the swap partition, clear the cache, and restart the environment.
- Run the free -h command to check whether the swap partition is enabled.

- If it is enabled, run the swapoff -a command as the root user to disable it before the bandwidth test.

Parent topic: Bandwidth Test