Skip to content

Commit

Permalink
Add some performance measurements comparing 'xe sr-probe' time for re…
Browse files Browse the repository at this point in the history
…gular open-iscsi (current-probe.dat) vs libiscsi (probe.dat)

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
  • Loading branch information
David Scott committed Jul 12, 2011
1 parent 59f9482 commit 49a456c
Show file tree
Hide file tree
Showing 4 changed files with 548 additions and 0 deletions.
16 changes: 16 additions & 0 deletions performance/LVMoISCSISR.patch
@@ -0,0 +1,16 @@
--- /root/LVMoISCSISR 2011-07-12 17:21:39.000000000 +0100
+++ LVMoISCSISR 2011-07-12 17:33:19.000000000 +0100
@@ -71,6 +71,13 @@
# This is a probe call, generate a temp sr_uuid
sr_uuid = util.gen_uuid()

+ # Dave's new probe interface
+ import iscsi
+ target = self.dconf['target']
+ iqn = self.dconf['targetIQN']
+ print >>sys.stderr, iscsi.probe(target, iqn)
+ raise "foo"
+
driver = SR.driver('iscsi')
if self.original_srcmd.dconf.has_key('target'):
self.original_srcmd.dconf['targetlist'] = self.original_srcmd.dconf['target']
192 changes: 192 additions & 0 deletions performance/current-probe.dat
@@ -0,0 +1,192 @@
# Number of LUNs, probe time
1, 6.53
2, 6.63
3, 6.73
4, 6.85
5, 6.91
6, 7.00
7, 7.13
8, 7.25
9, 7.22
10, 7.38
11, 7.49
12, 7.50
13, 7.74
14, 7.69
15, 7.72
16, 7.85
17, 8.00
18, 8.06
19, 8.12
20, 8.29
21, 8.39
22, 8.48
23, 8.57
24, 8.66
25, 8.56
26, 8.83
27, 8.87
28, 8.88
29, 9.13
30, 9.24
31, 9.15
32, 9.24
33, 9.51
34, 9.37
35, 9.54
36, 9.58
37, 9.80
38, 9.82
39, 9.71
40, 9.89
41, 10.19
42, 10.25
43, 10.36
44, 10.31
45, 10.45
46, 10.50
47, 10.68
48, 10.71
49, 10.76
50, 10.80
51, 10.89
52, 10.81
53, 11.06
54, 11.37
55, 11.37
56, 11.28
57, 11.40
58, 11.64
59, 11.53
60, 11.72
61, 11.69
62, 12.11
63, 11.83
64, 12.25
65, 12.11
66, 12.23
67, 12.36
68, 12.38
69, 12.57
70, 12.73
71, 12.63
72, 12.99
73, 13.22
74, 12.70
75, 13.00
76, 12.95
77, 13.33
78, 13.40
79, 13.13
80, 13.79
81, 13.40
82, 13.64
83, 14.13
84, 14.33
85, 14.13
86, 14.49
87, 14.47
88, 14.60
89, 14.62
90, 14.56
91, 14.78
92, 15.47
93, 15.25
94, 15.77
95, 15.44
96, 15.55
97, 15.91
98, 16.04
99, 16.22
100, 16.54
101, 16.37
102, 16.53
103, 16.56
104, 17.16
105, 16.85
106, 16.96
107, 17.35
108, 17.10
109, 17.23
110, 18.00
111, 18.03
112, 18.00
113, 18.07
114, 18.53
115, 18.53
116, 18.68
117, 19.17
118, 19.18
119, 18.93
120, 18.88
121, 19.36
122, 19.50
123, 19.67
124, 19.50
125, 20.05
126, 19.66
127, 20.23
128, 20.22
129, 20.59
130, 20.70
131, 20.84
132, 20.82
133, 21.03
134, 20.89
135, 21.46
136, 22.03
137, 21.64
138, 22.12
139, 22.02
140, 21.74
141, 22.14
142, 22.32
143, 22.62
144, 22.14
145, 23.85
146, 23.38
147, 22.98
148, 22.81
149, 23.79
150, 23.96
151, 23.44
152, 23.81
153, 24.24
154, 24.14
155, 24.06
156, 24.48
157, 25.04
158, 24.76
159, 24.49
160, 25.11
161, 25.48
162, 25.36
163, 25.83
164, 25.41
165, 25.76
166, 26.18
167, 26.07
168, 25.73
169, 26.26
170, 26.39
171, 26.74
172, 26.85
173, 27.00
174, 26.72
175, 27.09
176, 27.31
177, 27.38
178, 28.24
179, 27.92
180, 27.97
181, 27.89
182, 28.44
183, 28.34
184, 27.95
185, 28.30
186, 28.08
187, 28.94
188, 28.94
189, 29.47
190, 28.89
191, 29.56
148 changes: 148 additions & 0 deletions performance/graph.gp
@@ -0,0 +1,148 @@
#!/usr/bin/gnuplot -persist
#
#
# G N U P L O T
# Version 4.2 patchlevel 6
# last modified Sep 2009
# System: Linux 2.6.32-31-generic-pae
#
# Copyright (C) 1986 - 1993, 1998, 2004, 2007 - 2009
# Thomas Williams, Colin Kelley and many others
#
# Type `help` to access the on-line reference manual.
# The gnuplot FAQ is available from http://www.gnuplot.info/faq/
#
# Send bug reports and suggestions to <http://sourceforge.net/projects/gnuplot>
#
# set terminal wxt 0
# set output
set terminal png
unset clip points
set clip one
unset clip two
set bar 1.000000
set border 31 front linetype -1 linewidth 1.000
set xdata
set ydata
set zdata
set x2data
set y2data
set timefmt x "%d/%m/%y,%H:%M"
set timefmt y "%d/%m/%y,%H:%M"
set timefmt z "%d/%m/%y,%H:%M"
set timefmt x2 "%d/%m/%y,%H:%M"
set timefmt y2 "%d/%m/%y,%H:%M"
set timefmt cb "%d/%m/%y,%H:%M"
set boxwidth
set style fill empty border
set style rectangle back fc lt -3 fillstyle solid 1.00 border -1
set dummy x,y
set format x "% g"
set format y "% g"
set format x2 "% g"
set format y2 "% g"
set format z "% g"
set format cb "% g"
set angles radians
unset grid
set key title ""
set key inside right top vertical Right noreverse enhanced autotitles nobox
set key noinvert samplen 4 spacing 1 width 0 height 0
unset label
unset arrow
set style increment default
unset style line
unset style arrow
set style histogram clustered gap 2 title offset character 0, 0, 0
unset logscale
set offsets 0, 0, 0, 0
set pointsize 1
set encoding default
unset polar
unset parametric
unset decimalsign
set view 60, 30, 1, 1
set samples 100, 100
set isosamples 10, 10
set surface
unset contour
set clabel '%8.3g'
set mapping cartesian
set datafile separator whitespace
unset hidden3d
set cntrparam order 4
set cntrparam linear
set cntrparam levels auto 5
set cntrparam points 5
set size ratio 0 1,1
set origin 0,0
set style data points
set style function lines
set xzeroaxis linetype -2 linewidth 1.000
set yzeroaxis linetype -2 linewidth 1.000
set zzeroaxis linetype -2 linewidth 1.000
set x2zeroaxis linetype -2 linewidth 1.000
set y2zeroaxis linetype -2 linewidth 1.000
set ticslevel 0.5
set mxtics default
set mytics default
set mztics default
set mx2tics default
set my2tics default
set mcbtics default
set xtics border in scale 1,0.5 mirror norotate offset character 0, 0, 0
set xtics autofreq norangelimit
set ytics border in scale 1,0.5 mirror norotate offset character 0, 0, 0
set ytics autofreq norangelimit
set ztics border in scale 1,0.5 nomirror norotate offset character 0, 0, 0
set ztics autofreq norangelimit
set nox2tics
set noy2tics
set cbtics border in scale 1,0.5 mirror norotate offset character 0, 0, 0
set cbtics autofreq norangelimit
set title "LVMoISCSI \"xe sr-probe\" with target, targetIQN"
set title offset character 0, 0, 0 font "" norotate
set timestamp bottom
set timestamp ""
set timestamp offset character 0, 0, 0 font "" norotate
set rrange [ * : * ] noreverse nowriteback # (currently [0.00000:10.0000] )
set trange [ * : * ] noreverse nowriteback # (currently [-5.00000:5.00000] )
set urange [ * : * ] noreverse nowriteback # (currently [-5.00000:5.00000] )
set vrange [ * : * ] noreverse nowriteback # (currently [-5.00000:5.00000] )
set xlabel "Number of LUNs exposed"
set xlabel offset character 0, 0, 0 font "" textcolor lt -1 norotate
set x2label ""
set x2label offset character 0, 0, 0 font "" textcolor lt -1 norotate
set xrange [ * : * ] noreverse nowriteback # (currently [-10.0000:10.0000] )
set x2range [ * : * ] noreverse nowriteback # (currently [-10.0000:10.0000] )
set ylabel "Time/seconds"
set ylabel offset character 0, 0, 0 font "" textcolor lt -1 rotate by 90
set y2label ""
set y2label offset character 0, 0, 0 font "" textcolor lt -1 rotate by 90
set yrange [ * : * ] noreverse nowriteback # (currently [-10.0000:10.0000] )
set y2range [ * : * ] noreverse nowriteback # (currently [-10.0000:10.0000] )
set zlabel ""
set zlabel offset character 0, 0, 0 font "" textcolor lt -1 norotate
set zrange [ * : * ] noreverse nowriteback # (currently [-10.0000:10.0000] )
set cblabel ""
set cblabel offset character 0, 0, 0 font "" textcolor lt -1 rotate by 90
set cbrange [ * : * ] noreverse nowriteback # (currently [-10.0000:10.0000] )
set zero 1e-08
set lmargin -1
set bmargin -1
set rmargin -1
set tmargin -1
set locale "C"
set pm3d explicit at s
set pm3d scansautomatic
set pm3d interpolate 1,1 flush begin noftriangles nohidden3d corners2color mean
set palette positive nops_allcF maxcolors 0 gamma 1.5 color model RGB
set palette rgbformulae 7, 5, 15
set colorbox default
set colorbox vertical origin screen 0.9, 0.2, 0 size screen 0.05, 0.6, 0 front bdefault
set loadpath
set fontpath
set fit noerrorvariables
GNUTERM = "wxt"
plot "current-probe.dat" title 'trunk', "probe.dat" title 'using libiscsi'
# EOF

0 comments on commit 49a456c

Please sign in to comment.