Open lquenti opened 2 years ago
If I can further provide information, please just tell me.
I played around with it a bit further. 8 also makes more sense since we know that
ways_of_associativity * cache_line_size * number_of_sets = size
So here are the values, which do add up from sysfs
lquenti in ~ λ cat /sys/devices/system/cpu/cpu0/cache/index2/{number_of_sets,coherency_line_size,ways_of_associativity}
512
64
8
lquenti in ~ λ cat /sys/devices/system/cpu/cpu0/cache/index2/size
256K
lquenti in ~ λ python -c "print((512*64*8)/1024)"
256
I'll have to look more into this. Sorry I didn't respond earlier, my Internet was not working a over a week.
Take your time, I wrote a sysfs-wrapper myself for now. I really don't know how those special assembly-instructions work, if you want me anything to execute just write it, as well as any brainstorming ideas.
In your bug report please include:
Bug
It shows the wrong L2 Cache associativity. Here is the output of py-cpuinfo:
What
getconf
tells me:What sysfs tells me (watch the shell expansion in the string)
Partial output of cpuid