summaryrefslogtreecommitdiff
path: root/benchmarks/netperf/files/patch-doc_examples_runemomniagg2.sh
blob: 9a64a32bf2598a73cf80e2328afdd0a7eb151b68 (plain) (blame)
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
--- doc/examples/runemomniagg2.sh.orig	2011-07-28 18:37:22 UTC
+++ doc/examples/runemomniagg2.sh
@@ -1,4 +1,7 @@
 #set -x
+
+NETPERF="%%PREFIX%%/bin/netperf"
+
 # edit and add to this array as necessary
 # the hosts you will use should be contiguous
 # starting at index zero
@@ -84,11 +87,11 @@ echo four dl585 G5 clients rh5.2, each w
   echo TCP_STREAM
   for i in $concurrent_sessions; do
     j=0; 
-    NETUUID=`netperf -t uuid`;
+    NETUUID=`$NETPERF -t uuid`;
     echo $i concurrent streams id $NETUUID;
     while [ $j -lt $i ]; do 
       client=`expr $j % $num_cli` ;
-      netperf $HDR -t omni -c -C -H ${remote_hosts[$client]} -l $length $confidence -- $CSV -H ${remote_hosts[$client]} $socket_sizes -m 64K -u $NETUUID & HDR="-P 0";
+      $NETPERF $HDR -t omni -c -C -H ${remote_hosts[$client]} -l $length $confidence -- $CSV -H ${remote_hosts[$client]} $socket_sizes -m 64K -u $NETUUID & HDR="-P 0";
       j=`expr $j + 1`;
     done;
     wait;
@@ -99,11 +102,11 @@ echo four dl585 G5 clients rh5.2, each w
   echo TCP_MAERTS
   for i in $concurrent_sessions; do
     j=0;
-    NETUUID=`netperf -t uuid`;
+    NETUUID=`$NETPERF -t uuid`;
     echo $i concurrent streams id $NETUUID;
     while [ $j -lt $i ]; do
       client=`expr $j % $num_cli` ;
-      netperf $HDR -t omni -c -C -H ${remote_hosts[$client]} -l $length $confidence -- $CSV -H ${remote_hosts[$client]} $socket_sizes -M ,64K -u $NETUUID & HDR="-P 0";
+      $NETPERF $HDR -t omni -c -C -H ${remote_hosts[$client]} -l $length $confidence -- $CSV -H ${remote_hosts[$client]} $socket_sizes -M ,64K -u $NETUUID & HDR="-P 0";
       j=`expr $j + 1`;
     done;
     wait;
@@ -115,11 +118,11 @@ echo four dl585 G5 clients rh5.2, each w
   HDR="-P 1"
   for i in $concurrent_sessions;
     do j=0;
-    NETUUID=`netperf -t uuid`;
+    NETUUID=`$NETPERF -t uuid`;
     echo $i concurrent streams id $NETUUID;
     while [ $j -lt $i ]; do
       client=`expr $j % $num_cli` ;
-      netperf $HDR  -t omni -f m -c -C -H ${remote_hosts[$client]} -l $length $confidence -- $CSV  -H ${remote_hosts[$client]} -s 1M -S 1M -r 64K -b 12 -u $NETUUID & HDR="-P 0";
+      $NETPERF $HDR  -t omni -f m -c -C -H ${remote_hosts[$client]} -l $length $confidence -- $CSV  -H ${remote_hosts[$client]} -s 1M -S 1M -r 64K -b 12 -u $NETUUID & HDR="-P 0";
       j=`expr $j + 1`;
     done;
     wait;
@@ -130,14 +133,14 @@ echo four dl585 G5 clients rh5.2, each w
   echo TCP_RR aggregates
   HDR="-P 1"
   for i in $concurrent_sessions; do
-    NETUUID=`netperf -t uuid`;
+    NETUUID=`$NETPERF -t uuid`;
     echo $i concurrent streams id $NETUUID;
     for b in $burst_sizes; do
       echo burst of $b;
       j=0;
       while [ $j -lt $i ]; do
         client=`expr $j % $num_cli` ;
-        netperf $HDR  -t omni -f x -c -C -H ${remote_hosts[$client]} -l $length $confidence -- $CSV  -H ${remote_hosts[$client]} -r 1 -b $b -D -u $NETUUID & HDR="-P 0";
+        $NETPERF $HDR  -t omni -f x -c -C -H ${remote_hosts[$client]} -l $length $confidence -- $CSV  -H ${remote_hosts[$client]} -r 1 -b $b -D -u $NETUUID & HDR="-P 0";
         j=`expr $j + 1`;
       done;
       wait;