"Facebook" <notification+...@facebookmail.com> writes:

> I read your latest blog post about profile-guided optisation, which is really 
> interesting.
>
> I have one question.. What perf options/arguments did you use to get 
> INST_RETIRED.ANY and ICACHE.MISSES ? perf stat -e cache-misses? I'm not sure 
> what options give these numbers..

    perf record -e r03c -e r1c2 -e rc0 -e r280 -c 250000 sql/mysqld  ...

INST_RETIRED.ANY is -e rc0. ICACHE.MISSES is r280.

Note that except for a few, the performance counters are processer specific.
The full list of available counters is found in "Intel® 64 and IA-32
Architectures Software Developer’s Manual Volume 3B: System Programming Guide,
Part 2". Eg. the ones for Sandy Bridge are found in section 19.4:

    
http://www.intel.com/content/www/us/en/processors/architectures-software-developer-manuals.html

(For example, ICACHE.MISSES is umask=0x02 and eventnum=0x80, hence r280.)

 - Kristian.

_______________________________________________
Mailing list: https://launchpad.net/~maria-developers
Post to     : maria-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~maria-developers
More help   : https://help.launchpad.net/ListHelp

Reply via email to