系统相关
首页 > 系统相关> > 为什么RHEL系统使用交换空间而不是释放缓存和缓冲内存?

为什么RHEL系统使用交换空间而不是释放缓存和缓冲内存?

作者:互联网

环境

问题

决议

Raw
    # echo '50'> /proc/sys/vm/swappiness
Raw
    vm.swappiness = 50

Note: while vm.swappiness accepts 0-100 values, it should not be set to 0, as this can cause an unexpected behaviour on the system. 0 is a special value which works differently depending on the RHEL version in use:

诊断步骤

Value of swappiness can be checked as follow:

Raw
$ cat /proc/sys/vm/swappiness

标签:kernel,缓存,vm,pages,swappiness,RHEL,memory,swap,内存
来源: https://www.cnblogs.com/augusite/p/14944060.html