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