51工具盒子

依楼听风雨
笑看云卷云舒,淡观潮起潮落

使用tuned修改Centos或Redhat的性能模式

概述

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
赞(1)
未经允许不得转载:工具盒子 » 使用tuned修改Centos或Redhat的性能模式