Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong frequency reading with kernel 5.16.0 (update: was psutil 5.9.0, not kernel) #183

Closed
sebastianha opened this issue Jan 14, 2022 · 2 comments

Comments

@sebastianha
Copy link

Step 1: Describe your environment

  • System (Intel/AMD/Raspberry Pi etc): Opensuse Tumbleweed, kernel 5.16.0
  • OS version: Tumbleweed 2022-01-14
  • s-tui version: 1.1.3
  • Installation method(pip/PPA/source code): rpm, official source

Step 2: Describe the problem:

Observed Results:

  • After updating to latest packages, including latest kernel (5.16.0) the frequency reading seem to be wrong and GHz are interpreted as MHz:

Screenshot_20220114_114657

cpuinfo

processor       : 6
vendor_id       : GenuineIntel
cpu family      : 6
model           : 140
model name      : 11th Gen Intel(R) Core(TM) i7-1185G7 @ 3.00GHz
stepping        : 1
microcode       : 0x9c
cpu MHz         : 1800.000

Debug Results, output of s-tui -d created in a file _s-tui.log:

2022-01-14 11:47:43,993 [_load_config()] [DEBUG]  User refresh rate: 2.0
2022-01-14 11:47:43,993 [_load_config()] [DEBUG]  No user config for temp threshold
2022-01-14 11:47:44,015 [__init__()] [DEBUG]  Temp sensor name PackageId0,0
2022-01-14 11:47:44,015 [__init__()] [DEBUG]  Temp sensor name Core0,0
2022-01-14 11:47:44,015 [__init__()] [DEBUG]  Temp sensor name Core1,0
2022-01-14 11:47:44,015 [__init__()] [DEBUG]  Temp sensor name Core2,0
2022-01-14 11:47:44,015 [__init__()] [DEBUG]  Temp sensor name Core3,0
2022-01-14 11:47:44,015 [__init__()] [DEBUG]  Temp sensor name Iwlwifi_1,0
2022-01-14 11:47:44,015 [__init__()] [DEBUG]  Temp sensor name Composite,0
2022-01-14 11:47:44,015 [__init__()] [DEBUG]  Temp sensor name Sensor1,0
2022-01-14 11:47:44,015 [__init__()] [DEBUG]  Temp sensor name Sensor2,0
2022-01-14 11:47:44,019 [__init__()] [INFO ]  num cpus 8
2022-01-14 11:47:44,026 [on_unicode_checkbox()] [DEBUG]  unicode State is True
2022-01-14 11:47:44,027 [main_window()] [DEBUG]  Pile index: 18
2022-01-14 11:47:44,052 [eval_hooks()] [DEBUG]  Evaluating hooks
2022-01-14 11:47:44,054 [update()] [INFO ]  Core id util 0.0
2022-01-14 11:47:44,055 [update()] [INFO ]  Core id util 0.0
2022-01-14 11:47:44,055 [update()] [INFO ]  Core id util 50.0
2022-01-14 11:47:44,055 [update()] [INFO ]  Core id util 0.0
2022-01-14 11:47:44,055 [update()] [INFO ]  Core id util 0.0
2022-01-14 11:47:44,055 [update()] [INFO ]  Core id util 0.0
2022-01-14 11:47:44,055 [update()] [INFO ]  Core id util 0.0
2022-01-14 11:47:44,055 [update()] [INFO ]  Core id util 0.0
2022-01-14 11:47:44,055 [update()] [INFO ]  Utilization recorded [7.7, 0.0, 0.0, 50.0, 0.0, 0.0, 0.0, 0.0, 0.0]
2022-01-14 11:47:44,055 [update()] [DEBUG]  seconds passed 0.038277626037597656
2022-01-14 11:47:44,056 [update()] [DEBUG]  watts used 6.405230035926951
2022-01-14 11:47:44,056 [update()] [INFO ]  Joule_Used 0, seconds passed, 0
2022-01-14 11:47:44,056 [update()] [INFO ]  Power reading elapsed
2022-01-14 11:47:44,056 [update()] [DEBUG]  seconds passed 0.038277626037597656
2022-01-14 11:47:44,056 [update()] [DEBUG]  watts used 3.9911304805042724
2022-01-14 11:47:44,056 [update()] [INFO ]  Joule_Used 0, seconds passed, 0
2022-01-14 11:47:44,056 [update()] [INFO ]  Power reading elapsed
2022-01-14 11:47:44,056 [update()] [DEBUG]  seconds passed 0.038277626037597656
2022-01-14 11:47:44,056 [update()] [DEBUG]  watts used 0.0
2022-01-14 11:47:44,056 [update()] [INFO ]  Joule_Used 0, seconds passed, 0
2022-01-14 11:47:44,056 [update()] [DEBUG]  seconds passed 0.038277626037597656
2022-01-14 11:47:44,056 [update()] [DEBUG]  watts used 14.188183965916734
2022-01-14 11:47:44,056 [update()] [INFO ]  Joule_Used 0, seconds passed, 0
2022-01-14 11:47:44,056 [update()] [INFO ]  Power reading elapsed
2022-01-14 11:47:44,056 [update()] [INFO ]  Reading [63.0, 45.0, 36.0, 63.0, 38.0, 41.0, 46.85, 39.85, 40.85]
2022-01-14 11:47:44,089 [update()] [INFO ]  Reading [2.036875, 1.8, 1.8, 3.695, 1.8, 1.8, 1.8, 1.8, 1.8]
2022-01-14 11:47:44,089 [get_top()] [DEBUG]  Returning top 4800.0
2022-01-14 11:47:44,090 [update()] [INFO ]  Reading [7.7, 0.0, 0.0, 50.0, 0.0, 0.0, 0.0, 0.0, 0.0]
2022-01-14 11:47:44,092 [update()] [INFO ]  Reading [6.405230035926951, 3.9911304805042724, 0, 14.188183965916734]
2022-01-14 11:47:44,798 [unhandled_input()] [DEBUG]  Caught q
2022-01-14 11:47:44,798 [kill_child_processes()] [DEBUG]  Killing stress process
2022-01-14 11:47:44,798 [kill_child_processes()] [DEBUG]  No such process
2022-01-14 11:47:44,799 [kill_child_processes()] [DEBUG]  Could not kill process

Step 3: Reproduce the problem:

Steps to reproduce:

  1. Update kernel
  2. start s-tui
@sebastianha
Copy link
Author

sebastianha commented Jan 14, 2022

Might be a problem with psutils?

>>> psutil.cpu_freq()
scpufreq(current=2.017125, min=400.0, max=4800.0)

My psutil version is: python38-psutil, 5.9.0-1.1

@sebastianha
Copy link
Author

sebastianha commented Jan 14, 2022

...and here is the corresponding issue, so an update of psutils is needed: giampaolo/psutil#2049

Introduced in 5.9.0, fixed in 5.9.1.

@sebastianha sebastianha changed the title Wrong frequency reading with kernel 5.16.0 Wrong frequency reading with kernel 5.16.0 (update: was psutil 5.9.0, not kernel) Jan 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant