File: comm-pingpong.tesh

package info (click to toggle)
simgrid 4.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 39,192 kB
  • sloc: cpp: 124,913; ansic: 66,744; python: 8,560; java: 6,773; fortran: 6,079; f90: 5,123; xml: 4,587; sh: 2,194; perl: 1,436; makefile: 111; lisp: 49; javascript: 7; sed: 6
file content (26 lines) | stat: -rw-r--r-- 1,724 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/usr/bin/env tesh

p Testing with default compound

$ ${pythoncmd:=python3} ${PYTHON_TOOL_OPTIONS:=} ${srcdir:=.}/comm-pingpong.py --platform ${platfdir}/small_platform.xml "--log=root.fmt:[%10.6r]%e(%i:%a@%h)%e%m%n"
>[  0.000000] (1:pinger@Tremblay) Ping from mailbox Mailbox 1 to mailbox Mailbox 2
>[  0.000000] (2:ponger@Jupiter) Pong from mailbox Mailbox 2 to mailbox Mailbox 1
>[  0.019014] (2:ponger@Jupiter) Payload received : small communication (latency bound)
>[  0.019014] (2:ponger@Jupiter) Ping time (latency bound) 0.019
>[  0.019014] (2:ponger@Jupiter) payload = 0.019
>[150.178356] (1:pinger@Tremblay) Payload received : large communication (bandwidth bound)
>[150.178356] (1:pinger@Tremblay) Pong time (bandwidth bound): 150.159
>[150.178356] (0:maestro@) Total simulation time: 150.178

p Testing with default compound Full network optimization

$ ${pythoncmd:=python3} ${PYTHON_TOOL_OPTIONS:=} ${srcdir:=.}/comm-pingpong.py --platform ${platfdir}/small_platform.xml "--cfg=network/optim:Full" "--log=root.fmt:[%10.6r]%e(%i:%a@%h)%e%m%n"
>[  0.000000] (0:maestro@) Configuration change: Set 'network/optim' to 'Full'
>[  0.000000] (1:pinger@Tremblay) Ping from mailbox Mailbox 1 to mailbox Mailbox 2
>[  0.000000] (2:ponger@Jupiter) Pong from mailbox Mailbox 2 to mailbox Mailbox 1
>[  0.019014] (2:ponger@Jupiter) Payload received : small communication (latency bound)
>[  0.019014] (2:ponger@Jupiter) Ping time (latency bound) 0.019
>[  0.019014] (2:ponger@Jupiter) payload = 0.019
>[150.178356] (1:pinger@Tremblay) Payload received : large communication (bandwidth bound)
>[150.178356] (1:pinger@Tremblay) Pong time (bandwidth bound): 150.159
>[150.178356] (0:maestro@) Total simulation time: 150.178