1.13. 安装并启用 TuneD

此流程安装并启用 TuneD 应用程序,安装 TuneD 配置集,并为您的系统预设默认 TuneD 配置集。

流程

  1. 安装 Tuned 软件包:

    # dnf install tuned
  2. 启用并启动 TuneD 服务:

    # systemctl enable --now tuned
  3. 另外,还可为实时系统安装 TuneD 配置集:

    对于实时系统的 TuneD 配置文件,启用 rhel-9 存储库。

    # subscription-manager repos --enable=rhel-9-for-x86_64-nfv-beta-rpms

    安装它。

    # dnf install tuned-profiles-realtime tuned-profiles-nfv
  4. 验证 TuneD 配置集是否活跃并应用:

    $ tuned-adm active
    
    Current active profile: throughput-performance
    注意

    活跃的配置文件 TuneD 会根据您的机器类型和系统设置会自动进行不同的预置。

    $ tuned-adm verify
    
    Verification succeeded, current system settings match the preset profile.
    See tuned log file ('/var/log/tuned/tuned.log') for details.