Linux自动性能调整工具tuned


系统版本声明: Centos7以上 Ubuntu16.04以上

安装tuned

# centos安装tuned调优工具
yum install tuned -y

# Ubuntu或Debian安装
sudo apt install tuned -y

# 开启tuned服务
systemctl start tuned
# 开启自启服务
systemctl enable tuned
# 查看服务状态
systemctl status tuned
# 暂停服务
systemctl stop tuned

查看性能调整方案列表

tuned-adm list

查看当前活动的配置文件

# 查看当前生效的方案
tuned-adm active

使用系统推荐的调优方案

# 使用系统推荐的优化方案
tuned-adm recommend

切换调优方案

tuned-adm  profile 方案名
# 方案名使用 tuned-adm list 查看

禁用所有优化调整

tuned-adm off