tuned-adm 是一个命令行工具,提供一些不同配置文件以提高一些特定用例性能
tuned-adm工具使用方法
tuned-adm list # 列出所有的默认的调优策略
tuned-adm active # 查看现在生效的调优策略
tunde-adm recommand # 查看tuned目前推荐使用的策略
tuned-adm profile 方案名称 # 修改调优方案,使用新的调优策略
tuned-adm off # 关闭调优策略
throughput-performance吞吐量性能
服务器配置文件的重点在于提高吞吐量。这是默认配置文件,并是为大多数系统推荐的。
通过设置 intel_pstate
和 max_perf_pct=100
,与节约能耗相比,该配置文件更注重性能表现。它能启用透明大页面,使用 cpupower 来设置 performance
CPU 频率管理器,并将输入/输出调度器设置为 deadline
。它同样将 kernel.sched_min_granularity_ns
设置为 10
μ s,将 kernel.sched_wakeup_granularity_ns
设置为 15
μ s,以及将 vm.dirty_ratio
设置 40
%。
latency-performance延迟性能
服务器配置文件的重点在于降低延迟。该配置文件是为延迟敏感的工作负载所推荐的,其中工作负载会从 c- 状态调整和透明大页面增加的 TLB 高效性中获益。
通过设置 intel_pstate
和 max_perf_pct=100
,与节约能耗相比,该配置文件更注重性能表现。它能启用透明大页面,使用 cpupower 来设置 performance
CPU 频率管理器,并请求值为 1
的 cpu_dma_latency
。
network-throughput网络延迟
服务器配置文件的重点在于降低网络延迟。
通过设置 intel_pstate
和 max_perf_pct=100
,与节约能耗相比,该配置文件更注重性能表现。它禁用透明大页面以及自动 NUMA 平衡 。它使用 cpupower 来设置 performance
CPU 频率管理器,并请求值为 1
的 cpu_dma_latency
。它同样将 busy_read
和 busy_poll
的时间设置为 50
μ s,并将 tcp_fastopen
设置为 3
。
throughput-performance网络吞吐量
服务器配置文件的重点在于提高网络吞吐量。
通过设置 intel_pstate
和 max_perf_pct=100
,与节约能耗,该配置文件更注重性能表现。它能启用透明大页面,使用 cpupower 来设置 performance
CPU 频率管理器,它同样将 kernel.sched_min_granularity_ns
设置为 10
μ s,kernel.sched_wakeup_granularity_ns
设置为 15 μ s,以及 vm.dirty_ratio
设置为 40
%。
virtual-guest虚拟来宾
虚拟来宾是一个重点在于优化红帽企业版 Linux 7 虚拟机器性能的配置文件。
通过设置 intel_pstate
和 max_perf_pct=100
,与节约能耗相比,该配置文件更注重性能表现。它降低了虚拟内存的交换。启用透明大页面,使用 cpupower 来设置 performance
CPU 频率管理器。它也能将 kernel.sched_min_granularity_ns
设置为 10
μ s,kernel.sched_wakeup_granularity_ns
设置为 15 μ s,以及将 vm.dirty_ratio
设置为 40
%。
virtual-host虚拟-主机
虚拟主机是一个重点在于优化红帽企业版Linux 7虚拟主机的性能的配置文件。
通过设置 intel_pstate
和 max_perf_pct=100
,相比节约能耗,该配置文件更注重性能表现。它降低了虚拟内存的交换。它能启用透明大页面,更频繁地重写脏页到磁盘。使用 cpupower 来设置 performance
CPU 频率管理器,它将 kernel.sched_min_granularity_ns
设置为 10
μ 秒,kernel.sched_wakeup_granularity_ns
设置为 15 μ 秒,kernel.sched_migration_cost
设置为 5
μ 秒,以及 vm.dirty_ratio
设置为 40
%。