Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.bugs.dist > #925556 > unrolled thread
| Started by | Witold Baryluk <witold.baryluk@gmail.com> |
|---|---|
| First post | 2018-11-01 18:20 +0100 |
| Last post | 2018-11-20 03:10 +0100 |
| Articles | 6 — 3 participants |
Back to article view | Back to linux.debian.bugs.dist
Bug#912596: cpufrequtils: cpufreq-info only shows 31 CPUs Witold Baryluk <witold.baryluk@gmail.com> - 2018-11-01 18:20 +0100
Bug#912596: cpufrequtils: cpufreq-info only shows 31 CPUs Mattia Dongili <malattia@linux.it> - 2018-11-01 23:10 +0100
Bug#912596: cpufrequtils: cpufreq-info only shows 31 CPUs Witold Baryluk <witold.baryluk@gmail.com> - 2018-11-08 19:10 +0100
Bug#912596: cpufrequtils: cpufreq-info only shows 31 CPUs Raymond Burkholder <ray@oneunified.net> - 2018-11-08 20:00 +0100
Bug#912596: cpufrequtils: cpufreq-info only shows 31 CPUs Witold Baryluk <witold.baryluk@gmail.com> - 2018-11-08 19:50 +0100
Bug#912596: cpufrequtils: cpufreq-info only shows 31 CPUs Witold Baryluk <witold.baryluk@gmail.com> - 2018-11-20 03:10 +0100
| From | Witold Baryluk <witold.baryluk@gmail.com> |
|---|---|
| Date | 2018-11-01 18:20 +0100 |
| Subject | Bug#912596: cpufrequtils: cpufreq-info only shows 31 CPUs |
| Message-ID | <wPoNs-302-21@gated-at.bofh.it> |
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 cpufreq@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
[toc] | [next] | [standalone]
| From | Mattia Dongili <malattia@linux.it> |
|---|---|
| Date | 2018-11-01 23:10 +0100 |
| Message-ID | <wPtk6-5JS-5@gated-at.bofh.it> |
| In reply to | #925556 |
On Thu, Nov 01, 2018 at 05:09:26PM +0000, Witold Baryluk wrote: > Package: cpufrequtils > Version: 008-1+b1 > Severity: important > > Dear Maintainer, > > it appears cpufreq-info has issues with a lot of CPUs? cpufrequtils is unmaintained upstream and is in the archive essentially only because its replacement is missing some functionality (IIRC). Could you install linux-cpupower and try cpupower -c all frequency-info ? ... > # 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. Ha! Yes, most likely an issue on the kernel end. I'm reassigning to linux-image4.18. -- mattia :wq!
[toc] | [prev] | [next] | [standalone]
| From | Witold Baryluk <witold.baryluk@gmail.com> |
|---|---|
| Date | 2018-11-08 19:10 +0100 |
| Message-ID | <wRWUG-6HK-25@gated-at.bofh.it> |
| In reply to | #925556 |
Package: linux-image-4.18
Followup-For: Bug #912596
# cpupower -c all frequency-info
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: Cannot determine or is not supported.
hardware limits: 2.20 GHz - 3.50 GHz
available frequency steps: 3.50 GHz, 2.80 GHz, 2.20 GHz
available cpufreq governors: userspace powersave conservative 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: Unable to call hardware
current CPU frequency: 1.89 GHz (asserted by call to kernel)
boost state support:
Supported: yes
Active: no
...
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: Cannot determine or is not supported.
hardware limits: 2.20 GHz - 3.50 GHz
available frequency steps: 3.50 GHz, 2.80 GHz, 2.20 GHz
available cpufreq governors: userspace powersave conservative 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: Unable to call hardware
current CPU frequency: 3.69 GHz (asserted by call to kernel)
boost state support:
Supported: yes
Active: no
analyzing CPU 31:
no or unknown cpufreq driver is active on this CPU
CPUs which run at the same hardware frequency: Not Available
CPUs which need to have their frequency coordinated by software: Not Available
maximum transition latency: Cannot determine or is not supported.
Not Available
available cpufreq governors: Not Available
Unable to determine current policy
current CPU frequency: Unable to call hardware
current CPU frequency: Unable to call to kernel
boost state support:
Supported: yes
Active: no
#
Same issue, last CPU has missing info.
Thanks.
Missing file in sys indicate it is an issue with kernel or my
motherboard / CPU.
-- System Information:
Debian Release: buster/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.18.0-2-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 linux-image-4.18 depends on:
ii initramfs-tools [linux-initramfs-tool] 0.132
ii kmod 25-1
ii linux-base 4.5
Versions of packages linux-image-4.18 recommends:
ii apparmor 2.13.1-3+b1
ii firmware-linux-free 3.4
pn irqbalance <none>
Versions of packages linux-image-4.18 suggests:
pn debian-kernel-handbook <none>
ii extlinux 3:6.04~git20171011.af7e95c3+dfsg1-5
pn linux-doc-4.18 <none>
[toc] | [prev] | [next] | [standalone]
| From | Raymond Burkholder <ray@oneunified.net> |
|---|---|
| Date | 2018-11-08 20:00 +0100 |
| Message-ID | <wRXxo-6Us-5@gated-at.bofh.it> |
| In reply to | #926923 |
I might be missing something, but ... 0 - 31 means a count of 32. Or do you have more than 32? On 2018-11-08 11:01 a.m., Witold Baryluk wrote: > Package: linux-image-4.18 > Followup-For: Bug #912596 > > > # cpupower -c all frequency-info > analyzing CPU 0: <- cut -> > ... > analyzing CPU 30: <- cut -> > analyzing CPU 31: <- cut -> > # > > Same issue, last CPU has missing info. > > Thanks. > > Missing file in sys indicate it is an issue with kernel or my > motherboard / CPU. > >
[toc] | [prev] | [next] | [standalone]
| From | Witold Baryluk <witold.baryluk@gmail.com> |
|---|---|
| Date | 2018-11-08 19:50 +0100 |
| Message-ID | <wRXxn-6Us-3@gated-at.bofh.it> |
| In reply to | #925556 |
[Multipart message — attachments visible in raw view] — view raw
I have 16 cores, 32 threads. It only shows correctly first 31 CPUs. (cpu0 to cpu30). Last one cpu31 is missing some data. On 8 Nov 2018 19:36, "Raymond Burkholder" <ray@oneunified.net> wrote: I might be missing something, but ... 0 - 31 means a count of 32. Or do you have more than 32? On 2018-11-08 11:01 a.m., Witold Baryluk wrote: > Package: linux-image-4.18 > Followup-For: Bug #912596 > > > # cpupower -c all frequency-info > analyzing CPU 0: <- cut -> > ... > analyzing CPU 30: <- cut -> > analyzing CPU 31: <- cut -> > # > > Same issue, last CPU has missing info. > > Thanks. > > Missing file in sys indicate it is an issue with kernel or my > motherboard / CPU. > >
[toc] | [prev] | [next] | [standalone]
| From | Witold Baryluk <witold.baryluk@gmail.com> |
|---|---|
| Date | 2018-11-20 03:10 +0100 |
| Message-ID | <wW3Ed-2xP-7@gated-at.bofh.it> |
| In reply to | #925556 |
Package: linux Followup-For: Bug #912596 (I sent this before, but for some reasons it didn't get into bts.) I have 32 cpus. So cpus indexed 0 - 31. Yes. * the cpu 0 - 30 show correct power/frequency info. * cpu 31 doesn't. Please inspect carefully my attached outputs of the tools used. So it only works for 31 CPUs, as in the subject. Thanks! -- System Information: Debian Release: buster/sid APT prefers testing APT policy: (500, 'testing'), (1, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 4.18.0-2-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
[toc] | [prev] | [standalone]
Back to top | Article view | linux.debian.bugs.dist
csiph-web