概述

tuned 是一项配置文件调整机制,使 Red Hat Enterprise Linux 适应特定负载特性,例如 CPU 密集型任务要求,或存储/网络吞吐量的响应能力。

[root@VM-1-9-centos ~]# rpm -q tuned
tuned-2.11.0-10.el7.noarch

配置

查看当前性能模式

[root@VM-1-9-centos ~]# tuned-adm active
Current active profile: virtual-guest

显示主机上能支持的模式

[root@VM-1-9-centos ~]# 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-guest
更改配置模式
更改为高性能
[root@VM-1-9-centos ~]# tuned-adm profile throughput-performance
[root@VM-1-9-centos ~]# tuned-adm active
Current active profile: throughput-performance
开启后CPU性能会提高一丢丢。
禁用 tuned
tuned-adm off
恢复系统推荐
tuned-adm recommend
END

本文标题:使用tuned修改Centos或Redhat的性能模式

本文作者:宇宙最帅的男人

本文链接:https://lolicp.com/linux/202117143.html

版权声明:转载或者引用本文内容请注明来源及原作者,本文著作权归 (lolicp.com) 所有。

除非另有说明,本作品采用知识共享署名-非商业性使用-相同方式共享 4.0 国际许可协议

最后修改:2021 年 06 月 17 日
如果觉得我的文章对你有用,请随意赞赏