KrispyCamel4u / SysMonTask

Linux system monitor with the compactness and usefulness of windows task manager to allow higher control and monitoring.
BSD 3-Clause "New" or "Revised" License
688 stars 60 forks source link

CPU temp speed and L3 broken #102

Open khris190 opened 2 years ago

khris190 commented 2 years ago

as in the title

image

██████████████████ ████████ krzysztof@krzysztof-linux ██████████████████ ████████ ------------------------- ██████████████████ ████████ OS: Manjaro Linux x86_64 ██████████████████ ████████ Host: B550 AORUS ELITE V2 ████████ ████████ Kernel: 5.15.16-1-MANJARO ████████ ████████ ████████ Uptime: 1 hour, 12 mins ████████ ████████ ████████ Packages: 1559 (pacman) ████████ ████████ ████████ Shell: zsh 5.8 ████████ ████████ ████████ Resolution: 1920x1080, 2560x1440 ████████ ████████ ████████ DE: Xfce 4.16 ████████ ████████ ████████ WM: Xfwm4 ████████ ████████ ████████ WM Theme: Matcha-sea ████████ ████████ ████████ Theme: Matcha-dark-sea [GTK2/3] ████████ ████████ ████████ Icons: Papirus-Maia [GTK2/3] Terminal: xfce4-terminal Terminal Font: Monospace 12 CPU: AMD Ryzen 7 5800X (16) @ 3.800GHz GPU: NVIDIA GeForce GTX 1050 Ti Memory: 11744MiB / 32067MiB

krzysztof-linux@krzysztof ~]% lscpu|grep -i -m1 "L3"
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 rapl pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 x2apic 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 v_spec_ctrl umip pku ospke vaes vpclmulqdq rdpid overflow_recov succor smca fsrm
krzysztof-linux@krzysztof ~]% lscpu                 
Architecture:            x86_64
  CPU op-mode(s):        32-bit, 64-bit
  Address sizes:         48 bits physical, 48 bits virtual
  Byte Order:            Little Endian
CPU(s):                  16
  On-line CPU(s) list:   0-15
Vendor ID:               AuthenticAMD
  Model name:            AMD Ryzen 7 5800X 8-Core Processor
    CPU family:          25
    Model:               33
    Thread(s) per core:  2
    Core(s) per socket:  8
    Socket(s):           1
    Stepping:            0
    Frequency boost:     enabled
    CPU max MHz:         4850,1948
    CPU min MHz:         2200,0000
    BogoMIPS:            7589.47
    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 rapl pni pclmulqdq monitor ssse3 fma cx1
                         6 sse4_1 sse4_2 x2apic movbe popcnt aes xsave avx f16c rdrand lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3
                         dnowprefetch 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 v_spec_ctrl
                          umip pku ospke vaes vpclmulqdq rdpid overflow_recov succor smca fsrm
Virtualization features: 
  Virtualization:        AMD-V
Caches (sum of all):     
  L1d:                   256 KiB (8 instances)
  L1i:                   256 KiB (8 instances)
  L2:                    4 MiB (8 instances)
  L3:                    32 MiB (1 instance)
NUMA:                    
  NUMA node(s):          1
  NUMA node0 CPU(s):     0-15
Vulnerabilities:         
  Itlb multihit:         Not affected
  L1tf:                  Not affected
  Mds:                   Not affected
  Meltdown:              Not affected
  Spec store bypass:     Mitigation; Speculative Store Bypass disabled via prctl and seccomp
  Spectre v1:            Mitigation; usercopy/swapgs barriers and __user pointer sanitization
  Spectre v2:            Mitigation; Full AMD retpoline, IBPB conditional, IBRS_FW, STIBP always-on, RSB filling
  Srbds:                 Not affected
  Tsx async abort:       Not affected
krzysztof-linux@krzysztof ~]% python3
Python 3.10.1 (main, Dec 18 2021, 23:53:45) [GCC 11.1.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import psutil
>>> psutil.sensors_temperatures()
{'acpitz': [shwtemp(label='', current=16.8, high=20.8, critical=20.8), shwtemp(label='', current=16.8, high=20.8, critical=20.8)], 'nvme': [shwtemp(label='Composite', current=42.85, high=84.85, critical=84.85), shwtemp(label='Sensor 1', current=42.85, high=65261.85, critical=65261.85), shwtemp(label='Sensor 2', current=48.85, high=65261.85, critical=65261.85)], 'k10temp': [shwtemp(label='Tctl', current=62.5, high=None, critical=None), shwtemp(label='Tccd1', current=43.0, high=None, critical=None)], 'gigabyte_wmi': [shwtemp(label='', current=35.0, high=None, critical=None), shwtemp(label='', current=37.0, high=None, critical=None), shwtemp(label='', current=62.0, high=None, critical=None), shwtemp(label='', current=42.0, high=None, critical=None), shwtemp(label='', current=44.0, high=None, critical=None), shwtemp(label='', current=44.0, high=None, critical=None)]}
>>> psutil.cpu_freq()
scpufreq(current=2.9298125, min=2200.0, max=3800.0)
>>> exit()

what's strange is that '-i' flag in grep breaks L3 cache for me

HerrDirektor commented 2 years ago

To fix CPU speed: Remove "/1000" from line 175 cpu.py file

cpuSpeedstring="{:.2f} Ghz".format(self.speed[0])