Show Table of Contents
A.6. tuned-adm
tuned-adm 是一个命令行工具,提供一些不同配置文件以提高一些特定用例性能。它也提供一个评估系统和输出推荐的调整配置文件的子命令(
tuned-adm recommend)。在您系统安装时它也能设置默认配置文件,以便能用于返回默认配置文件。
自红帽企业版 Linux 7 起,tuned-adm 有能力运行所有命令,这些命令是启用和禁用调整配置文件的一部分。这允许您添加 tuned-adm 中不可用的环境特定检测。例如在选择应用何种调整配置文件之前,检测系统是否是主数据库节点。
红帽企业版 Linux 7 在配置定义文件中提供
include 参数,允许您将自己的 tuned-adm 配置文件建立在存在的配置文件基础上。
以下调整配置文件是随 tuned-adm 一起提供的,并由红帽企业版 Linux 7 支持。
- 吞吐量性能
- 服务器配置文件的重点在于提高吞吐量。这是默认配置文件,并是为大多数系统推荐的。通过设置
intel_pstate和max_perf_pct=100,与节约能耗相比,该配置文件更注重性能表现。它能启用透明大页面,使用 cpupower 来设置performanceCPU 频率管理器,并将输入/输出调度器设置为deadline。它同样将kernel.sched_min_granularity_ns设置为10μ s,将kernel.sched_wakeup_granularity_ns设置为15μ s,以及将vm.dirty_ratio设置40%。 - 延迟性能
- 服务器配置文件的重点在于降低延迟。该配置文件是为延迟敏感的工作负载所推荐的,其中工作负载会从 c- 状态调整和透明大页面增加的 TLB 高效性中获益。通过设置
intel_pstate和max_perf_pct=100,与节约能耗相比,该配置文件更注重性能表现。它能启用透明大页面,使用 cpupower 来设置performanceCPU 频率管理器,并请求值为1的cpu_dma_latency。 - 网络延迟
- 服务器配置文件的重点在于降低网络延迟。通过设置
intel_pstate和max_perf_pct=100,与节约能耗相比,该配置文件更注重性能表现。它禁用透明大页面以及自动 NUMA 平衡 。它使用 cpupower 来设置performanceCPU 频率管理器,并请求值为1的cpu_dma_latency。它同样将busy_read和busy_poll的时间设置为50μ s,并将tcp_fastopen设置为3。 - 网络吞吐量
- 服务器配置文件的重点在于提高网络吞吐量。通过设置
intel_pstate和max_perf_pct=100,与节约能耗,该配置文件更注重性能表现。它能启用透明大页面,使用 cpupower 来设置performanceCPU 频率管理器,它同样将kernel.sched_min_granularity_ns设置为10μ s,kernel.sched_wakeup_granularity_ns设置为 15 μ s,以及vm.dirty_ratio设置为40%。 - 虚拟来宾
- 虚拟来宾是一个重点在于优化红帽企业版 Linux 7 虚拟机器性能的配置文件。通过设置
intel_pstate和max_perf_pct=100,与节约能耗相比,该配置文件更注重性能表现。它降低了虚拟内存的交换。启用透明大页面,使用 cpupower 来设置performanceCPU 频率管理器。它也能将kernel.sched_min_granularity_ns设置为10μ s,kernel.sched_wakeup_granularity_ns设置为 15 μ s,以及将vm.dirty_ratio设置为40%。 - 虚拟-主机
- 虚拟主机是一个重点在于优化红帽企业版Linux 7虚拟主机的性能的配置文件。通过设置
intel_pstate和max_perf_pct=100,相比节约能耗,该配置文件更注重性能表现。它降低了虚拟内存的交换。它能启用透明大页面,更频繁地重写脏页到磁盘。使用 cpupower 来设置performanceCPU 频率管理器,它将kernel.sched_min_granularity_ns设置为10μ 秒,kernel.sched_wakeup_granularity_ns设置为 15 μ 秒,kernel.sched_migration_cost设置为5μ 秒,以及vm.dirty_ratio设置为40%。
配有 tuned-adm 的节能配置文件更多信息请参见 《红帽企业版 Linux 7 能耗管理指南》, 可在下列网站中查找 http://access.redhat.com/site/documentation/Red_Hat_Enterprise_Linux/。
使用 tuned-adm 的更多信息,请参见手册页。
$ man tuned-adm

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.