美文网首页
linux 下 cpu性能参数相关

linux 下 cpu性能参数相关

作者: 国服最坑开发 | 来源:发表于2024-08-18 09:29 被阅读0次

1、查看CPU频率

cpupower frequency-info
analyzing CPU 0:
  driver: intel_pstate
  CPUs which run at the same hardware frequency: 0
  CPUs which need to have their frequency coordinated by software: 0
  maximum transition latency:  Cannot determine or is not supported.
  hardware limits: 800 MHz - 3.50 GHz
  available cpufreq governors: performance powersave
  current policy: frequency should be within 800 MHz and 3.50 GHz.
                  The governor "performance" may decide which speed to use
                  within this range.
  current CPU frequency: Unable to call hardware
  current CPU frequency: 3.10 GHz (asserted by call to kernel)
  boost state support:
    Supported: yes
    Active: yes

2、直接更新性能模式

cpupower frequency-set -g performance

3、查看性能参数相关

# 当前使用中的
tuned-adm active

# 可使用的列表
tuned-adm list

# 设置需要的profile
tuned-adm profile throughput-performance
# tuned-adm list
Available profiles:
- balanced                    - General non-specialized tuned profile
- desktop                     - Optimize for the desktop use-case
- hpc-compute                 - Optimize for HPC compute workloads
- 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

相关文章

网友评论

      本文标题:linux 下 cpu性能参数相关

      本文链接:https://www.haomeiwen.com/subject/njkpkjtx.html