HFT:Check the current CPU Speed

From Define Wiki
Revision as of 12:26, 30 January 2014 by David (talk | contribs)
Jump to navigation Jump to search

Check the current speed of the CPU

The speed of the cpu in /proc/cpuinfo will report the default speed of the CPU. If the speed of the CPU has been changed in anyway it may not be accurate. This includes overclocking on the HFT systems

Get the current CPU speed

Install the package from yum:

yum install cpupowerutils


Use turbostat to get the current speed. This is shown in the GHz column.

[root@hft1 ~]# turbostat
pk cor CPU    %c0  GHz  TSC SMI    %c1    %c3    %c6    %c7 CTMP PTMP   %pc2   %pc3   %pc6   %pc7  Pkg_W  Cor_W RAM_W PKG_% RAM_%
           100.00 3.75 3.54   0   0.00   0.00   0.00   0.00   73   73   0.00   0.00   0.00   0.00 203.02 173.64  0.00  0.00  0.00
 0   1   0 100.00 3.75 3.54   0   0.00   0.00   0.00   0.00   66   73   0.00   0.00   0.00   0.00 100.86  86.27  0.00  0.00  0.00
 0   2   1 100.00 3.75 3.54   0   0.00   0.00   0.00   0.00   68
 0   3   2 100.00 3.75 3.54   0   0.00   0.00   0.00   0.00   71

Another Handy Tool (i7z)

Get the i7z util: https://code.google.com/p/i7z/

Cpu speed from cpuinfo 3528.00Mhz
True Frequency (without accounting Turbo) 3528 MHz

Socket [0] - [physical cores=6, logical cores=6, max online cores ever=6]
  CPU Multiplier 34x || Bus clock frequency (BCLK) 103.76 MHz
  TURBO ENABLED on 6 Cores, Hyper Threading OFF
  True Frequency 3631.76 MHz (103.76 x [35])
  Max TURBO Multiplier (if Enabled) with 1/2/3/4/5/6 cores is  40x/39x/38x/37x/36x/36x
  Current Frequency 3735.53 MHz (Max of below)
        Core [core-id]  :Actual Freq (Mult.)      C0%   Halt(C1)%  C3 %   C6 %  Temp
        Core 1 [0]:       3735.53 (36.00x)       100       0       0       0    73
        Core 2 [1]:       3735.53 (36.00x)       100       0       0       0    74
        Core 3 [2]:       3735.53 (36.00x)       100       0       0       0    76
        Core 4 [3]:       3735.53 (36.00x)       100       0       0       0    70
        Core 5 [4]:       3735.53 (36.00x)       100       0       0       0    77
        Core 6 [5]:       3735.53 (36.00x)       100       0       0       0    80

Socket [1] - [physical cores=6, logical cores=6, max online cores ever=6]
  CPU Multiplier 34x || Bus clock frequency (BCLK) 103.76 MHz
  TURBO ENABLED on 6 Cores, Hyper Threading OFF
  True Frequency 3631.76 MHz (103.76 x [35])
  Max TURBO Multiplier (if Enabled) with 1/2/3/4/5/6 cores is  40x/39x/38x/37x/36x/36x
  Current Frequency 3735.53 MHz (Max of below)
        Core [core-id]  :Actual Freq (Mult.)      C0%   Halt(C1)%  C3 %   C6 %  Temp
        Core 1 [6]:       3735.53 (36.00x)       100       0       0       0    71
        Core 2 [7]:       3735.53 (36.00x)       100       0       0       0    72
        Core 3 [8]:       3735.53 (36.00x)       100       0       0       0    72
        Core 4 [9]:       3735.53 (36.00x)       100       0       0       0    69
        Core 5 [10]:      3735.53 (36.00x)       100       0       0       0    64
        Core 6 [11]:      3735.53 (36.00x)       100       0       0       0    68

C0 = Processor running without halting
C1 = Processor running with halts (States >C0 are power saver)
C3 = Cores running with PLL turned off and core cache turned off
C6 = Everything in C3 + core state saved to last level cache
  Above values in table are in percentage over the last 1 sec
[core-id] refers to core-id number in /proc/cpuinfo
'Garbage Values' message printed when garbage values are read
  Ctrl+C to exit