Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
8a4042a4273199e8a4517d23284ebb123d073234
[simgrid.git] / examples / s4u / app-pingpong / s4u-app-pingpong.tesh
1 #!/usr/bin/env tesh
2
3 p Testing with default compound
4
5 $ ${bindir:=.}/s4u-app-pingpong ${platfdir}/small_platform.xml "--log=root.fmt:[%10.6r]%e(%i:%P@%h)%e%m%n"
6 > [  0.000000] (1:pinger@Tremblay) Ping from mailbox Mailbox 1 to mailbox Mailbox 2
7 > [  0.000000] (2:ponger@Jupiter) Pong from mailbox Mailbox 2 to mailbox Mailbox 1
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 with default compound Full network optimization
16
17 $ ${bindir:=.}/s4u-app-pingpong ${platfdir}/small_platform.xml "--cfg=network/optim:Full" "--log=root.fmt:[%10.6r]%e(%i:%P@%h)%e%m%n"
18 > [  0.000000] (0:maestro@) Configuration change: Set 'network/optim' to 'Full'
19 > [  0.000000] (1:pinger@Tremblay) Ping from mailbox Mailbox 1 to mailbox Mailbox 2
20 > [  0.000000] (2:ponger@Jupiter) Pong from mailbox Mailbox 2 to mailbox Mailbox 1
21 > [  0.019014] (2:ponger@Jupiter) Task received : small communication (latency bound)
22 > [  0.019014] (2:ponger@Jupiter)  Ping time (latency bound) 0.019014
23 > [  0.019014] (2:ponger@Jupiter) task_bw->data = 0.019
24 > [150.178356] (1:pinger@Tremblay) Task received : large communication (bandwidth bound)
25 > [150.178356] (1:pinger@Tremblay) Pong time (bandwidth bound): 150.159
26 > [150.178356] (0:maestro@) Total simulation time: 150.178
27
28 p Testing the deprecated CM02 network model
29
30 $ ${bindir:=.}/s4u-app-pingpong ${platfdir}/small_platform.xml --cfg=cpu/model:Cas01 --cfg=network/model:CM02 "--log=root.fmt:[%10.6r]%e(%i:%P@%h)%e%m%n"
31 > [  0.000000] (0:maestro@) Configuration change: Set 'cpu/model' to 'Cas01'
32 > [  0.000000] (0:maestro@) Configuration change: Set 'network/model' to 'CM02'
33 > [  0.000000] (1:pinger@Tremblay) Ping from mailbox Mailbox 1 to mailbox Mailbox 2
34 > [  0.000000] (2:ponger@Jupiter) Pong from mailbox Mailbox 2 to mailbox Mailbox 1
35 > [  0.001462] (2:ponger@Jupiter) Task received : small communication (latency bound)
36 > [  0.001462] (2:ponger@Jupiter)  Ping time (latency bound) 0.001462
37 > [  0.001462] (2:ponger@Jupiter) task_bw->data = 0.001
38 > [145.639041] (1:pinger@Tremblay) Task received : large communication (bandwidth bound)
39 > [145.639041] (1:pinger@Tremblay) Pong time (bandwidth bound): 145.638
40 > [145.639041] (0:maestro@) Total simulation time: 145.639
41
42 p Testing the surf network constant model
43
44 $ ${bindir:=.}/s4u-app-pingpong ${platfdir}/small_platform_constant.xml "--cfg=host/model:compound cpu/model:Cas01 network/model:Constant" "--log=root.fmt:[%10.6r]%e(%i:%P@%h)%e%m%n"
45 > [  0.000000] (0:maestro@) Configuration change: Set 'host/model' to 'compound'
46 > [  0.000000] (0:maestro@) Configuration change: Set 'cpu/model' to 'Cas01'
47 > [  0.000000] (0:maestro@) Configuration change: Set 'network/model' to 'Constant'
48 > [  0.000000] (1:pinger@Tremblay) Ping from mailbox Mailbox 1 to mailbox Mailbox 2
49 > [  0.000000] (2:ponger@Jupiter) Pong from mailbox Mailbox 2 to mailbox Mailbox 1
50 > [ 13.010000] (2:ponger@Jupiter) Task received : small communication (latency bound)
51 > [ 13.010000] (2:ponger@Jupiter)  Ping time (latency bound) 13.010000
52 > [ 13.010000] (2:ponger@Jupiter) task_bw->data = 13.010
53 > [ 26.020000] (1:pinger@Tremblay) Task received : large communication (bandwidth bound)
54 > [ 26.020000] (1:pinger@Tremblay) Pong time (bandwidth bound): 13.010
55 > [ 26.020000] (0:maestro@) Total simulation time: 26.020