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

# 关闭swap

#### 目的

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


#### 方法

```
swapoff -a
```

修改前后对比。
