Analyzers
Talk to fellow users of Intel Analyzer tools (Intel VTune™ Profiler, Intel Advisor)
4994 Discussions

What instructions does INST_RETIRED.ANY count exactly?

AAhusk
Beginner
2,068 Views

VTune uses a fixed counter named INST_RETIRED.ANY. The description in the Software Developer's manual for INST_RETIRED.ANY just says

"This event counts the number of instructions that retire execution. For instructions that consist of multiple uops, this event counts the retirement of the last uop of the instruction. The counter continues counting during hardware interrupts, traps, and in-side interrupt handlers."

I'm not sure what context is implied with regards to the "instrcutions that retire execution".

Does the INST_RETIRED.ANY count all instructions that retire on the physical core that fixed counter resides on? Or is it per-logical core? Or something else?

0 Kudos
1 Solution
AlekhyaV_Intel
Moderator
2,038 Views

Hi Aaron,

 

Thank you for posting in Intel Forums. "INST_RETIRED.ANY" counts the number of instructions located on the logical core(HW thread). Refer this link for more information regarding instructions retired event.

Hope this helps!

 

Regards,

Alekhya

 

View solution in original post

0 Kudos
5 Replies
Bernard
Valued Contributor I
2,050 Views

@AAhusk wrote:

VTune uses a fixed counter named INST_RETIRED.ANY. The description in the Software Developer's manual for INST_RETIRED.ANY just says

"This event counts the number of instructions that retire execution. For instructions that consist of multiple uops, this event counts the retirement of the last uop of the instruction. The counter continues counting during hardware interrupts, traps, and in-side interrupt handlers."

I'm not sure what context is implied with regards to the "instrcutions that retire execution".

Does the INST_RETIRED.ANY count all instructions that retire on the physical core that fixed counter resides on? Or is it per-logical core? Or something else?


Retirement of instruction is one of the last stages of the pipelined execution. At this stage the Retirement Unit usually would decommit any resources held by the instruction and update the software visible state (commit to the memory or commit to software visible registers).

IIRC the fixed counter 0 is responsible for counting the "INST_RETIRED.ANY" fixed event  per core.

0 Kudos
AlekhyaV_Intel
Moderator
2,039 Views

Hi Aaron,

 

Thank you for posting in Intel Forums. "INST_RETIRED.ANY" counts the number of instructions located on the logical core(HW thread). Refer this link for more information regarding instructions retired event.

Hope this helps!

 

Regards,

Alekhya

 

0 Kudos
AlekhyaV_Intel
Moderator
2,009 Views

Hi Aaron,


Could you please give us an update regarding this issue?


Regards,

Alekhya


0 Kudos
AlekhyaV_Intel
Moderator
1,981 Views

Hi,


We assume that your issue is resolved. If you have any additional issues/doubts, please submit a new question as this thread will no longer be monitored.


Regards,

Alekhya


0 Kudos
AlekhyaV_Intel
Moderator
1,938 Views

Hi Aaron,


Thank you for coming back and accepting our solution. For any other issues/queries, please submit a new question as this thread will no longer be monitored.


Regards,

Alekhya


0 Kudos
Reply