---
title: 关闭swap
description: "Linux的虚拟内存会根据系统负载自动调整，内存页（page）swap到磁盘会影响测试性能。"
url: https://www.hikunpeng.com/document/detail/zh/kunpengbds/ecosystemEnable/Hive/topic_0281357774.html
sourcePath: /source/zh/kunpengbds/ecosystemEnable/Hive/topic_0281357774.html
indexId: ab42e2eb2ba13d8f2560420118624c5dae8a368ef7bf9d71824b96790ac347e764
---
# 关闭swap

#### 目的

Linux的虚拟内存会根据系统负载自动调整，内存页（page）swap到磁盘会影响测试性能。


#### 方法

```
swapoff -a
```

修改前后对比如下：
