2.4. 管理 TuneD 配置集
您可以在 Red Hat Enterprise Linux 系统中管理 TuneD 配置集,包括列出可用配置集、设置特定配置集以及根据需要禁用 TuneD。正确管理配置集可优化特定工作负载的系统性能,如将 cpu-partitioning 配置集用于低延迟应用程序。
先决条件
- 已安装并启用了 TuneD。
- 您有管理特权。
流程
列出所有可用的预定义的 TuneD 配置集:
$ tuned-adm list可选: 要让 TuneD 为您的系统推荐最合适的配置集,请使用以下命令:
# tuned-adm recommend throughput-performance激活配置文件:
# tuned-adm profile selected-profile另外,您可以激活多个配置文件的组合:
# tuned-adm profile selected-profile1 selected-profile2查看系统中的当前活跃的 TuneD 配置集:
# tuned-adm active Current active profile: selected-profile临时禁用所有调整:
# tuned-adm off The tunings are applied again after the TuneD service restarts.可选:永久停止并禁用 TuneD 服务:
# systemctl disable --now tuned