Linux cache error and flaw detection

I know this is a platform-specific issue, however I would like to do some analysis of the runtime of the application to detect misses and cache hits. I know cachegrind, a tool for valgrind and vtune, and that there are many other profiling utilities. However, I am interested in implementing my own version of cache detection. I know that cachegrind acts like a cache simulator. Without hacking the core, how can I define a cache mission pragmatically? I have the feeling that it is almost impossible for an application for users, but I still had to ask.

+3
source share
2 answers

[ ]?

, . ( , , , / ..) . , " , ". , .

, VM- ( "" - , ) . , , ​​ . (, ), , , (, ) - CPU. .

+3
+5

Source: https://habr.com/ru/post/1757071/


All Articles