2.3. 安装并启用 TuneD


作为系统管理员,您可以使用 TuneD 守护进程来针对各种用例优化系统的性能配置集。您必须安装并启用 TuneD 才能开始使用它。

安装后,/usr/lib/tuned/profiles 目录会存储特定于分发的配置文件。每个配置集存储在其自己的子目录中。该配置集包括名为 tuned.conf 的配置集配置文件,以及其他文件,如帮助程序脚本。另外,要自定义配置集,请将配置集目录复制到 /etc/tuned/profiles 中,它将存储与自定义配置集相关的文件。如果存在具有相同名称的配置集,则位于 /etc/tuned/profiles 中的自定义配置集会具有优先权。

先决条件

  • 您有管理特权。

流程

  1. 安装 TuneD 软件包:

    # dnf install tuned
    Copy to Clipboard Toggle word wrap
  2. 启用并启动 TuneD 服务:

    # systemctl enable --now tuned
    Copy to Clipboard Toggle word wrap
  3. 可选:为实时系统安装 TuneD 配置集:

    对于实时系统的 TuneD 配置集,启用 rhel-10 存储库。

    # subscription-manager repos --enable=rhel-10-for-x86_64-nfv-beta-rpms
    # dnf install tuned-profiles-realtime tuned-profiles-nfv
    Copy to Clipboard Toggle word wrap

验证

  • 验证配置集是否活跃并应用:

    $ tuned-adm active
    Current active profile: throughput-performance
    $ tuned-adm verify
    Verification succeeded, current system settings match the preset profile. See tuned log file ('/var/log/tuned/tuned.log') for details.
    Copy to Clipboard Toggle word wrap
返回顶部
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2025 Red Hat