You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So far so good, but I am using AMD Ryzen 7800X3D 8-Core Processor. Official spec and windows system monitor both report L2 cache size as 512KB.
The example says the calculation of cache is :
let size = cache.associativity()
* cache.physical_line_partitions()
* cache.coherency_line_size()
* cache.sets();
But its associativity is 8 way, so do I have to multiply size with associativity again? (that gives 8MB which is correct cache size). that also works with L1 because L1 data + Instruction is given as 32 so (32x8)x2 gives 512.
If that's the case, then why L3 is reported correctly? Is this a bug?
Following are the cache objects for L2 and L3.
The total cache count can be calculated as <max threads> / max_cores_for_cache for AMD Ryzen.
If you want the total cache size, use <cache size> * (<max threads> / max_cores_for_cache) to calculate it.
Sorry if I don't understand this correctly, as I am not well versed with rust, but from example I am getting cache sizes as:
So far so good, but I am using AMD Ryzen 7800X3D 8-Core Processor. Official spec and windows system monitor both report L2 cache size as 512KB.
The example says the calculation of cache is :
But its associativity is 8 way, so do I have to multiply size with associativity again? (that gives 8MB which is correct cache size). that also works with L1 because L1 data + Instruction is given as 32 so (32x8)x2 gives 512.
If that's the case, then why L3 is reported correctly? Is this a bug?
Following are the cache objects for L2 and L3.
The text was updated successfully, but these errors were encountered: