MFENCE - Throughput and Uops
With unroll_count=500 and no inner loop
Code:
0: 0f ae f0 mfence
Init:
VZEROALL
Show nanoBench command
Results:
Instructions retired: 1.0
Core cycles: 40.12
Reference cycles: 28.38
UOPS_EXECUTED.THREAD: 2.0
RETIRE_SLOTS: 3.0
UOPS_MITE: 0.0
UOPS_MS: 3.0
UOPS_DISPATCHED.INT_EU_ALL: 0.0
UOPS_DISPATCHED.ALU: 0.0
UOPS_DISPATCHED.SLOW: 0.0
UOPS_DISPATCHED.STD: 1.0
UOPS_DISPATCHED.SHIFT: 0.0
UOPS_DISPATCHED.JMP: 0.0
UOPS_DISPATCHED.STA: 1.0
UOPS_DISPATCHED.V0: 0.0
UOPS_DISPATCHED.V1: 0.0
UOPS_DISPATCHED.V2: 0.0
UOPS_DISPATCHED.V3: 0.0
DIV_CYCLES: 0.0
ILD_STALL.LCP: 0.0
UOPS_MITE>=1: 0.0
With unroll_count=500, no inner loop, and 1 NOP
Code:
0: 0f ae f0 mfence 3: 90 nop
Init:
VZEROALL
Show nanoBench command
Results:
Instructions retired: 2.0
Core cycles: 40.0
Reference cycles: 28.25
UOPS_EXECUTED.THREAD: 2.0
RETIRE_SLOTS: 3.99
UOPS_MITE: 0.99
UOPS_MS: 3.02
UOPS_DISPATCHED.INT_EU_ALL: 0.0
UOPS_DISPATCHED.ALU: 0.0
UOPS_DISPATCHED.SLOW: 0.0
UOPS_DISPATCHED.STD: 1.0
UOPS_DISPATCHED.SHIFT: 0.0
UOPS_DISPATCHED.JMP: 0.0
UOPS_DISPATCHED.STA: 1.0
UOPS_DISPATCHED.V0: 0.0
UOPS_DISPATCHED.V1: 0.0
UOPS_DISPATCHED.V2: 0.0
UOPS_DISPATCHED.V3: 0.0
DIV_CYCLES: 0.0
ILD_STALL.LCP: 0.0
UOPS_MITE>=1: 1.0
With loop_count=1000 and unroll_count=10
Code:
0: 0f ae f0 mfence
Init:
VZEROALL
Show nanoBench command
Results:
Instructions retired: 1.2
Core cycles: 40.14
Reference cycles: 28.3
UOPS_EXECUTED.THREAD: 2.1
RETIRE_SLOTS: 3.1
UOPS_MITE: 0.1
UOPS_MS: 3.01
UOPS_DISPATCHED.INT_EU_ALL: 0.1
UOPS_DISPATCHED.ALU: 0.0
UOPS_DISPATCHED.SLOW: 0.0
UOPS_DISPATCHED.STD: 1.0
UOPS_DISPATCHED.SHIFT: 0.0
UOPS_DISPATCHED.JMP: 0.1
UOPS_DISPATCHED.STA: 1.0
UOPS_DISPATCHED.V0: 0.0
UOPS_DISPATCHED.V1: 0.0
UOPS_DISPATCHED.V2: 0.0
UOPS_DISPATCHED.V3: 0.0
DIV_CYCLES: 0.0
ILD_STALL.LCP: 0.0
UOPS_MITE>=1: 0.1
With loop_count=100 and unroll_count=100
Code:
0: 0f ae f0 mfence
Init:
VZEROALL
Show nanoBench command
Results:
Instructions retired: 1.02
Core cycles: 40.13
Reference cycles: 28.28
UOPS_EXECUTED.THREAD: 2.01
RETIRE_SLOTS: 3.01
UOPS_MITE: 0.01
UOPS_MS: 3.0
UOPS_DISPATCHED.INT_EU_ALL: 0.01
UOPS_DISPATCHED.ALU: 0.0
UOPS_DISPATCHED.SLOW: 0.0
UOPS_DISPATCHED.STD: 1.0
UOPS_DISPATCHED.SHIFT: 0.0
UOPS_DISPATCHED.JMP: 0.01
UOPS_DISPATCHED.STA: 1.0
UOPS_DISPATCHED.V0: 0.0
UOPS_DISPATCHED.V1: 0.0
UOPS_DISPATCHED.V2: 0.0
UOPS_DISPATCHED.V3: 0.0
DIV_CYCLES: 0.0
ILD_STALL.LCP: 0.0
UOPS_MITE>=1: 0.01