Sysctl.conf parameters overridden by Tuned

环境

  • Red Hat Enterprise Linux 5
  • Red Hat Enterprise Linux 6
  • Red Hat Enterprise Linux 7

问题

  • Settings in ​​/etc/sysctl.conf​​ get overridden by ​​tuned​

决议

To set custom parameters in ​​/etc/sysctl.conf​​, ​​tuned​​ needs to be disabled first

  • RHEL 5 and RHEL 6

​Raw​

# service tuned stop
# chkconfig tuned off
# service ktune stop
# chkconfig ktune off

OR

​Raw​

# tuned-adm off

  • RHEL 7

​Raw​

# systemctl stop tuned
# systemctl disable tuned
# systemctl stop ktune
# systemctl disable ktune

根源

​Tuned​​ profiles take precedence over other values on the system.

诊断步骤

Check if ​​tuned​​ is enabled on the system

  • RHEL 5 and RHEL 6

​Raw​

chkconfig tuned

OR

​Raw​

chkconfig ktune

  • RHEL 7

​Raw​

systemctl status tuned

OR

​Raw​

systemctl status ktune