小编Hor*_*tiu的帖子

为什么即使我将 vm.swappiness 设置为 0 也会交换?

我有几个CentOS 6.5 x64 服务器,64 GB RAM 运行大量KVM VPS

其中一些服务器根本没有交换使用,而有些则使用。我已将swappiness设置为零。但是,即使 RAM 中有大量空闲 GB,有些仍然会交换。

有问题的* 程序是 qemu-kvm - VPS 是 KVM 虚拟机。

这是top通过交换排序的输出(Op 输入):

top - 10:47:31 up 14 days,  1:25,  1 user,  load average: 0.05, 0.10, 0.13
Tasks: 325 total,   1 running, 324 sleeping,   0 stopped,   0 zombie
Cpu(s):  0.1%us,  0.4%sy,  0.0%ni, 99.5%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st
Mem:  65940252k total, 41202572k used, 24737680k free,  9129148k buffers
Swap:  5240808k total,  1039544k used,  4201264k free, 10935732k cached

  PID …
Run Code Online (Sandbox Code Playgroud)

memory swap virtual-machine linux-kvm swappiness

5
推荐指数
1
解决办法
7817
查看次数

标签 统计

linux-kvm ×1

memory ×1

swap ×1

swappiness ×1

virtual-machine ×1