Package: cpufrequtils
Version: 008-1+b1
Severity: important

Dear Maintainer,

it appears cpufreq-info has issues with a lot of CPUs?

root@debian:~# reset; cpufreq-info 
cpufrequtils 008: cpufreq-info (C) Dominik Brodowski 2004-2009
Report errors and bugs to cpuf...@vger.kernel.org, please.
analyzing CPU 0:
  driver: acpi-cpufreq
  CPUs which run at the same hardware frequency: 0
  CPUs which need to have their frequency coordinated by software: 0
  maximum transition latency: 4294.55 ms.
  hardware limits: 2.20 GHz - 3.50 GHz
  available frequency steps: 3.50 GHz, 2.80 GHz, 2.20 GHz
  available cpufreq governors: ondemand, performance, schedutil
  current policy: frequency should be within 2.20 GHz and 3.50 GHz.
                  The governor "ondemand" may decide which speed to use
                  within this range.
  current CPU frequency is 3.50 GHz (asserted by call to hardware).
  cpufreq stats: 3.50 GHz:82.79%, 2.80 GHz:0.20%, 2.20 GHz:17.02%  (1149)
analyzing CPU 1:
...
analyzing CPU 2:
...
analyzing CPU 30:
  driver: acpi-cpufreq
  CPUs which run at the same hardware frequency: 30
  CPUs which need to have their frequency coordinated by software: 30
  maximum transition latency: 4294.55 ms.
  hardware limits: 2.20 GHz - 3.50 GHz
  available frequency steps: 3.50 GHz, 2.80 GHz, 2.20 GHz
  available cpufreq governors: ondemand, performance, schedutil
  current policy: frequency should be within 2.20 GHz and 3.50 GHz.
                  The governor "ondemand" may decide which speed to use
                  within this range.
  current CPU frequency is 3.50 GHz (asserted by call to hardware).
  cpufreq stats: 3.50 GHz:83.04%, 2.80 GHz:0.48%, 2.20 GHz:16.48%  (1701)
analyzing CPU 31:
  no or unknown cpufreq driver is active on this CPU
  maximum transition latency: 4294.55 ms.
root@debian:~#


As you can see the CPU 31 info is incomplete.


root@debian:~# cpufreq-info  | grep analyzing | wc -l
32
root@debian:~# cpufreq-info  | grep 'current CPU' | wc -l
31
root@debian:~#

root@debian:~# lscpu
Architecture:        x86_64
CPU op-mode(s):      32-bit, 64-bit
Byte Order:          Little Endian
CPU(s):              32
On-line CPU(s) list: 0-31
Thread(s) per core:  2
Core(s) per socket:  16
Socket(s):           1
NUMA node(s):        1
Vendor ID:           AuthenticAMD
CPU family:          23
Model:               8
Model name:          AMD Ryzen Threadripper 2950X 16-Core Processor
Stepping:            2
CPU MHz:             3965.165
CPU max MHz:         3500.0000
CPU min MHz:         2200.0000
BogoMIPS:            6999.01
Virtualization:      AMD-V
L1d cache:           32K
L1i cache:           64K
L2 cache:            512K
L3 cache:            8192K
NUMA node0 CPU(s):   0-31
Flags:               fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca 
cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb 
rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid amd_dcm 
aperfmperf pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 movbe popcnt aes 
xsave avx f16c rdrand lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a 
misalignsse 3dnowprefetch osvw skinit wdt tce topoext perfctr_core perfctr_nb 
bpext perfctr_llc mwaitx cpb hw_pstate sme ssbd sev ibpb vmmcall fsgsbase bmi1 
avx2 smep bmi2 rdseed adx smap clflushopt sha_ni xsaveopt xsavec xgetbv1 xsaves 
clzero irperf xsaveerptr arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean 
flushbyasid decodeassists pausefilter pfthreshold avic v_vmsave_vmload vgif 
overflow_recov succor smca
root@debian:~# uname -a
Linux debian 4.18.0-1-amd64 #1 SMP Debian 4.18.6-1 (2018-09-06) x86_64 GNU/Linux
root@debian:~# 



