我在 Ubuntu Linux 11.10 系统上查看处理器规格。
这是命令 cat /proc/cpuinfo 输出的结尾:
processor : 3
vendor_id : GenuineIntel
cpu family : 6
model : 37
model name : Intel(R) Core(TM) i3 CPU M 330 @ 2.13GHz
stepping : 2
cpu MHz : 933.000
cache size : 3072 KB
physical id : 0
siblings : 4
core id : 2
cpu cores : 2
apicid : 5
initial apicid : 5
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 11
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx rdtscp lm constant_tsc arch_perfmon pebs bts xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm sse4_1 sse4_2 popcnt lahf_lm arat dts tpr_shadow vnmi flexpriority ept vpid
bogomips : 4256.47
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:
Run Code Online (Sandbox Code Playgroud)
我没有得到的是标记的行:
model name : Intel(R) Core(TM) i3 CPU M 330 @ 2.13GHz
cpu MHz : 933.000
Run Code Online (Sandbox Code Playgroud)
这里的处理器频率在第一行是 2.13 GHz,在第二行是 933 Mhz。哪个是正确的?2.13 GHz 是指内核频率的总和吗?
最后,这些频率中的哪一个告诉我系统时钟所占用的每秒周期数/每秒时钟滴答数?
编辑:在 Bruno Pereira 的好答案的一个小扩展中,我发现让处理器以不同的频率运行也是动态频率缩放或 CPU 节流。这里有两个可能感兴趣的网页:
Linux 使用调控器来设置您的 CPU 将运行的步进(如果您的 CPU 支持步进设置)。
通常,默认情况下这些设置为On Demmand,这意味着 CPU 的频率在不密集使用时会降低。
cpufreq-info是一个实用程序,用于检查 CPU 可用的步骤、当前每个 CPU 内核正在使用的内核调控器以及有关 CPU 功能的更多信息。
它返回类似
cpufrequtils 007: cpufreq-info (C) Dominik Brodowski 2004-2009
Report errors and bugs to cpufreq@vger.kernel.org, please.
analyzing CPU 0:
driver: powernow-k8
CPUs which run at the same hardware frequency: 0
CPUs which need to have their frequency coordinated by software: 0
maximum transition latency: 8.0 us.
hardware limits: 800 MHz - 3.00 GHz
available frequency steps: 3.00 GHz, 2.30 GHz, 1.80 GHz, 800 MHz
available cpufreq governors: conservative, ondemand, userspace, powersave, performance
current policy: frequency should be within 800 MHz and 3.00 GHz.
The governor "ondemand" may decide which speed to use
within this range.
current CPU frequency is 800 MHz.
cpufreq stats: 3.00 GHz:10.45%, 2.30 GHz:0.29%, 1.80 GHz:1.72%, 800 MHz:87.55% (28605)
Run Code Online (Sandbox Code Playgroud)
有关如何从命令行检查和设置 CPU 步进的更多信息,我已经创建了另一个问题的答案,解释了如何执行此操作here,请查看。
您的 CPU 最大频率为 2.13Ghz,但除非您的内核调控器设置为性能,否则您的系统将(大部分空闲时间)降低该频率。
933Mhz 是您的 CPU 可用的最低步进,这可能意味着您的系统目前没有承受很大的压力,或者它正在使用节电调节器。
您可以测试在系统负载时是否获得相同的结果,如果频率没有变化,那么您使用的是节电调节器,并且始终将 CPU 的频率保持在 933Mhz。
933 MHz 是该 CPU 内核的当前频率(它可能以较低的速度运行,因为系统处于空闲状态),而 2.13 GHZ 是最大值。频率。另请参阅程序的输出cpufreq-info。
| 归档时间: |
|
| 查看次数: |
11920 次 |
| 最近记录: |