[netperf-dev] netperf2 commit notice r551 - trunk/doc/examples

raj at netperf.org raj at netperf.org
Fri Mar 30 17:23:48 PDT 2012


Author: raj
Date: 2012-03-30 17:23:48 -0700 (Fri, 30 Mar 2012)
New Revision: 551

Modified:
   trunk/doc/examples/bloat.sh
Log:
include vertical lines for the starting and stoping times of the TCP_STREAM test

Modified: trunk/doc/examples/bloat.sh
===================================================================
--- trunk/doc/examples/bloat.sh	2012-03-30 23:12:09 UTC (rev 550)
+++ trunk/doc/examples/bloat.sh	2012-03-31 00:23:48 UTC (rev 551)
@@ -22,7 +22,7 @@
 
 STREAM_START=`date +%s`
 echo "Starting netperf TCP_STREAM test at $STREAM_START"
-netperf -H $1 -l 30 -t TCP_STREAM -D 1 -v 2 -- -m 64K 2>&1 > netperf_stream.out
+netperf -H $1 -l 60 -t TCP_STREAM -D 1 -v 2 -- -m 64K 2>&1 > netperf_stream.out
 STREAM_STOP=`date +%s`
 echo "Netperf TCP_STREAM test stopped at $STREAM_STOP"
 
@@ -53,12 +53,23 @@
 
 # now graph it.  if you change the runtimes you should probably change
 # the width of the chart via the -w option
+
+WIDTH=$LENGTH
+if [ $WIDTH -lt 800 ]
+then
+    WIDTH=800
+fi
+
+SIZE="-w $WIDTH -h 400"
+
 $RRDTOOL graph bloat.png --imgformat PNG \
-    -w 800 -h 400 \
+    $SIZE \
     --lower-limit 0 \
     --start $MIN_TIMESTAMP --end $MAX_TIMESTAMP \
-    -t "Effect of bulk transfer on latency" \
+    -t "Effect of bulk transfer on latency to $1" \
     -v "Seconds" \
     DEF:trans=netperf_rr.rrd:tps:AVERAGE \
     CDEF:latency=1.0,trans,/ \
-    LINE2:latency#00FF0080:Latency
+    LINE2:latency#00FF0080:Latency \
+    VRULE:${STREAM_START}#FF0000:"TCP_STREAM start" \
+    VRULE:${STREAM_STOP}#000000:"TCP_STREAM stop"



More information about the netperf-dev mailing list