1.简介:
Tuned-Adm是一个Linux的系统性能优化工具……
2.安装:
-
Ubuntu:
sudo apt update
sudo apt install tuned tuned-utils tuned-utils-systemtap
-
Centos
sudo yum install tuned
sudo systemctl enable --now tuned
systemctl status tuned确认服务状态
3.常用命令:
tuned-adm list列出所有的默认的调优策略
tuned-adm active 查看现在生效的调优策略
tuned-adm recommend 查看tuned目前推荐使用的策略
tuned-adm profile <方案>修改调优方案,使用新的调优策略
tuned-adm off关闭调优策略
systemctl restart tuned --now重启并设置开机自启
4.配置解释:
| 策略 | 说明 | 备注 |
|---|---|---|
| atomic-guest | ||
| atomic-host | ||
| balanced | 默认的节能策略,追求功耗和性能的平衡,只对CPU和磁盘做了调节 | |
| cpu-partitioning | ||
| default | ||
| desktop | 适用于桌面设备,基于balanced策略 | |
| desktop-powersave | ||
| enterprise-storage | ||
| laptop-ac-powersave | ||
| laptop-battery-powersave | ||
| latency-performance | 禁用节能配置,启用sysctl模块设置来提升性能,主要改善延迟 | |
| mssql | ||
| network-latency | 优化网络延迟,基于latency-performance策略 | |
| network-throughput | 优化网络吞吐量,基于throughput-performance策略 | |
| oracle | ||
| powersave | 最节能的策略 | |
| realtime | ||
| realtime-virtual-guest | ||
| realtime-virtual-host | ||
| sap-hana | ||
| sap-hana-vmware | ||
| sap-netweaver | ||
| server-powersave | ||
| spindown-disk | ||
| throughput-performance | 禁用节能配置,启用sysctl模块设置来提升性能,主要改善吞吐量,使用deadline的IO调度策略(默认CFQ) | |
| virtual-guest | 适用于作为虚拟机客户机运行的设备,基于throughput-performance策略 | |
| virtual-host | 适用于虚拟机的host设备,基于throughput-performance策略 |
评论区