Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports-gnome
Path: blob/main/benchmarks/netperf/files/patch-doc_examples_bloat.sh
16130 views
1
--- doc/examples/bloat.sh.orig 2012-10-05 00:25:19 UTC
2
+++ doc/examples/bloat.sh
3
@@ -3,12 +3,7 @@
4
# buffer bloat on latency. We assume that netperf has been compiled
5
# with demo-mode enabled via ./configure --enable-demo
6
7
-NETPERF=`which netperf`
8
-if [ $? -ne 0 ]
9
-then
10
- echo "Unable to find a netperf binary."
11
- exit -1
12
-fi
13
+NETPERF="%%PREFIX%%/bin/netperf"
14
15
CHUNK=60
16
17
@@ -20,7 +15,7 @@ echo "Starting netperf TCP_RR at $RR_STA
18
# in more accurate demo intervals once the STREAM test kicks-in, but a
19
# somewhat lower transaction rate. not unlike enabling histogram
20
# mode.
21
-netperf -H $1 -l 7200 -t TCP_RR -D -0.5 -v 2 -- -r 1 2>&1 > netperf_rr.out &
22
+$NETPERF -H $1 -l 7200 -t TCP_RR -D -0.5 -v 2 -- -r 1 2>&1 > netperf_rr.out &
23
24
# sleep CHUNK seconds
25
sleep $CHUNK
26
@@ -29,7 +24,7 @@ sleep $CHUNK
27
28
STREAM_START=`date +%s`
29
echo "Starting netperf TCP_STREAM test at $STREAM_START" | tee -a bloat.log
30
-netperf -H $1 -l `expr $CHUNK \* 2` -t TCP_STREAM -D 0.25 -v 2 -- -m 1K 2>&1 > netperf_stream.out
31
+$NETPERF -H $1 -l `expr $CHUNK \* 2` -t TCP_STREAM -D 0.25 -v 2 -- -m 1K 2>&1 > netperf_stream.out
32
STREAM_STOP=`date +%s`
33
echo "Netperf TCP_STREAM test stopped at $STREAM_STOP" | tee -a bloat.log
34
35
36