Skip to content

Instantly share code, notes, and snippets.

@lukego
Created March 9, 2016 10:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lukego/87362ba844baedcd77f3 to your computer and use it in GitHub Desktop.
Save lukego/87362ba844baedcd77f3 to your computer and use it in GitHub Desktop.
Side-by-side PMU counters for mp-ring single vs. multi process
[luke@lugano-1:~/git/snabbswitch/src]$ pr -w 160 -m -t a b
Benchmark configuration: Benchmark configuration:
burst: 100 burst: 100
writebytes: 0 writebytes: 0
processes: 1 processes: 2
readbytes: 0 readbytes: 0
packets: 10000000 packets: 10000000
mode: basic mode: basic
pmuevents: mem_load_uops_l3 pmuevents: mem_load_uops_l3
69.20 Mpps ring throughput per process 5.26 Mpps ring throughput per process
PMU report for child #0: PMU report for child #0:
EVENT TOTAL /packet EVENT TOTAL /packet
cycles 500,751,679 50.075 cycles 6,651,599,204 665.160
ref_cycles 0 0.000 ref_cycles 0 0.000
instructions 562,015,029 56.202 instructions 593,294,818 59.329
mem_load_uops_l3_hit_retired.xsnp_hit 447 0.000 mem_load_uops_l3_hit_retired.xsnp_hit 432,740 0.043
mem_load_uops_l3_hit_retired.xsnp_hitm 4 0.000 mem_load_uops_l3_hit_retired.xsnp_hitm 9,410,279 0.941
mem_load_uops_l3_hit_retired.xsnp_miss 280 0.000 mem_load_uops_l3_hit_retired.xsnp_miss 9,189 0.001
mem_load_uops_l3_hit_retired.xsnp_none 567 0.000 mem_load_uops_l3_hit_retired.xsnp_none 11,856 0.001
mem_load_uops_l3_miss_retired.local_dram 0 0.000 mem_load_uops_l3_miss_retired.local_dram 0 0.000
mem_load_uops_l3_miss_retired.remote_dram 0 0.000 mem_load_uops_l3_miss_retired.remote_dram 0 0.000
mem_load_uops_l3_miss_retired.remote_fwd 0 0.000 mem_load_uops_l3_miss_retired.remote_fwd 0 0.000
mem_load_uops_l3_miss_retired.remote_hitm 0 0.000 mem_load_uops_l3_miss_retired.remote_hitm 0 0.000
packet 10,000,000 1.000 packet 10,000,000 1.000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment