1.15. 设置 TuneD 配置集

此流程激活系统中的所选 TuneD 配置集。

先决条件

步骤

  1. 另外,您可以让 TuneD 为您的系统推荐最合适的配置集:

    # tuned-adm recommend
    
    throughput-performance
  2. 激活配置集:

    # tuned-adm profile selected-profile

    另外,您可以激活多个配置集的组合:

    # tuned-adm profile selected-profile1 selected-profile2

    例 1.3. 为低功耗优化的虚拟机

    以下示例优化了在虚拟机中运行的系统,以获得最佳性能,并同时将其调优以实现低功耗,低功耗比高性能有更高优先级:

    # tuned-adm profile virtual-guest powersave
  3. 查看系统中当前活跃的 TuneD 配置集:

    # tuned-adm active
    
    Current active profile: selected-profile
  4. 重启系统:

    # reboot

验证步骤

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

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

其他资源

  • tuned-adm (8) 手册页