Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add a test of CM02 timings with TCP-gamma (and fix the doc :sweat_smile:)
[simgrid.git] / teshsuite / models / cm02-tcpgamma / cm02-tcpgamma.tesh
1 #!/usr/bin/env tesh
2
3 $ ${bindir:=.}/cm02-tcpgamma --log=root.fmt=%m%n --cfg=network/model:CM02
4 > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'network/crosstraffic' to '0'
5 > Configuration change: Set 'network/model' to 'CM02'
6 > TEST: When the latency is 0, the communication takes 1 sec
7 >   
8 >   Actual result: Sending 10Gb with bw=1e+10b, lat=0e+00s takes 1.000000 seconds (TCP_Gamma=4194304).
9 > -----------------------------------------------------------
10 > TEST with latency = 0.00001 sec
11 >   Gamma/2lat is about 209 Gb/s, which is larger than the physical bandwidth.
12 >   So communication is limited by the physical bandwidth and takes 1.00001 sec.
13
14 >   Actual result: Sending 10Gb with bw=1e+10b, lat=1e-05s takes 1.000010 seconds (TCP_Gamma=4194304).
15 > -----------------------------------------------------------
16 > TEST with latency = 0.001 sec
17 >   Gamma/2lat is about 2 Gb/s, which is smaller than the physical bandwidth.
18 >   So the communication is limited by the latency and takes 4.768372 + 0.001 sec.
19
20 >   Actual result: Sending 10Gb with bw=1e+10b, lat=1e-03s takes 4.769372 seconds (TCP_Gamma=4194304).
21 > -----------------------------------------------------------
22 > TEST with latency = 0.1 sec
23 >   Gamma/2lat is about 2 Gb/s, which is smaller than the physical bandwidth.
24 >   So the communication is limited by the latency and takes 476.837158 + 0.1 sec.
25
26 >   Actual result: Sending 10Gb with bw=1e+10b, lat=1e-01s takes 476.937158 seconds (TCP_Gamma=4194304).
27 > -----------------------------------------------------------
28 > TEST with latency = 0.001 sec and TCP_Gamma = 0
29 > Configuration change: Set 'network/TCP-gamma' to '0'
30 >   The latency=0.001s should make the communication to be limited by the latency, but since gamma=0, the physical bandwidth is still used.
31 >   So the communication takes 1.001 sec.
32
33 >   Actual result: Sending 10Gb with bw=1e+10b, lat=1e-03s takes 1.001000 seconds (TCP_Gamma=0).
34 > -----------------------------------------------------------