# grep . /sys/devices/system/cpu/cpu*/cpufreq/cpuinfo_cur_freq 
/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq:3500000
/sys/devices/system/cpu/cpu10/cpufreq/cpuinfo_cur_freq:3500000
/sys/devices/system/cpu/cpu11/cpufreq/cpuinfo_cur_freq:3500000
/sys/devices/system/cpu/cpu12/cpufreq/cpuinfo_cur_freq:3500000
/sys/devices/system/cpu/cpu13/cpufreq/cpuinfo_cur_freq:3500000
/sys/devices/system/cpu/cpu14/cpufreq/cpuinfo_cur_freq:3500000
/sys/devices/system/cpu/cpu15/cpufreq/cpuinfo_cur_freq:3500000
/sys/devices/system/cpu/cpu16/cpufreq/cpuinfo_cur_freq:3500000
/sys/devices/system/cpu/cpu17/cpufreq/cpuinfo_cur_freq:3500000
/sys/devices/system/cpu/cpu18/cpufreq/cpuinfo_cur_freq:3500000
/sys/devices/system/cpu/cpu19/cpufreq/cpuinfo_cur_freq:3500000
/sys/devices/system/cpu/cpu1/cpufreq/cpuinfo_cur_freq:3500000
/sys/devices/system/cpu/cpu20/cpufreq/cpuinfo_cur_freq:3500000
/sys/devices/system/cpu/cpu21/cpufreq/cpuinfo_cur_freq:3500000
/sys/devices/system/cpu/cpu22/cpufreq/cpuinfo_cur_freq:3500000
/sys/devices/system/cpu/cpu23/cpufreq/cpuinfo_cur_freq:3500000
/sys/devices/system/cpu/cpu24/cpufreq/cpuinfo_cur_freq:3500000
/sys/devices/system/cpu/cpu25/cpufreq/cpuinfo_cur_freq:3500000
/sys/devices/system/cpu/cpu26/cpufreq/cpuinfo_cur_freq:3500000
/sys/devices/system/cpu/cpu27/cpufreq/cpuinfo_cur_freq:3500000
/sys/devices/system/cpu/cpu28/cpufreq/cpuinfo_cur_freq:3500000
/sys/devices/system/cpu/cpu29/cpufreq/cpuinfo_cur_freq:3500000
/sys/devices/system/cpu/cpu2/cpufreq/cpuinfo_cur_freq:3500000
/sys/devices/system/cpu/cpu30/cpufreq/cpuinfo_cur_freq:3500000
/sys/devices/system/cpu/cpu3/cpufreq/cpuinfo_cur_freq:3500000
/sys/devices/system/cpu/cpu4/cpufreq/cpuinfo_cur_freq:3500000
/sys/devices/system/cpu/cpu5/cpufreq/cpuinfo_cur_freq:3500000
/sys/devices/system/cpu/cpu6/cpufreq/cpuinfo_cur_freq:3500000
/sys/devices/system/cpu/cpu7/cpufreq/cpuinfo_cur_freq:3500000
/sys/devices/system/cpu/cpu8/cpufreq/cpuinfo_cur_freq:3500000
/sys/devices/system/cpu/cpu9/cpufreq/cpuinfo_cur_freq:3500000
#

No cpu31 here either. So maybe it is a kernel bug of some sort.

root@debian:~# grep . /sys/devices/system/cpu/cpu31/driver/cpu31/online 
1
root@debian:~# 





Thanks.

PS. The 'current CPU frequency' is not correct anyway, it should be 3.94
/ 3.97 as read by `cpufreq-info -f`, and other sources
(mate-sensors-applet, /proc/cpuinfo, lscpu, etc).




-- System Information:
Debian Release: buster/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 4.18.0-1-amd64 (SMP w/32 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages cpufrequtils depends on:
ii  debconf [debconf-2.0]  1.5.69
ii  libc6                  2.27-6
ii  libcpufreq0            008-1+b1
ii  lsb-base               9.20170808

cpufrequtils recommends no packages.

cpufrequtils suggests no packages.

-- debconf information:
  cpufrequtils/enable: true

Reply via email to