fenrus75 / powertop

The Linux PowerTOP tool -- please post patches to the mailing list instead of using github pull requests
http://www.01.org/powertop
GNU General Public License v2.0
1.07k stars 131 forks source link

inaccurate Pkg(HW) percentages on Raptor Lake v2.15 #123

Open TheLinuxGuy opened 1 year ago

TheLinuxGuy commented 1 year ago

Hello, I think I may have found a bug in the latest release, the percentages are off and do not total 100% when aggregated together.

Example from the screenshot "C2 (pc2) 23.8%" all other states are 0.0% and so there seems to be missing or miscalculated 76.2% that is missing from stats view. image

powertop and sysinfo

  *-cpu
       description: CPU
       product: 13th Gen Intel(R) Core(TM) i5-13600K
       vendor: Intel Corp.
       physical id: 25
       bus info: cpu@0
       version: 13th Gen Intel(R) Core(TM) i5-13600K
       serial: To Be Filled By O.E.M.
       slot: CPUSocket
       size: 801MHz
       capacity: 5100MHz
       width: 64 bits
       clock: 100MHz
       capabilities: lm fpu fpu_exception wp 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 x86-64 constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single ssbd ibrs ibpb stibp ibrs_enhanced tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid rdseed adx smap clflushopt clwb intel_pt sha_ni xsaveopt xsavec xgetbv1 xsaves split_lock_detect avx_vnni dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp hwp_pkg_req hfi umip pku ospke waitpkg gfni vaes vpclmulqdq tme rdpid movdiri movdir64b fsrm md_clear serialize pconfig arch_lbr ibt flush_l1d arch_capabilities cpufreq
       configuration: cores=14 enabledcores=14 threads=20
root@centrix:~# powertop -V
PowerTOP version 2.15
root@centrix:~# uname -a
Linux centrix 6.0.19-edge #1 SMP PREEMPT_DYNAMIC PVE Edge 6.0.19-1 (2023-01-13) x86_64 GNU/Linux
fenrus75 commented 1 year ago

there is no way to measure PC0/PC1... so while this could be a bug .. it's more likely that something is keeping your SOC awake a lot of the time....

On Sat, Apr 15, 2023 at 10:52 PM Giovanni @.***> wrote:

Hello, I think I may have found a bug in the latest release, the percentages are off and do not total 100% when aggregated together.

Example from the screenshot "C2 (pc2) 23.8%" all other states are 0.0% and so there seems to be missing or miscalculated 76.2% that is missing from stats view. [image: image] https://user-images.githubusercontent.com/713411/232273860-4d6c90cc-2028-447c-837d-dc95a50e6fb8.png

powertop and sysinfo

lshw -C CPU *-cpu description: CPU product: 13th Gen Intel(R) Core(TM)

i5-13600K vendor: Intel Corp. physical id: 25 bus info: @. version: 13th Gen Intel(R) Core(TM) i5-13600K serial: To Be Filled By O.E.M. slot: CPUSocket size: 801MHz capacity: 5100MHz width: 64 bits clock: 100MHz capabilities: lm fpu fpu_exception wp 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 x86-64 constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single ssbd ibrs ibpb stibp ibrs_enhanced tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid rdseed adx smap clflushopt clwb intel_pt sha_ni xsaveopt xsavec xgetbv1 xsaves split_lock_detect avx_vnni dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp hwp_pkg_req hfi umip pku ospke waitpkg gfni vaes vpclmulqdq tme rdpid movdiri movdir64b fsrm md_clear serialize pconfig arch_lbr ibt flush_l1d arch_capabilities cpufreq configuration: cores=14 enabledcores=14 threads=20 @.:~# powertop -V PowerTOP version 2.15

— Reply to this email directly, view it on GitHub https://github.com/fenrus75/powertop/issues/123, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJ54FM6EE56RCQWZOLTOKTXBOCJ3ANCNFSM6AAAAAAW74WNOQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

TheLinuxGuy commented 1 year ago

there is no way to measure PC0/PC1... so while this could be a bug .. it's more likely that something is keeping your SOC awake a lot of the time.... On Sat, Apr 15, 2023 at 10:52 PM Giovanni @.> wrote: Hello, I think I may have found a bug in the latest release, the percentages are off and do not total 100% when aggregated together. Example from the screenshot "C2 (pc2) 23.8%" all other states are 0.0% and so there seems to be missing or miscalculated 76.2% that is missing from stats view. [image: image] https://user-images.githubusercontent.com/713411/232273860-4d6c90cc-2028-447c-837d-dc95a50e6fb8.png powertop and sysinfo # lshw -C CPU -cpu description: CPU product: 13th Gen Intel(R) Core(TM) i5-13600K vendor: Intel Corp. physical id: 25 bus info: **@. version: 13th Gen Intel(R) Core(TM) i5-13600K serial: To Be Filled By O.E.M. slot: CPUSocket size: 801MHz capacity: 5100MHz width: 64 bits clock: 100MHz capabilities: lm fpu fpu_exception wp 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 x86-64 constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single ssbd ibrs ibpb stibp ibrs_enhanced tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid rdseed adx smap clflushopt clwb intel_pt sha_ni xsaveopt xsavec xgetbv1 xsaves split_lock_detect avx_vnni dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp hwp_pkg_req hfi umip pku ospke waitpkg gfni vaes vpclmulqdq tme rdpid movdiri movdir64b fsrm md_clear serialize pconfig arch_lbr ibt flush_l1d arch_capabilities cpufreq configuration: cores=14 enabledcores=14 threads=20 @.:~# powertop -V PowerTOP version 2.15 — Reply to this email directly, view it on GitHub <#123>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJ54FM6EE56RCQWZOLTOKTXBOCJ3ANCNFSM6AAAAAAW74WNOQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

I see, thanks for clarifying. It's highly likely related to PCIE 3.0 X1 SATA controller ASM1064 on my system.