-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathaepwatch_gnuplot.sh
executable file
·129 lines (103 loc) · 5.69 KB
/
aepwatch_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
#!/usr/bin/gnuplot
file="aep-watch.csv"
set out "img_aepwatch.png"
color1="#4169E1"
color2="#32CD32"
color3="#551A8B"
color4="#5B5B5B"
color5="#EE7600"
color6="#EE00EE"
color7="#33FFFF"
color8="#660000"
set terminal png
set terminal png size 4500,16000
set multiplot layout 12,1 #spacing 50,50
#X input is time
set xdata time
set timefmt "%s"
#change title font to 28pt
set key font ",28"
#X output time format
set format x "%H:%M:%S"
#set xtics axis rangelimited
set xtics scale 0.5 rotate by 25 offset -3,-0.5 font ",28"
#enable grid
set grid
set autoscale yfixmin
set datafile separator ";"
#change font size of diagram title
set title font ",38"
set ytics format "%.f MB" rotate by 25 offset 10,0 font ",28"
set title "bytes read (derived)"
plot \
file using 1:(column(3)/1024/1024) every ::8 title "DIMM 1" with lines linecolor rgb color1 linewidth 5, \
file using 1:(column(14)/1024/1024) every ::8 title "DIMM 2" with lines linecolor rgb color2 linewidth 5, \
file using 1:(column(25)/1024/1024) every ::8 title "DIMM 3" with lines linecolor rgb color3 linewidth 5, \
file using 1:(column(36)/1024/1024) every ::8 title "DIMM 4" with lines linecolor rgb color4 linewidth 5
set title "bytes written (derived)"
plot \
file using 1:(column(4)/1024/1024) every ::6 title "DIMM 1" with lines linecolor rgb color1 linewidth 5, \
file using 1:(column(15)/1024/1024) every ::6 title "DIMM 2" with lines linecolor rgb color2 linewidth 5, \
file using 1:(column(26)/1024/1024) every ::6 title "DIMM 3" with lines linecolor rgb color3 linewidth 5, \
file using 1:(column(37)/1024/1024) every ::6 title "DIMM 4" with lines linecolor rgb color4 linewidth 5
set ytics format "%.2f" rotate by 25 offset 10,0 font ",28"
set title "read hit ratio (derived)"
plot \
file using 1:5 every ::8 title "DIMM 1" with lines linecolor rgb color1 linewidth 5, \
file using 1:16 every ::8 title "DIMM 2" with lines linecolor rgb color2 linewidth 5, \
file using 1:27 every ::8 title "DIMM 3" with lines linecolor rgb color3 linewidth 5, \
file using 1:38 every ::8 title "DIMM 4" with lines linecolor rgb color4 linewidth 5
set title "write hit ratio (derived)"
plot \
file using 1:6 every ::8 title "DIMM 1" with lines linecolor rgb color1 linewidth 5, \
file using 1:17 every ::8 title "DIMM 2" with lines linecolor rgb color2 linewidth 5, \
file using 1:28 every ::8 title "DIMM 3" with lines linecolor rgb color3 linewidth 5, \
file using 1:39 every ::8 title "DIMM 4" with lines linecolor rgb color4 linewidth 5
set ytics format "%.f" rotate by 25 offset 10,0 font ",28"
set ytics rotate by 25 offset 10,0 font ",28"
set title "wdb merge percent (derived)"
plot \
file using 1:7 every ::8 title "DIMM 1" with lines linecolor rgb color1 linewidth 5, \
file using 1:18 every ::8 title "DIMM 2" with lines linecolor rgb color2 linewidth 5, \
file using 1:29 every ::8 title "DIMM 3" with lines linecolor rgb color3 linewidth 5, \
file using 1:40 every ::8 title "DIMM 4" with lines linecolor rgb color4 linewidth 5
#set autoscale y
set ytics format "%.fK" rotate by 25 offset 10,0 font ",28"
set title "sxp read ops (derived)"
plot \
file using 1:(column(8)/1000) every ::8 title "DIMM 1" with lines linecolor rgb color1 linewidth 5, \
file using 1:(column(19)/1000) every ::8 title "DIMM 2" with lines linecolor rgb color2 linewidth 5, \
file using 1:(column(30)/1000) every ::8 title "DIMM 3" with lines linecolor rgb color3 linewidth 5, \
file using 1:(column(41)/1000) every ::8 title "DIMM 4" with lines linecolor rgb color4 linewidth 5
set title "sxp write ops (derived)"
plot \
file using 1:(column(9)/1000) every ::8 title "DIMM 1" with lines linecolor rgb color1 linewidth 5, \
file using 1:(column(20)/1000) every ::8 title "DIMM 2" with lines linecolor rgb color2 linewidth 5, \
file using 1:(column(31)/1000) every ::8 title "DIMM 3" with lines linecolor rgb color3 linewidth 5, \
file using 1:(column(42)/1000) every ::8 title "DIMM 4" with lines linecolor rgb color4 linewidth 5
set title "read 64B ops received"
plot \
file using 1:(column(10)/1000) every ::8 title "DIMM 1" with lines linecolor rgb color1 linewidth 5, \
file using 1:(column(21)/1000) every ::8 title "DIMM 2" with lines linecolor rgb color2 linewidth 5, \
file using 1:(column(32)/1000) every ::8 title "DIMM 3" with lines linecolor rgb color3 linewidth 5, \
file using 1:(column(43)/1000) every ::8 title "DIMM 4" with lines linecolor rgb color4 linewidth 5
set title "write 64B ops received"
plot \
file using 1:(column(11)/1000) every ::8 title "DIMM 1" with lines linecolor rgb color1 linewidth 5, \
file using 1:(column(22)/1000) every ::8 title "DIMM 2" with lines linecolor rgb color2 linewidth 5, \
file using 1:(column(33)/1000) every ::8 title "DIMM 3" with lines linecolor rgb color3 linewidth 5, \
file using 1:(column(44)/1000) every ::8 title "DIMM 4" with lines linecolor rgb color4 linewidth 5
#set xlabel "time"
set title "ddrt read ops"
plot \
file using 1:(column(12)/1000) every ::6 title "DIMM 1" with lines linecolor rgb color1 linewidth 5, \
file using 1:(column(23)/1000) every ::6 title "DIMM 2" with lines linecolor rgb color2 linewidth 5, \
file using 1:(column(34)/1000) every ::6 title "DIMM 3" with lines linecolor rgb color3 linewidth 5, \
file using 1:(column(45)/1000) every ::6 title "DIMM 4" with lines linecolor rgb color4 linewidth 5
set title "ddrt write ops"
plot \
file using 1:(column(13)/1000) every ::8 title "DIMM 1" with lines linecolor rgb color1 linewidth 5, \
file using 1:(column(24)/1000) every ::8 title "DIMM 2" with lines linecolor rgb color2 linewidth 5, \
file using 1:(column(35)/1000) every ::8 title "DIMM 3" with lines linecolor rgb color3 linewidth 5, \
file using 1:(column(46)/1000) every ::8 title "DIMM 4" with lines linecolor rgb color4 linewidth 5
unset multiplot