Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.
7956 Discussions

How to get the Cache Hit/Miss Rate?

karenlenska
Beginner
497 Views

Hi :)

I am not sure if i am in the right forum. If not, my apologies. If you know a suitable forum please let me know. My query is:

Is there any system call / package which allows the user to get the value of the cache hit/Miss rate for any application execution?
A second question, does the processor contain a register which is incremented on each cache hit? if not how the cache hit rate is concluded?

Thanks :)

0 Kudos
2 Replies
Micah_Elliott
Beginner
497 Views
You need to use a profiler to track performance counters.

What OS are you using? VTune is available for Linux or Windows. Also available for linux are oprofile, perfsuite.
0 Kudos
karenlenska
Beginner
497 Views

Many thanks for your reply. Currently, i am using Windows XP

Kind Regards

0 Kudos
Reply