Red Hat Training

A Red Hat training course is available for RHEL 8

32.11. 自定义 cpu-partitioning TuneD 配置集

您可以扩展 TuneD 配置集,以进行额外的性能优化更改。

例如,cpu-partitioning 配置集将 CPU 设置为使用 cstate=1。要使用 cpu-partitioning 配置集,但额外将 CPU cstate 从 cstate1 更改为 cstate0,以下流程描述了一个新的 TuneD 配置集,名称为 my_profile,它继承 cpu-partitioning 配置集,然后设置 C state-0。

步骤

  1. 创建 /etc/tuned/my_profile 目录:

    # mkdir /etc/tuned/my_profile
  2. 在此目录中创建 tuned.conf 文件并添加以下内容:

    # vi /etc/tuned/my_profile/tuned.conf
    [main]
    summary=Customized tuning on top of cpu-partitioning
    include=cpu-partitioning
    [cpu]
    force_latency=cstate.id:0|1
  3. 使用新配置集:

    # tuned-adm profile my_profile
注意

在共享示例中,不需要重新启动。但是,如果 my_profile 配置集中的更改需要重新引导才能生效,则重新启动计算机。

其他资源

  • tuned-profiles-cpu-partitioning (7) man page