tuned-adm

  1. 查詢目前使用的 profile。
    [root@kvm10 ~]# tuned-adm active 
    Current active profile: throughput-performance
    
  2. 列出可用的 profile。
    [root@kvm10 ~]# tuned-adm list
    Available profiles:
    - balanced                    - General non-specialized tuned profile
    - desktop                     - Optimize for the desktop use-case
    - latency-performance         - Optimize for deterministic performance at the
     cost of increased power consumption
    - network-latency             - Optimize for deterministic performance at the
     cost of increased power consumption, focused on low latency network performance
    - network-throughput          - Optimize for streaming network throughput,
     generally only necessary on older CPUs or 40G+ networks
    - powersave                   - Optimize for low power consumption
    - throughput-performance      - Broadly applicable tuning that provides
     excellent performance across a variety of common server workloads
    - virtual-guest               - Optimize for running inside a virtual guest
    - virtual-host                - Optimize for running KVM guests
    Current active profile: throughput-performance
    
  3. 查看推薦使用的 profile。
    [root@kvm10 ~]# tuned-adm recommend 
    atomic-guest
    
  4. 將預設的 profile 切換到系統建議的 atomic-guest,但atomic-guest profile 不存在。
    [root@kvm10 ~]# tuned-adm profile atomic-guest
    Requested profile 'atomic-guest' doesn't exist.
    
  5. 安裝 tuned-profiles-atomic。
    [root@kvm10 ~]# dnf install tuned-profiles-atomic-2.18.0-1.el9.noarch
    
  6. 將預設的 profile 切換到系統建議的 atomic-guest。
    [root@kvm10 ~]# tuned-adm profile atomic-guest
    
  7. 再查看目前使用的 profile 已改成 atomic-guest。
    [root@kvm10 ~]# tuned-adm active 
    Current active profile: atomic-guest