今天登陆服务器,看到了一个不认识的进程,root 8581 1 0 Feb14 ? 00:33:01 /usr/bin/python2 -Es /usr/sbin/tuned -l -P
这是个啥,google了一下,好像是跟性能优化有关的进程。
Tuned本质上是一个Linux环境中的后台进程,在运行过程中依据配置内容监控调整系统。监控程序会根据监控的配置内容,监控进程会持续监控结果反馈,调整优化策略。
查看下配置文件
[root@data9 tuned]# cat /etc/tuned/tuned-main.conf
1 | Global tuned configuration file. |
管理
tuned-adm命令是管理tuned组件的主要接口。
通过list命令,可以查看当前应用和备选的所有Profile内容。1
2
3
4
5
6
7
8
9
10
11
12[root@data9 tuned]# tuned-adm list
Available profiles:
- balanced - General non-specialized tuned profile
- desktop - Optimize for the desktop use-case
- latency-performance - Optimize for deterministic performance at the cost of increased power consumption
- network-latency - Optimize for deterministic performance at the cost of increased power consumption, focused on low latency network pe
rformance- network-throughput - Optimize for streaming network throughput, generally only necessary on older CPUs or 40G+ networks
- powersave - Optimize for low power consumption
- throughput-performance - Broadly applicable tuning that provides excellent performance across a variety of common server workloads
- virtual-guest - Optimize for running inside a virtual guest
- virtual-host - Optimize for running KVM guests
Current active profile: balanced
通过tuned-adm命令的profile参数,可以保证系统动态的进行调整参数。
参考
https://www.linuxidc.com/Linux/2015-05/118005.htm
https://access.redhat.com/documentation/zh-cn/red_hat_enterprise_linux/7/html/power_management_guide/tuned