]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - tools/tools/netrate/tcpp/parallelism.csh
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / tools / tools / netrate / tcpp / parallelism.csh
1 #!/bin/csh
2 #
3 # $FreeBSD$
4 #
5 # Run tcpp -s -p 8 on the server, then this on the client.
6 #
7 # Note awkwardly hard-coded IP address below.
8 #
9 # Accepts two arguments: [filename] [csvprefix]
10 #
11
12 set totalbytes=4800000          # Bytes per connection
13 set cores=8
14 set trials=6
15 set ptcps=24                    # Max TCPs concurrently
16 set ntcps=240                   # Total TCPs over test
17 set nips=4                      # Number of local IP addresses to use
18 set baseip=192.168.100.200      # First IP address to use
19
20 foreach core (`jot $cores`)
21   foreach trial (`jot $trials`)
22     set mflag=`echo $ptcps / $core | bc`
23     set tflag=`echo $ntcps / $core | bc`
24     echo -n $2,${core},${trial}, >> $1
25     ./tcpp -c 192.168.100.102 -p $core -b $totalbytes -m $mflag \
26       -t $tflag -M $nips -l $baseip >> $1
27   end
28 end