3 ms·
Isn't this pretty dependent upon the specific cache architecture? Definitely nowhere near an expert here, but I thought that CPUs all had varying sizes / layers
by canteloops 10y ago
Isn't this pretty dependent upon the specific cache architecture? Definitely nowhere near an expert here, but I thought that CPUs all had varying sizes / layers of caches, on top of additional spare implementations - i.e., victim caches, etc. How much portability does this one-sized tool have, or is the variation between CPUs not an issue?
- pm215 10y agoYeah, you need to configure it to tell it what configuration of cache you want to simulate (there's an example of doing this for the Jaguar cache in slides 84/85). Valgrind's cachegrind tool also lets you tweak the cache config it simulates. Some bugs are going to cause problems regardless of the cache config (like the "access a cold page unnecessarily every iteration of the loop" examples); some might be more sensitive to exact cache configuration.
- maccard 10y agoThe slides specifically talk about AMD jaguar - the architecture for Xbox one and PS4.
- eternalban 10y agoA parametric model addresses that concern.