「Help」求助: 关于CPU frequency scaling的问题

XFCE和LXDE桌面环境
回复
头像
kashu
帖子: 456
注册时间: 2014-02-07 17:31
系统: Xubuntu 14.04.5 64位
送出感谢: 37 次
接收感谢: 24 次

「Help」求助: 关于CPU frequency scaling的问题

#1

帖子 kashu » 2018-02-09 18:49

Linux发行版:Xubuntu 14.04.5 LTS 64-bit
Linux内核:3.16.0-77-generic
CPU型号:Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz

1)我把scaling_governor都调整为performance了
kashu:/tmp$ sudo cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
performance
performance
performance
performance

代码: 全选

kashu:/tmp$ cpufreq-info 
cpufrequtils 008: cpufreq-info (C) Dominik Brodowski 2004-2009
Report errors and bugs to cpufreq@vger.kernel.org, please.
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: 0.97 ms.
  hardware limits: 1.20 GHz - 3.10 GHz
  available cpufreq governors: performance, powersave
  current policy: frequency should be within 1.20 GHz and 3.10 GHz.
                  The governor "performance" may decide which speed to use
                  within this range.
  current CPU frequency is 2.96 GHz.
analyzing CPU 1:
  driver: intel_pstate
  CPUs which run at the same hardware frequency: 1
  CPUs which need to have their frequency coordinated by software: 1
  maximum transition latency: 0.97 ms.
  hardware limits: 1.20 GHz - 3.10 GHz
  available cpufreq governors: performance, powersave
  current policy: frequency should be within 1.20 GHz and 3.10 GHz.
                  The governor "performance" may decide which speed to use
                  within this range.
  current CPU frequency is 2.90 GHz.
analyzing CPU 2:
  driver: intel_pstate
  CPUs which run at the same hardware frequency: 2
  CPUs which need to have their frequency coordinated by software: 2
  maximum transition latency: 0.97 ms.
  hardware limits: 1.20 GHz - 3.10 GHz
  available cpufreq governors: performance, powersave
  current policy: frequency should be within 1.20 GHz and 3.10 GHz.
                  The governor "performance" may decide which speed to use
                  within this range.
  current CPU frequency is 2.94 GHz.
analyzing CPU 3:
  driver: intel_pstate
  CPUs which run at the same hardware frequency: 3
  CPUs which need to have their frequency coordinated by software: 3
  maximum transition latency: 0.97 ms.
  hardware limits: 1.20 GHz - 3.10 GHz
  available cpufreq governors: performance, powersave
  current policy: frequency should be within 1.20 GHz and 3.10 GHz.
                  The governor "performance" may decide which speed to use
                  within this range.
  current CPU frequency is 2.90 GHz.
2)这是当前正在运行的CPU频率(2.9GHz)(一直在观察)
kashu:/tmp$ watch -n1 sudo cat /sys/devices/system/cpu/cpu*/cpufreq/cpuinfo_cur_freq
2900000
2900000
2900000
2900000


我要运行一些比较耗费CPU资源的程序,CPU支持Intel® Turbo Boost Technology,我想让CPU一直在高频率上运行。

我的疑问:我设想这CPU应该在3.1GHz上运行的,为什么(scaling_governor)调整为performance后,CPU并没有在3.1GHz上运行,却基本保持在2.9GHz上运行着?是不是我的系统上/BIOS上还需要调整什么参数/选项才能让CPU稳定在3.1GHz上?

https://ark.intel.com/products/67355/In ... 0-GHz-rPGA
Processor Base Frequency: 2.50 GHz
Max Turbo Frequency: 3.10 GHz


OS: Xubuntu 14.04.5 LTS 64-bit
CPU: Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz
RAM: 12GB DDR3 1333MHz
128GB SSD + 2TB HDD
神舟优雅A480B-I5B 购于 2012.08

YouTube频道:https://www.youtube.com/channel/UCGSPXZ ... DuDYX8L6Qg
onlylove
论坛版主
帖子: 4407
注册时间: 2007-01-14 16:23
送出感谢: 0
接收感谢: 98 次

Re: 「Help」求助: 关于CPU frequency scaling的问题

#2

帖子 onlylove » 2018-02-09 20:52

你需要让你的应用跑单个核心,可能的话,最好是新CPU
回复

回到 “Xubuntu & Lubuntu”