当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 2 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : 「Help」求助: 关于CPU frequency scaling的问题
帖子发表于 : 2018-02-09 18:49 
头像

注册: 2014-02-07 17:31
帖子: 456
系统: Xubuntu 14.04.5 64位
送出感谢: 40
接收感谢: 33
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 [email protected], 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/UCGSPXZ7DbSc8QDuDYX8L6Qg


页首
 用户资料  
 
2 楼 
 文章标题 : Re: 「Help」求助: 关于CPU frequency scaling的问题
帖子发表于 : 2018-02-09 20:52 

注册: 2007-01-14 16:23
帖子: 4350
送出感谢: 0 次
接收感谢: 109
你需要让你的应用跑单个核心,可能的话,最好是新CPU


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 2 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 2 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译