-
Notifications
You must be signed in to change notification settings - Fork 4
/
edp_gnuplot.sh
executable file
·178 lines (148 loc) · 9.94 KB
/
edp_gnuplot.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
#!/usr/bin/gnuplot
file="__edp_socket_view_details.csv"
color1="#4169E1"
color2="#32CD32"
color3="#551A8B"
color4="#5B5B5B"
color5="#EE7600"
color6="#EE00EE"
color7="#33FFFF"
color8="#660000"
draw_linewidth=2
set terminal png
#set terminal png size 4500,1500
set terminal png size 1600,900
# set multiplot layout 1,1 #spacing 50,50
#X input is time
set xdata time
set timefmt "%m/%d/%Y %H:%M:%S"
#change title font to 28pt
set key font ",20"
#OAX output time format
set format x "%H:%M:%S"
#set xtics axis rangelimited
set xtics font ",24"
#enable grid
set grid
set autoscale yfixmin
set datafile separator ","
#change font size of diagram title
set title font ",24"
##set autoscale y
set out "edp_DDR-and-AEP-read-bandwidth.png"
set ytics format "%.f MB" font ",24" offset 5,1
set title "DDR and AEP read bandwidth"
plot \
file using 2:(column(156)) every ::2 title "DDR" with lines linecolor rgb color1 linewidth draw_linewidth,\
file using 2:(column(196)) every ::2 title "AEP" with lines linecolor rgb color2 linewidth draw_linewidth
set out "edp_DDR-and-AEP-write-bandwidth.png"
set ytics format "%.f MB" font ",24" offset 5,1
set title "DDR and AEP write bandwidth"
plot \
file using 2:(column(158)) every ::2 title "DDR" with lines linecolor rgb color1 linewidth draw_linewidth,\
file using 2:(column(198)) every ::2 title "AEP" with lines linecolor rgb color2 linewidth draw_linewidth
set out "edp_Total-read-bandwidth-on-socket-0.png"
set ytics format "%.f MB" font ",24" offset 5,1
set title "Total read bandwidth on socket 0"
plot \
file using 2:(column(353)) every ::2 title "DDR local read" with lines linecolor rgb color1 linewidth draw_linewidth,\
file using 2:(column(355)) every ::2 title "DDR remote read" with lines linecolor rgb color2 linewidth draw_linewidth,\
file using 2:(column(357)) every ::2 title "AEP local read" with lines linecolor rgb color3 linewidth draw_linewidth,\
file using 2:(column(359)) every ::2 title "AEP remote read" with lines linecolor rgb color4 linewidth draw_linewidth
set out "edp_Total-read-bandwidth-on-socket-1.png"
set ytics format "%.f MB" font ",24" offset 5,1
set title "Total read bandwidth on socket 1"
plot \
file using 2:(column(354)) every ::2 title "DDR local read" with lines linecolor rgb color1 linewidth draw_linewidth,\
file using 2:(column(356)) every ::2 title "DDR remote read" with lines linecolor rgb color2 linewidth draw_linewidth,\
file using 2:(column(358)) every ::2 title "AEP local read" with lines linecolor rgb color3 linewidth draw_linewidth,\
file using 2:(column(360)) every ::2 title "AEP remote read" with lines linecolor rgb color4 linewidth draw_linewidth
#set autoscale y
set out "edp_2LM-NearMemory-read_write.png"
set ytics format "% h" font ",24" offset 5,1
set title "2LM NearMemory read/write"
plot \
file using 2:(column(166)) every ::2 title "AEP MemoryMode % of non-inclusive writes to near memory" with lines linecolor rgb color1 linewidth draw_linewidth,\
file using 2:(column(168)) every ::2 title "AEP memorymode % of near memory cache read miss" with lines linecolor rgb color2 linewidth draw_linewidth
set out "edp_RPQ-read-latency-in-ns.png"
set ytics format "% h" font ",24" offset 5,1
set title "RPQ read latency(ns)"
plot \
file using 2:(column(170)) every ::2 title "DDR RPQ read latency" with lines linecolor rgb color1 linewidth draw_linewidth,\
file using 2:(column(202)) every ::2 title "AEP RPQ read latency" with lines linecolor rgb color2 linewidth draw_linewidth
set out "edp_WPQ-write-latency-in-ns.png"
set ytics format "% h" font ",24" offset 5,1
set title "WPQ write latency(ns)"
plot \
file using 2:(column(172)) every ::2 title "DDR WPQ write latency" with lines linecolor rgb color1 linewidth draw_linewidth,\
file using 2:(column(226)) every ::2 title "AEP WPQ write latency" with lines linecolor rgb color2 linewidth draw_linewidth
set out "edp_Average-entries-in-RPQ-or-in-RPQ-when-not-empty.png"
set ytics format "% h" font ",24" offset 5,1
set title "Average entries in RPQ/in RPQ when not empty"
plot \
file using 2:(column(174)) every ::2 title "DDR average entries in RPQ" with lines linecolor rgb color1 linewidth draw_linewidth,\
file using 2:(column(204)) every ::2 title "AEP average entries in RPQ" with lines linecolor rgb color2 linewidth draw_linewidth,\
file using 2:(column(176)) every ::2 title "DDR average entries in RPQ when not empty" with lines linecolor rgb color3 linewidth draw_linewidth,\
file using 2:(column(206)) every ::2 title "AEP average entries in RPQ when not empty" with lines linecolor rgb color4 linewidth draw_linewidth
set out "edp_Cycles-when-RPQ-is-empty.png"
set ytics format "% h" font ",24" offset 5,1
set title "Cycles when RPQ is empty"
plot \
file using 2:(column(178)) every ::2 title "DDR cycles when RPQ is empty" with lines linecolor rgb color1 linewidth draw_linewidth,\
file using 2:(column(208)) every ::2 title "AEP cycles when RPQ is empty" with lines linecolor rgb color2 linewidth draw_linewidth
set out "edp_Cycles-when-RPQ-has-1-10-20-40-36-or-more-entries.png"
set ytics format "% h" font ",24" offset 5,1
set title "Cycles when RPQ has 1/10/20/40(36) or more entries"
plot \
file using 2:(column(180)) every ::2 title "DDR cycles when RPQ has 1 or more entries" with lines linecolor rgb color1 linewidth draw_linewidth,\
file using 2:(column(182)) every ::2 title "DDR cycles when RPQ has 10 or more entries" with lines linecolor rgb color2 linewidth draw_linewidth,\
file using 2:(column(184)) every ::2 title "DDR cycles when RPQ has 20 or more entries" with lines linecolor rgb color3 linewidth draw_linewidth,\
file using 2:(column(186)) every ::2 title "DDR cycles when RPQ has 40 or more entries" with lines linecolor rgb color4 linewidth draw_linewidth,\
file using 2:(column(210)) every ::2 title "AEP cycles when RPQ has 1 or more entries" with lines linecolor rgb color5 linewidth draw_linewidth,\
file using 2:(column(212)) every ::2 title "AEP cycles when RPQ has 10 or more entries" with lines linecolor rgb color6 linewidth draw_linewidth,\
file using 2:(column(214)) every ::2 title "AEP cycles when RPQ has 24 or more entries" with lines linecolor rgb color7 linewidth draw_linewidth,\
file using 2:(column(216)) every ::2 title "AEP cycles when RPQ has 36 or more entries" with lines linecolor rgb color8 linewidth draw_linewidth
set out "edp_Average-time-dclk-RPQ-empty-not-empty.png"
set ytics format "% h" font ",24" offset 5,1
set title "Average time (dclk) RPQ empty/not empty"
plot \
file using 2:(column(188)) every ::2 title "DDR avg time (dclk) RPQ NOT empty" with lines linecolor rgb color1 linewidth draw_linewidth,\
file using 2:(column(190)) every ::2 title "DDR avg time (dclk) RPQ empty" with lines linecolor rgb color2 linewidth draw_linewidth,\
file using 2:(column(218)) every ::2 title "AEP avg time (dclk) RPQ NOT empty" with lines linecolor rgb color3 linewidth draw_linewidth,\
file using 2:(column(220)) every ::2 title "AEP avg time (dclk) RPQ empty" with lines linecolor rgb color4 linewidth draw_linewidth,\
file using 2:(column(242)) every ::2 title "AEP avg time (dclk) WPQ NOT empty" with lines linecolor rgb color5 linewidth draw_linewidth,\
file using 2:(column(244)) every ::2 title "AEP avg time (dclk) WPQ empty" with lines linecolor rgb color6 linewidth draw_linewidth
set out "edp_DDR-average-time-with-40-or-more-less-than-40-entries.png"
set ytics format "% h" font ",24" offset 5,1
set title "DDR average time with 40 or more/less than 40 entries"
plot \
file using 2:(column(192)) every ::2 title "average time with >= 40 entries" with lines linecolor rgb color1 linewidth draw_linewidth,\
file using 2:(column(194)) every ::2 title "average time with < 40 entries" with lines linecolor rgb color2 linewidth draw_linewidth,
set out "edp_AEP-average-time-dclk-with-36-entries-in-RPQ-30-entires-in-WPQ-30-entries-in-WPQ.png"
set ytics format "% h" font ",24" offset 5,1
set title "AEP average time (dclk) with < 36 entries in RPQ / < 30 entires in WPQ / >= 30 entries in WPQ"
plot \
file using 2:(column(224)) every ::2 title "AEP average time (dclk) with < 36 entries in RPQ" with lines linecolor rgb color1 linewidth draw_linewidth,\
file using 2:(column(246)) every ::2 title "AEP average time (dclk) >= 30 entries in WPQ" with lines linecolor rgb color2 linewidth draw_linewidth,\
file using 2:(column(250)) every ::2 title "AEP average time (dclk) with < 30 entries in WPQ" with lines linecolor rgb color2 linewidth draw_linewidth,
set out "edp_AEP-average-entries-in-WPQ-in-WPQ-when-NOT-empty.png"
set ytics format "% h" font ",24" offset 5,1
set title "AEP average entries in WPQ/in WPQ when NOT empty"
plot \
file using 2:(column(228)) every ::2 title "AEP average entries in WPQ" with lines linecolor rgb color1 linewidth draw_linewidth,\
file using 2:(column(230)) every ::2 title "AEP average entries in WPQ when NOT empty" with lines linecolor rgb color2 linewidth draw_linewidth,
set out "edp_AEP-cycles-when-WPQ-is-empty-has-1-10-20-30-or-more-entries.png"
set ytics format "% h" font ",24" offset 5,1
set title "AEP cycles when WPQ is empty/has 1,10,20,30 or more entries"
plot \
file using 2:(column(236)) every ::2 title "AEP cycles when WPQ is empty" with lines linecolor rgb color1 linewidth draw_linewidth,\
file using 2:(column(232)) every ::2 title "AEP cycles when WPQ has 1 or more entries" with lines linecolor rgb color2 linewidth draw_linewidth,\
file using 2:(column(234)) every ::2 title "AEP cycles when WPQ has 10 or more entries" with lines linecolor rgb color3 linewidth draw_linewidth,\
file using 2:(column(238)) every ::2 title "AEP cycles when WPQ has 20 or more entries" with lines linecolor rgb color4 linewidth draw_linewidth,\
file using 2:(column(240)) every ::2 title "AEP cycles when WPQ has 30 or more entries" with lines linecolor rgb color5 linewidth draw_linewidth,
set out "edp_CHA-percent-of-cycles-Fast-asserted.png"
set ytics format "% h" font ",24" offset 5,1
set title "CHA % of cycles Fast asserted"
plot \
file using 2:(column(248)) every ::2 title "CHA % of cycles Fast asserted" with lines linecolor rgb color1 linewidth draw_linewidth,
exit