Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
MC: move the reversible_race logic to the Transition class
[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 > -----------------------------------------------------------
7 > This test set enforces the impact of the latency and TCP-gamma parameter on the bandwidth.
8 > See the documentation about the CM02 TCP performance model.
9 > -----------------------------------------------------------
10 > TEST with latency = 0 sec (and the default value of Gamma):
11 >   Expectation: Gamma/2lat is not defined, so the physical bandwidth is used; The communication lasts 1 sec.
12 >   Actual result: Sending 10Gb with bw=1e+10b, lat=0e+00s lasts 1.000000 seconds (TCP_Gamma=4194304).
13 > -----------------------------------------------------------
14 > TEST with latency = 0.00001 sec
15 >   Expectation: Gamma/2lat is about 209 Gb/s, which is larger than the physical bandwidth.
16 >     So communication is limited by the physical bandwidth and lasts 1.00001 sec.
17 >   Actual result: Sending 10Gb with bw=1e+10b, lat=1e-05s lasts 1.000010 seconds (TCP_Gamma=4194304).
18 > -----------------------------------------------------------
19 > TEST with latency = 0.001 sec
20 >   Expectation: Gamma/2lat is about 2 Gb/s, which is smaller than the physical bandwidth.
21 >     So the communication is limited by the latency and lasts 4.768372 + 0.001 sec.
22 >   Actual result: Sending 10Gb with bw=1e+10b, lat=1e-03s lasts 4.769372 seconds (TCP_Gamma=4194304).
23 > -----------------------------------------------------------
24 > TEST with latency = 0.1 sec
25 >   Expectation: Gamma/2lat is about 2 Gb/s, which is smaller than the physical bandwidth.
26 >     So the communication is limited by the latency and lasts 476.837158 + 0.1 sec.
27 >   Actual result: Sending 10Gb with bw=1e+10b, lat=1e-01s lasts 476.937158 seconds (TCP_Gamma=4194304).
28 > -----------------------------------------------------------
29 > TEST with latency = 0.001 sec and TCP_Gamma = 0
30 > Configuration change: Set 'network/TCP-gamma' to '0'
31 >   Expectation: The latency=0.001s should make the communication to be limited by the latency.
32 >     But since gamma=0, the physical bandwidth is still used. So the communication lasts 1.001 sec.
33 >   Actual result: Sending 10Gb with bw=1e+10b, lat=1e-03s lasts 1.001000 seconds (TCP_Gamma=0).
34 > -----------------------------------------------------------