Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
add a test to cover the Constant-time network model
[simgrid.git] / examples / msg / app-pingpong / app-pingpong.tesh
1 #! ./tesh
2
3 p Testing with default compound
4
5 $ $SG_TEST_EXENV ${bindir:=.}/app-pingpong$EXEEXT ${srcdir:=.}/small_platform.xml ${srcdir:=.}/../msg/app-pingpong/app-pingpong_d.xml "--log=root.fmt:[%10.6r]%e(%i:%P@%h)%e%m%n"
6 > [  0.000000] (1:pinger@Tremblay) Ping -> Jupiter
7 > [  0.000000] (2:ponger@Jupiter) Pong -> Tremblay
8 > [  0.019014] (2:ponger@Jupiter) Task received : small communication (latency bound)
9 > [  0.019014] (2:ponger@Jupiter)  Ping time (latency bound) 0.019014
10 > [  0.019014] (2:ponger@Jupiter) task_bw->data = 0.019
11 > [150.178356] (1:pinger@Tremblay) Task received : large communication (bandwidth bound)
12 > [150.178356] (1:pinger@Tremblay) Pong time (bandwidth bound): 150.159
13 > [150.178356] (0:maestro@) Total simulation time: 150.178
14
15 p Testing the deprecated CM02 network model
16
17 $ $SG_TEST_EXENV ${bindir:=.}/app-pingpong$EXEEXT ${srcdir:=.}/small_platform.xml ${srcdir:=.}/../msg/app-pingpong/app-pingpong_d.xml --cfg=cpu/model:Cas01 --cfg=network/model:CM02 "--log=root.fmt:[%10.6r]%e(%i:%P@%h)%e%m%n"
18 > [  0.000000] (0:maestro@) Configuration change: Set 'cpu/model' to 'Cas01'
19 > [  0.000000] (0:maestro@) Configuration change: Set 'network/model' to 'CM02'
20 > [  0.000000] (1:pinger@Tremblay) Ping -> Jupiter
21 > [  0.000000] (2:ponger@Jupiter) Pong -> Tremblay
22 > [  0.001462] (2:ponger@Jupiter) Task received : small communication (latency bound)
23 > [  0.001462] (2:ponger@Jupiter)  Ping time (latency bound) 0.001462
24 > [  0.001462] (2:ponger@Jupiter) task_bw->data = 0.001
25 > [145.639041] (1:pinger@Tremblay) Task received : large communication (bandwidth bound)
26 > [145.639041] (1:pinger@Tremblay) Pong time (bandwidth bound): 145.638
27 > [145.639041] (0:maestro@) Total simulation time: 145.639
28
29 p Testing the surf network Reno fairness model using lagrangian approach
30
31 $ $SG_TEST_EXENV ${bindir:=.}/app-pingpong$EXEEXT ${srcdir:=.}/small_platform.xml ${srcdir:=.}/../msg/app-pingpong/app-pingpong_d.xml "--cfg=host/model:compound cpu/model:Cas01 network/model:Reno" --log=surf_lagrange.thres=critical "--log=root.fmt:[%10.6r]%e(%i:%P@%h)%e%m%n"
32 > [  0.000000] (0:maestro@) Configuration change: Set 'host/model' to 'compound'
33 > [  0.000000] (0:maestro@) Configuration change: Set 'cpu/model' to 'Cas01'
34 > [  0.000000] (0:maestro@) Configuration change: Set 'network/model' to 'Reno'
35 > [  0.000000] (1:pinger@Tremblay) Ping -> Jupiter
36 > [  0.000000] (2:ponger@Jupiter) Pong -> Tremblay
37 > [  0.019014] (2:ponger@Jupiter) Task received : small communication (latency bound)
38 > [  0.019014] (2:ponger@Jupiter)  Ping time (latency bound) 0.019014
39 > [  0.019014] (2:ponger@Jupiter) task_bw->data = 0.019
40 > [150.178356] (1:pinger@Tremblay) Task received : large communication (bandwidth bound)
41 > [150.178356] (1:pinger@Tremblay) Pong time (bandwidth bound): 150.159
42 > [150.178356] (0:maestro@) Total simulation time: 150.178
43
44 p Testing the surf network Vegas fairness model using lagrangian approach
45
46 $ $SG_TEST_EXENV ${bindir:=.}/app-pingpong$EXEEXT ${srcdir:=.}/small_platform.xml ${srcdir:=.}/../msg/app-pingpong/app-pingpong_d.xml "--cfg=host/model:compound cpu/model:Cas01 network/model:Vegas" "--log=root.fmt:[%10.6r]%e(%i:%P@%h)%e%m%n"
47 > [  0.000000] (0:maestro@) Configuration change: Set 'host/model' to 'compound'
48 > [  0.000000] (0:maestro@) Configuration change: Set 'cpu/model' to 'Cas01'
49 > [  0.000000] (0:maestro@) Configuration change: Set 'network/model' to 'Vegas'
50 > [  0.000000] (1:pinger@Tremblay) Ping -> Jupiter
51 > [  0.000000] (2:ponger@Jupiter) Pong -> Tremblay
52 > [  0.019014] (2:ponger@Jupiter) Task received : small communication (latency bound)
53 > [  0.019014] (2:ponger@Jupiter)  Ping time (latency bound) 0.019014
54 > [  0.019014] (2:ponger@Jupiter) task_bw->data = 0.019
55 > [150.178356] (1:pinger@Tremblay) Task received : large communication (bandwidth bound)
56 > [150.178356] (1:pinger@Tremblay) Pong time (bandwidth bound): 150.159
57 > [150.178356] (0:maestro@) Total simulation time: 150.178
58
59 p Testing the surf network constant model
60
61 $ $SG_TEST_EXENV ${bindir:=.}/app-pingpong$EXEEXT ${srcdir:=.}/small_platform_constant.xml ${srcdir:=.}/../msg/app-pingpong/app-pingpong_d.xml "--cfg=host/model:compound cpu/model:Cas01 network/model:Constant" "--log=root.fmt:[%10.6r]%e(%i:%P@%h)%e%m%n"
62 > [  0.000000] (0:maestro@) Configuration change: Set 'host/model' to 'compound'
63 > [  0.000000] (0:maestro@) Configuration change: Set 'cpu/model' to 'Cas01'
64 > [  0.000000] (0:maestro@) Configuration change: Set 'network/model' to 'Constant'
65 > [  0.000000] (1:pinger@Tremblay) Ping -> Jupiter
66 > [  0.000000] (2:ponger@Jupiter) Pong -> Tremblay
67 > [ 13.010000] (2:ponger@Jupiter) Task received : small communication (latency bound)
68 > [ 13.010000] (2:ponger@Jupiter)  Ping time (latency bound) 13.010000
69 > [ 13.010000] (2:ponger@Jupiter) task_bw->data = 13.010
70 > [ 26.020000] (1:pinger@Tremblay) Task received : large communication (bandwidth bound)
71 > [ 26.020000] (1:pinger@Tremblay) Pong time (bandwidth bound): 13.010
72 > [ 26.020000] (0:maestro@) Total simulation time: 26.020