1. 禁用centos的swap
We recommend that you use a swappiness of 0 when your data always fits into the RAM and 1 when you are not sure.
/etc/sysctl.conf
vm.swappiness=0
1. 禁用centos的swap
We recommend that you use a swappiness of 0 when your data always fits into the RAM and 1 when you are not sure.
/etc/sysctl.conf
vm.swappiness=0