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: 56.0
Reference cycles: 48.05
UOPS_EXECUTED.THREAD: 5.0
RETIRE_SLOTS: 6.0
UOPS_MITE: 0.0
UOPS_MS: 6.0
UOPS_PORT_0: 0.0
UOPS_PORT_1: 0.0
UOPS_PORT_2: 0.0
UOPS_PORT_3: 0.0
UOPS_PORT_4: 1.0
UOPS_PORT_5: 0.0
UOPS_PORT_6: 3.0
UOPS_PORT_7: 1.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: 57.0
Reference cycles: 48.95
UOPS_EXECUTED.THREAD: 5.0
RETIRE_SLOTS: 7.0
UOPS_MITE: 1.0
UOPS_MS: 6.0
UOPS_PORT_0: 0.0
UOPS_PORT_1: 0.0
UOPS_PORT_2: 0.0
UOPS_PORT_3: 0.0
UOPS_PORT_4: 1.0
UOPS_PORT_5: 0.0
UOPS_PORT_6: 3.0
UOPS_PORT_7: 1.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: 56.1
Reference cycles: 48.21
UOPS_EXECUTED.THREAD: 5.1
RETIRE_SLOTS: 6.1
UOPS_MITE: 0.1
UOPS_MS: 6.0
UOPS_PORT_0: 0.0
UOPS_PORT_1: 0.0
UOPS_PORT_2: 0.0
UOPS_PORT_3: 0.0
UOPS_PORT_4: 1.0
UOPS_PORT_5: 0.1
UOPS_PORT_6: 3.0
UOPS_PORT_7: 1.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: 56.01
Reference cycles: 48.12
UOPS_EXECUTED.THREAD: 5.01
RETIRE_SLOTS: 6.01
UOPS_MITE: 0.01
UOPS_MS: 6.0
UOPS_PORT_0: 0.0
UOPS_PORT_1: 0.0
UOPS_PORT_2: 0.0
UOPS_PORT_3: 0.0
UOPS_PORT_4: 1.0
UOPS_PORT_5: 0.01
UOPS_PORT_6: 3.0
UOPS_PORT_7: 1.0
DIV_CYCLES: 0.0
ILD_STALL.LCP: 0.0
UOPS_MITE>=1: 0.01