KrispyCamel4u / SysMonTask

Linux system monitor with the compactness and usefulness of windows task manager to allow higher control and monitoring.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Maximum Speed should perhaps be relabelled Base Speed

timrichardson opened this issue · comments

For my CPU, AMD Ryzen 5800X, it is the Base Speed which is 3.80 GHz, not the Maximum Speed.

image

Hi Tim,
In Linux, maximum speed can be set to other values(writing value of allowed max speed in cpu config) depending on power profile. In battery saver, balance, and performance profile one of the parameters that are changed is the max clock config parameter.

Can you do a strees test on one core and find the the max clock?

Thanks,
Can you let me know your system details?
I will see where is there problem and fix it soon.

I have Ubuntu 21.04 with the standard kernel.

I have Ubuntu 21.04 with the standard kernel.

Can you check which version of python and psutil you r using?

tim@indigo:~$ python --version
Python 3.9.5
tim@indigo:~$ pip freeze | grep psutil
psutil==5.8.0
tim@indigo:~$ 
cat /proc/cpuinfo
processor	: 0
vendor_id	: AuthenticAMD
cpu family	: 25
model		: 33
model name	: AMD Ryzen 7 5800X 8-Core Processor
stepping	: 0
microcode	: 0xa201009
cpu MHz		: 3800.000
cache size	: 512 KB
physical id	: 0
siblings	: 16
core id		: 0
cpu cores	: 8
apicid		: 0
initial apicid	: 0
fpu		: yes
fpu_exception	: yes
cpuid level	: 16
wp		: yes
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 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 ibs skinit wdt tce topoext perfctr_core perfctr_nb bpext perfctr_llc mwaitx cpb cat_l3 cdp_l3 hw_pstate ssbd mba ibrs ibpb stibp vmmcall fsgsbase bmi1 avx2 smep bmi2 erms invpcid cqm rdt_a rdseed adx smap clflushopt clwb sha_ni xsaveopt xsavec xgetbv1 xsaves cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local clzero irperf xsaveerptr rdpru wbnoinvd arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold avic v_vmsave_vmload vgif umip pku ospke vaes vpclmulqdq rdpid overflow_recov succor smca fsrm
bugs		: sysret_ss_attrs spectre_v1 spectre_v2 spec_store_bypass
bogomips	: 7599.48
TLB size	: 2560 4K pages
clflush size	: 64
cache_alignment	: 64
address sizes	: 48 bits physical, 48 bits virtual
power management: ts ttp tm hwpstate cpb eff_freq_ro [13] [14]

psutil is wrong

import psutil
psutil.cpu_freq()
scpufreq(current=3887.256625, min=2200.0, max=3800.0)

I suppose you could work around by reporting as Max the highest frequency seen.
Under load:

psutil.cpu_freq()
scpufreq(current=4501.059875, min=2200.0, max=3800.0)

I reported to psutil giampaolo/psutil#1973 (comment)

I suppose you could work around by reporting as Max the highest frequency seen.
Under load:

psutil.cpu_freq()
scpufreq(current=4501.059875, min=2200.0, max=3800.0)

Thanks will look into it.