SysMonTask icon indicating copy to clipboard operation
SysMonTask copied to clipboard

L1 cache info problem

Open flavio92ux opened this issue 4 years ago • 5 comments

Hello. Is showing strange chatacters on cache L1 info in my system.

image

flavio92ux avatar Sep 28 '21 19:09 flavio92ux

Hi Can you let me know the output of the below command:

lscpu|grep -i -m1 "L1d"

and

lscpu

I will look into this matter and will fix it. Thanks.

KrispyCamel4u avatar Sep 29 '21 09:09 KrispyCamel4u

Hi. Follow images: image image

flavio92ux avatar Sep 29 '21 16:09 flavio92ux

I have the same problem.

@flavio92ux what distro do you use?

ShrirajHegde avatar Nov 25 '21 14:11 ShrirajHegde

I have this same problem with the L1 Cache Info.

I'm using Kubuntu 22.04.2 LTS. Anyone have a fix yet?

aaron-is-the-best2114 avatar Jun 18 '23 23:06 aaron-is-the-best2114

@ShrirajHegde @flavio92ux I think I found a fix for this issue. In cpu.py in the sysmontask folder. Under #CPU Caches in cpu.py, Instead of being

# CPU Caches
try:
    p=popen('lscpu|grep -i -m1 "L1d"')
    self.cpuL1LabelValue.set_text(sub("[\s]","",p.read().split(':')[1]))
    p.close()

    p=popen('lscpu|grep -i -m1 "L2"')
    self.cpuL2LabelValue.set_text(sub('[\s]','',p.read().split(':')[1]))
    p.close()

    p=popen('lscpu|grep -i "L3"')
    self.cpuL3LabelValue.set_text(sub('[\s]','',p.read().split(':')[1]))
    p.close()
except:
    print("Failed to get Cache information")

Where is says p=popen('lscpu|grep -i -m1 "L1d"') Change it to p=popen('lscpu|grep -i -m1 "L1i"') Which is just changing out the d for and i. That should fix it. It fixed it for me.

aaron-is-the-best2114 avatar Jun 19 '23 11:06 aaron-is-the-best2114