1- L1_per_core=48*1024
2- L2_per_core=1280*1024
3- L3_per_core=36864*1024/4
1+ L1_per_core=32768
2+ L2_per_core=1048576
3+ L3_per_core=4194304
4+
5+ SML_STRIDE=128
6+ BIG_STRIDE=256
7+ SML_PPB=16
8+ BIG_PPB=512
49
510DIR="sample_data/"
6- EVENT1="L2_RQSTS:DEMAND_DATA_RD_MISS "
7- EVENT2="L2_RQSTS:DEMAND_DATA_RD_HIT "
8- EVENT3="L2_RQSTS:ALL_DEMAND_REFERENCES "
9- PLOT_TITLE="L2_RQSTS (MISS/HIT/REF) "
11+ EVENT1="PM_DATA_FROM_L2 "
12+ EVENT2="PM_DATA_FROM_L3 "
13+ EVENT3="PM_DATA_FROM_L3MISS "
14+ PLOT_TITLE="L2 Reads / L3_reads / L3 Misses "
1015
1116SUFFIX=".data.reads.stat"
1217
@@ -18,7 +23,7 @@ set label 3 at L2_per_core+(L3_per_core-L2_per_core)/20, graph 1.020 "L3" font
1823set terminal pdfcairo noenhanced font "Sans,12"
1924set output "multi_plot.pdf"
2025
21- load "default.gnp "
26+ load "default_gnp.inc "
2227
2328set xtics ("" L1_per_core, "" L2_per_core, "" L3_per_core)
2429
@@ -31,15 +36,16 @@ unset key
3136set multiplot layout 1,6 title PLOT_TITLE."
3237
3338set margin 0,0,1.5,2.5
34- set label 20 "Event Count" at screen 0.015,0.375 rotate by 90 # Y-label
39+ set label 20 "Normalized Event Count" at screen 0.015,0.26 rotate by 90 # Y-label
40+
3541
3642OFFSET=0.09
3743GAP=0.015
3844WIDTH=(1.0-(OFFSET+5.0*GAP+GAP/4.0))/6.0
3945
4046
4147###
42- set label 21 "RND:64:256" at graph 0.1,-0.05 font ",10" # X-label
48+ set label 21 sprintf( "RND:%d:%d",SML_STRIDE,BIG_PPB) at graph 0.1,-0.05 font ",10" # X-label
4349set size 0.1475,1
4450set size WIDTH,1
4551set origin OFFSET,0.0
@@ -55,7 +61,7 @@ set ytics scale 0.1,0.5
5561unset label 20
5662
5763###
58- set label 21 "RND:64:16" at graph 0.16,-0.05 font ",10" # X-label
64+ set label 21 sprintf( "RND:%d:%d",SML_STRIDE,SML_PPB) at graph 0.16,-0.05 font ",10" # X-label
5965set object 1 rectangle from graph 0,0 to graph 1,1 behind fillcolor rgb '#FFFAE8' fillstyle solid noborder
6066set size WIDTH,1
6167set origin OFFSET+(WIDTH+GAP)*1,0
6672unset object 1
6773
6874###
69- set label 21 "RND:128:256" at graph 0.1,-0.05 font ",10" # X-label
75+ set label 21 sprintf( "RND:%d:%d",BIG_STRIDE,BIG_PPB) at graph 0.1,-0.05 font ",10" # X-label
7076set size WIDTH,1
7177set origin OFFSET+(WIDTH+GAP)*2,0
7278plot \
7581 FILE3 every :::2::2 using 1:2 w lp ls 1
7682
7783###
78- set label 21 "RND:128:16" at graph 0.1,-0.05 font ",10" # X-label
84+ set label 21 sprintf( "RND:%d:%d",BIG_STRIDE,SML_PPB) at graph 0.1,-0.05 font ",10" # X-label
7985set object rectangle from graph 0,0 to graph 1,1 behind fillcolor rgb '#FFFAE8' fillstyle solid noborder
8086set size WIDTH,1
8187set origin OFFSET+(WIDTH+GAP)*3,0
8591 FILE3 every :::3::3 using 1:2 w lp ls 1
8692
8793###
88- set label 21 "SEQ:64" at graph 0.25,-0.05 font ",10" # X-label
94+ set label 21 sprintf( "SEQ:%d",SML_STRIDE) at graph 0.25,-0.05 font ",10" # X-label
8995set object rectangle from graph 0,0 to graph 1,1 behind fillcolor rgb '#F0F6FF' fillstyle solid noborder
9096set size WIDTH,1
9197set origin OFFSET+(WIDTH+GAP)*4,0
@@ -95,8 +101,11 @@ plot \
95101 FILE3 every :::4::4 using 1:2 w lp ls 1
96102
97103###
98- set key top right font ",6"
99- set label 21 "SEQ:128" at graph 0.2,-0.05 font ",10" # X-label
104+ set key at screen 0.997,0.997
105+ set key font ",6"
106+ set key opaque box samplen 4 width 2 height 1
107+
108+ set label 21 sprintf("SEQ:%d",BIG_STRIDE) at graph 0.2,-0.05 font ",10" # X-label
100109set object rectangle from graph 0,0 to graph 1,1 behind fillcolor rgb '#F0F6FF' fillstyle solid noborder
101110set size WIDTH,1
102111set origin OFFSET+(WIDTH+GAP)*5,0
0 commit comments