Eu tenho exatamente dois servidores bare-metal iguais com a mesma configuração de kernel / OS, mas eles estão rodando em duas freqüências de CPU diferentes: a fixa em 2300MHz, enquanto a outra muda entre 1200MHz e 2300MHz . As informações em sudo cpupower frequency-info
são as seguintes:
O primeiro servidor:
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: 1.20 GHz - 2.50 GHz
available cpufreq governors: performance powersave
current policy: frequency should be within 1.20 GHz and 2.50 GHz.
The governor "powersave" may decide which speed to use within this range.
current CPU frequency: 2.30 GHz (asserted by call to hardware)
boost state support:
Supported: yes
Active: yes
O segundo servidor:
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: 1.20 GHz - 2.50 GHz
available cpufreq governors: performance powersave
current policy: frequency should be within 2.00 GHz and 2.50 GHz.
The governor "performance" may decide which speed to use within this range.
current CPU frequency: 1.20 GHz (asserted by call to hardware)
boost state support:
Supported: yes
Active: yes
E o cat /proc/cpuinfo
é exatamente o mesmo, exceto a linha cpu MHz
:
processor : 31
vendor_id : GenuineIntel
cpu family : 6
model : 62
model name : Intel(R) Xeon(R) CPU E5-2640 v2 @ 2.00GHz
stepping : 4
microcode : 0x428
cpu MHz : 2299.921
cache size : 20480 KB
physical id : 1
siblings : 16
core id : 7
cpu cores : 8
apicid : 47
initial apicid : 47
fpu : yes
fpu_exception : yes
cpuid level : 13
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 syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm ida arat xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid fsgsbase smep erms
bogomips : 4004.73
clflush size : 64
cache_alignment : 64
address sizes : 46 bits physical, 48 bits virtual
power management:
Eu tentei muitas maneiras que são introduzidas por alguns artigos, como sudo service cpuspeed stop
, sudo cpupower frequency-set -g performance
, sudo cpupower frequency-set -d 2000000
, etc, mas nada aconteceu. Parece que a escala de freqüência da CPU não está sob controle algum: a que está rodando em max boosted frequency enquanto o driver / governador diz powersave
, e a outra está pulando de 1200MHz enquanto o driver / governor diz performance
(que deve limitar a frequência entre 2000MHz e 2500MHz).
BTW, não há aceleração de temperatura em ambos os servidores.
Meu sistema operacional é CentOS release 6.6 (Final)
e o kernel é 3.10.73
, como posso obter o controle da freqüência da CPU dimensionando as coisas?