yum -y install tuned
tuned-adm active
tuned-adm list
[root@docker ~]# systemctl status tuned
● tuned.service - Dynamic System Tuning Daemon
Loaded: loaded (/usr/lib/systemd/system/tuned.service; enabled; vendor preset: enabled)
Active: active (running) since Thu 2020-01-02 13:44:15 CST; 4min 3s ago
Docs: man:tuned(8)
man:tuned.conf(5)
man:tuned-adm(8)
Main PID: 4902 (tuned)
Tasks: 5
Memory: 12.5M
CGroup: /system.slice/tuned.service
└─4902 /usr/bin/python2 -Es /usr/sbin/tuned -l -P
Jan 02 13:44:13 docker systemd[1]: Starting Dynamic System Tuning Daemon…
Jan 02 13:44:15 docker systemd[1]: Started Dynamic System Tuning Daemon.
Hint: Some lines were ellipsized, use -l to show in full.
[root@docker ~]#
[root@docker ~]# tuned-adm active
Current active profile: virtual-host
[root@docker ~]# tuned-adm list
Available profiles:
- balanced - General non-specialized tuned profile
- desktop - Optimize for the desktop use-case
- hpc-compute - Optimize for HPC compute workloads
- 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 performance
- 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: virtual-host
[root@docker ~]# tuned-adm profile virtual-guest
[root@docker ~]# tuned-adm active
Current active profile: virtual-guest
自定义
cd /usr/lib/tuned/
mkdir test-performance
vim test-performance/tuned.conf
系统推荐
[root@docker ~]# tuned-adm recommend
virtual-guest
[root@docker ~]# tuned-adm active
Current active profile: virtual-guest
[root@docker ~]#