Analyzers
Talk to fellow users of Intel Analyzer tools (Intel VTune™ Profiler, Intel Advisor)
5248 토론

What instructions does INST_RETIRED.ANY count exactly?

AAhusk
초급자
3,686 조회수

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 포인트
1 솔루션
AlekhyaV_Intel
중재자
3,656 조회수

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 포인트
5 응답
Bernard
소중한 기여자 I
3,668 조회수

@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 포인트
AlekhyaV_Intel
중재자
3,657 조회수

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 포인트
AlekhyaV_Intel
중재자
3,627 조회수

Hi Aaron,


Could you please give us an update regarding this issue?


Regards,

Alekhya


0 포인트
AlekhyaV_Intel
중재자
3,599 조회수

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 포인트
AlekhyaV_Intel
중재자
3,556 조회수

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 포인트
응답