[BUG] setFrequency: getIntelHWP/getIntelTurbo fails
Created by: fenz
Describe the bug Changing frequency governor produce errors.
To Reproduce
- LIKWID command and/or API usage
$ likwid-setFrequencies -p
ERROR - [./src/frequency_cpu.c:getIntelHWP:861] No such file or directory.
Cannot read register 0x770
ERROR - [./src/frequency_cpu.c:getIntelTurbo:744] No such file or directory.
Cannot read register 0x1a0
ERROR - [./src/frequency_cpu.c:getIntelTurbo:744] No such file or directory.
Cannot read register 0x1a0
ERROR - [./src/frequency_cpu.c:getIntelTurbo:744] No such file or directory.
Cannot read register 0x1a0
ERROR - [./src/frequency_cpu.c:getIntelTurbo:744] No such file or directory.
Cannot read register 0x1a0
ERROR - [./src/frequency_cpu.c:getIntelTurbo:744] No such file or directory.
Cannot read register 0x1a0
ERROR - [./src/frequency_cpu.c:getIntelTurbo:744] No such file or directory.
Cannot read register 0x1a0
ERROR - [./src/frequency_cpu.c:getIntelTurbo:744] No such file or directory.
Cannot read register 0x1a0
ERROR - [./src/frequency_cpu.c:getIntelTurbo:744] No such file or directory.
Cannot read register 0x1a0
Cannot read frequency data from cpufreq module
No support for Uncore frequencies
-
LIKWID version and download source (Github, FTP, package manger, ...) $ likwid-setFrequencies --version likwid-setFrequencies -- Version 5.1.1 (commit: 233ab943543480cd46058b34616c174198ba0459) download -> configure -> make -> make install (all default config)
-
Operating system Ubuntu 20.04
To Reproduce with a LIKWID command
Please supply the output of the command with -V 3
added to the command:
- likwid-setFrequencies
$ likwid-setFrequencies -V 3 -p
DEBUG - [hwloc_init_cpuInfo:352] HWLOC CpuInfo Family 6 Model 126 Stepping 5 Vendor 0x0 Part 0x0 isIntel 1 numHWThreads 8 activeHWThreads 8
DEBUG - [hwloc_init_nodeTopology:528] HWLOC Thread Pool PU 0 Thread 0 Core 0 Socket 0 inCpuSet 1
DEBUG - [hwloc_init_nodeTopology:528] HWLOC Thread Pool PU 4 Thread 1 Core 0 Socket 0 inCpuSet 1
DEBUG - [hwloc_init_nodeTopology:528] HWLOC Thread Pool PU 1 Thread 0 Core 1 Socket 0 inCpuSet 1
DEBUG - [hwloc_init_nodeTopology:528] HWLOC Thread Pool PU 5 Thread 1 Core 1 Socket 0 inCpuSet 1
DEBUG - [hwloc_init_nodeTopology:528] HWLOC Thread Pool PU 2 Thread 0 Core 2 Socket 0 inCpuSet 1
DEBUG - [hwloc_init_nodeTopology:528] HWLOC Thread Pool PU 6 Thread 1 Core 2 Socket 0 inCpuSet 1
DEBUG - [hwloc_init_nodeTopology:528] HWLOC Thread Pool PU 3 Thread 0 Core 3 Socket 0 inCpuSet 1
DEBUG - [hwloc_init_nodeTopology:528] HWLOC Thread Pool PU 7 Thread 1 Core 3 Socket 0 inCpuSet 1
DEBUG - [hwloc_init_cacheTopology:747] HWLOC Cache Pool ID 0 Level 1 Size 49152 Threads 2
DEBUG - [hwloc_init_cacheTopology:747] HWLOC Cache Pool ID 1 Level 2 Size 524288 Threads 2
DEBUG - [hwloc_init_cacheTopology:747] HWLOC Cache Pool ID 2 Level 3 Size 6291456 Threads 8
DEBUG - [affinity_init:323] Affinity: Socket domains 1
DEBUG - [affinity_init:334] Affinity: NUMA domains 1
DEBUG - [affinity_init:337] Affinity: CPUs per socket 8
DEBUG - [affinity_init:347] Affinity: CPU cores per LLC 4
DEBUG - [affinity_init:351] Affinity: CPUs per LLC 8
DEBUG - [affinity_init:358] Affinity: Cache domains 1
DEBUG - [affinity_init:362] Affinity: All domains 4
DEBUG - [affinity_init:375] Affinity domain N: 8 HW threads on 4 cores
DEBUG - [affinity_init:443] Affinity domain S0: 8 HW threads on 4 cores
DEBUG - [affinity_init:461] Affinity domain C0: 8 HW threads on 4 cores
DEBUG - [affinity_init:557] Affinity domain M0: 8 HW threads on 4 cores
DEBUG - [create_lookups:252] affinity_thread2core_lookup[0] = 0
DEBUG - [create_lookups:254] affinity_thread2socket_lookup[0] = 0
DEBUG - [create_lookups:268] affinity_thread2numa_lookup[0] = 0
DEBUG - [create_lookups:276] affinity_thread2sharedl3_lookup[0] = 0
DEBUG - [create_lookups:252] affinity_thread2core_lookup[1] = 1
DEBUG - [create_lookups:254] affinity_thread2socket_lookup[1] = 0
DEBUG - [create_lookups:268] affinity_thread2numa_lookup[1] = 0
DEBUG - [create_lookups:276] affinity_thread2sharedl3_lookup[1] = 0
DEBUG - [create_lookups:252] affinity_thread2core_lookup[2] = 2
DEBUG - [create_lookups:254] affinity_thread2socket_lookup[2] = 0
DEBUG - [create_lookups:268] affinity_thread2numa_lookup[2] = 0
DEBUG - [create_lookups:276] affinity_thread2sharedl3_lookup[2] = 0
DEBUG - [create_lookups:252] affinity_thread2core_lookup[3] = 3
DEBUG - [create_lookups:254] affinity_thread2socket_lookup[3] = 0
DEBUG - [create_lookups:268] affinity_thread2numa_lookup[3] = 0
DEBUG - [create_lookups:276] affinity_thread2sharedl3_lookup[3] = 0
DEBUG - [create_lookups:252] affinity_thread2core_lookup[4] = 0
DEBUG - [create_lookups:254] affinity_thread2socket_lookup[4] = 0
DEBUG - [create_lookups:268] affinity_thread2numa_lookup[4] = 0
DEBUG - [create_lookups:276] affinity_thread2sharedl3_lookup[4] = 0
DEBUG - [create_lookups:252] affinity_thread2core_lookup[5] = 1
DEBUG - [create_lookups:254] affinity_thread2socket_lookup[5] = 0
DEBUG - [create_lookups:268] affinity_thread2numa_lookup[5] = 0
DEBUG - [create_lookups:276] affinity_thread2sharedl3_lookup[5] = 0
DEBUG - [create_lookups:252] affinity_thread2core_lookup[6] = 2
DEBUG - [create_lookups:254] affinity_thread2socket_lookup[6] = 0
DEBUG - [create_lookups:268] affinity_thread2numa_lookup[6] = 0
DEBUG - [create_lookups:276] affinity_thread2sharedl3_lookup[6] = 0
DEBUG - [create_lookups:252] affinity_thread2core_lookup[7] = 3
DEBUG - [create_lookups:254] affinity_thread2socket_lookup[7] = 0
DEBUG - [create_lookups:268] affinity_thread2numa_lookup[7] = 0
DEBUG - [create_lookups:276] affinity_thread2sharedl3_lookup[7] = 0
DEBUG - [_freqInit:884] Adjusting functions for daemon mode
DEBUG - [freq_client_startDaemon:324] Starting daemon /usr/local/sbin/likwid-setFreq
DEBUG - [freq_client_startDaemon:384] Successfully opened socket /tmp/likwid-freq-24280 to daemon
DEBUG - [HPMinit:98] Adjusting functions for x86 architecture in daemon mode
DEBUG - [access_client_startDaemon:137] Starting daemon /usr/local/sbin/likwid-accessD
DEBUG - [access_client_startDaemon:185] Still waiting for socket /tmp/likwid-24287 for CPU 0...
DEBUG - [access_client_startDaemon:185] Still waiting for socket /tmp/likwid-24287 for CPU 0...
DEBUG - [access_client_startDaemon:197] Successfully opened socket /tmp/likwid-24287 to daemon for CPU 0
DEBUG - [HPMaddThread:143] Adding CPU 0 to access module
DEBUG - [access_client_read:331] Got error 'no such pci device' from access daemon reading reg 0x770 at CPU 0
ERROR - [./src/frequency_cpu.c:getIntelHWP:861] No such file or directory.
Cannot read register 0x770
DEBUG: Given CPU expression expands to 8 HW Threads:
DEBUG: 0,1,2,3,4,5,6,7
DEBUG: Given CPU expression expands to 1 CPU sockets:
DEBUG: 0
DEBUG - [freq_send_direct:461] CMD READ CPU 0 FREQ_LOC_GOV FD -1
DEBUG - [freq_send_direct:449] CMD READ CPU 0 FREQ_LOC_CUR FD 4
DEBUG - [freq_send_direct:453] CMD READ CPU 0 FREQ_LOC_MIN FD 6
DEBUG - [freq_send_direct:457] CMD READ CPU 0 FREQ_LOC_MAX FD 5
DEBUG - [access_client_read:331] Got error 'no such pci device' from access daemon reading reg 0x1A0 at CPU 0
ERROR - [./src/frequency_cpu.c:getIntelTurbo:744] No such file or directory.
Cannot read register 0x1a0
DEBUG - [freq_send_direct:461] CMD READ CPU 1 FREQ_LOC_GOV FD -1
DEBUG - [freq_send_direct:449] CMD READ CPU 1 FREQ_LOC_CUR FD 7
DEBUG - [freq_send_direct:453] CMD READ CPU 1 FREQ_LOC_MIN FD 9
DEBUG - [freq_send_direct:457] CMD READ CPU 1 FREQ_LOC_MAX FD 8
DEBUG - [HPMaddThread:143] Adding CPU 1 to access module
DEBUG - [access_client_read:331] Got error 'no such pci device' from access daemon reading reg 0x1A0 at CPU 1
ERROR - [./src/frequency_cpu.c:getIntelTurbo:744] No such file or directory.
Cannot read register 0x1a0
DEBUG - [freq_send_direct:461] CMD READ CPU 2 FREQ_LOC_GOV FD -1
DEBUG - [freq_send_direct:449] CMD READ CPU 2 FREQ_LOC_CUR FD 10
DEBUG - [freq_send_direct:453] CMD READ CPU 2 FREQ_LOC_MIN FD 12
DEBUG - [freq_send_direct:457] CMD READ CPU 2 FREQ_LOC_MAX FD 11
DEBUG - [HPMaddThread:143] Adding CPU 2 to access module
DEBUG - [access_client_read:331] Got error 'no such pci device' from access daemon reading reg 0x1A0 at CPU 2
ERROR - [./src/frequency_cpu.c:getIntelTurbo:744] No such file or directory.
Cannot read register 0x1a0
DEBUG - [freq_send_direct:461] CMD READ CPU 3 FREQ_LOC_GOV FD -1
DEBUG - [freq_send_direct:449] CMD READ CPU 3 FREQ_LOC_CUR FD 13
DEBUG - [freq_send_direct:453] CMD READ CPU 3 FREQ_LOC_MIN FD 15
DEBUG - [freq_send_direct:457] CMD READ CPU 3 FREQ_LOC_MAX FD 14
DEBUG - [HPMaddThread:143] Adding CPU 3 to access module
DEBUG - [access_client_read:331] Got error 'no such pci device' from access daemon reading reg 0x1A0 at CPU 3
ERROR - [./src/frequency_cpu.c:getIntelTurbo:744] No such file or directory.
Cannot read register 0x1a0
DEBUG - [freq_send_direct:461] CMD READ CPU 4 FREQ_LOC_GOV FD -1
DEBUG - [freq_send_direct:449] CMD READ CPU 4 FREQ_LOC_CUR FD 16
DEBUG - [freq_send_direct:453] CMD READ CPU 4 FREQ_LOC_MIN FD 18
DEBUG - [freq_send_direct:457] CMD READ CPU 4 FREQ_LOC_MAX FD 17
DEBUG - [HPMaddThread:143] Adding CPU 4 to access module
DEBUG - [access_client_read:331] Got error 'no such pci device' from access daemon reading reg 0x1A0 at CPU 4
ERROR - [./src/frequency_cpu.c:getIntelTurbo:744] No such file or directory.
Cannot read register 0x1a0
DEBUG - [freq_send_direct:461] CMD READ CPU 5 FREQ_LOC_GOV FD -1
DEBUG - [freq_send_direct:449] CMD READ CPU 5 FREQ_LOC_CUR FD 19
DEBUG - [freq_send_direct:453] CMD READ CPU 5 FREQ_LOC_MIN FD 21
DEBUG - [freq_send_direct:457] CMD READ CPU 5 FREQ_LOC_MAX FD 20
DEBUG - [HPMaddThread:143] Adding CPU 5 to access module
DEBUG - [access_client_read:331] Got error 'no such pci device' from access daemon reading reg 0x1A0 at CPU 5
ERROR - [./src/frequency_cpu.c:getIntelTurbo:744] No such file or directory.
Cannot read register 0x1a0
DEBUG - [freq_send_direct:461] CMD READ CPU 6 FREQ_LOC_GOV FD -1
DEBUG - [freq_send_direct:449] CMD READ CPU 6 FREQ_LOC_CUR FD 22
DEBUG - [freq_send_direct:453] CMD READ CPU 6 FREQ_LOC_MIN FD 24
DEBUG - [freq_send_direct:457] CMD READ CPU 6 FREQ_LOC_MAX FD 23
DEBUG - [HPMaddThread:143] Adding CPU 6 to access module
DEBUG - [access_client_read:331] Got error 'no such pci device' from access daemon reading reg 0x1A0 at CPU 6
ERROR - [./src/frequency_cpu.c:getIntelTurbo:744] No such file or directory.
Cannot read register 0x1a0
DEBUG - [freq_send_direct:461] CMD READ CPU 7 FREQ_LOC_GOV FD -1
DEBUG - [freq_send_direct:449] CMD READ CPU 7 FREQ_LOC_CUR FD 25
DEBUG - [freq_send_direct:453] CMD READ CPU 7 FREQ_LOC_MIN FD 27
DEBUG - [freq_send_direct:457] CMD READ CPU 7 FREQ_LOC_MAX FD 26
DEBUG - [HPMaddThread:143] Adding CPU 7 to access module
DEBUG - [access_client_read:331] Got error 'no such pci device' from access daemon reading reg 0x1A0 at CPU 7
ERROR - [./src/frequency_cpu.c:getIntelTurbo:744] No such file or directory.
Cannot read register 0x1a0
Cannot read frequency data from cpufreq module
DEBUG - [access_client_read:331] Got error 'no such pci device' from access daemon reading reg 0x620 at CPU 0
No support for Uncore frequencies
DEBUG - [freq_finalize_client:587] DAEMON CMD CLOSE
DEBUG - [HPMfinalize:170] Removing CPU 0 from access module
DEBUG - [HPMfinalize:170] Removing CPU 1 from access module
DEBUG - [HPMfinalize:170] Removing CPU 2 from access module
DEBUG - [HPMfinalize:170] Removing CPU 3 from access module
DEBUG - [HPMfinalize:170] Removing CPU 4 from access module
DEBUG - [HPMfinalize:170] Removing CPU 5 from access module
DEBUG - [HPMfinalize:170] Removing CPU 6 from access module
DEBUG - [HPMfinalize:170] Removing CPU 7 from access module
Additional context I saw in the documentation "intel_pstate" may be an issue: https://github.com/RRZE-HPC/likwid/wiki/likwid-setFrequencies#notice On the other hand it seems it should be supported since version 4.3: https://github.com/RRZE-HPC/likwid/issues/185 So I don't really understand how I should configure it. That's my processor (in case it is useful): https://ark.intel.com/content/www/us/en/ark/products/196603/intel-core-i5-1035g1-processor-6m-cache-up-to-3-60-ghz.html All is pretty much "default" so I didn't really change any configuration/setting in GRUB/BIOS Other setFrequency command options give similar errors:
$ likwid-setFrequencies -l
ERROR - [./src/frequency_cpu.c:getIntelHWP:861] No such file or directory.
Cannot read register 0x770
Cannot get frequencies from cpufreq module
The intel_pstate module allows free selection of frequencies in the available range
Minimal CPU frequency 0.4
Maximal CPU frequency 3.6
but it seems it is able to get the frequency. I feel that's a mis or missing configuration but I can't really get what I need to set/change.