File: s4u-actor-suspend.tesh

package info (click to toggle)
simgrid 4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 38,980 kB
  • sloc: cpp: 123,583; ansic: 66,779; python: 8,358; java: 6,406; fortran: 6,079; f90: 5,123; xml: 4,587; sh: 2,337; perl: 1,436; makefile: 105; lisp: 49; javascript: 7; sed: 6
file content (26 lines) | stat: -rw-r--r-- 1,531 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 the suspend/resume feature of S4U

! output sort 19
$ ${bindir:=.}/s4u-actor-suspend ${platfdir}/small_platform.xml "--log=root.fmt:[%10.6r]%e(%a@%h)%e%m%n"
> [  0.000000] (dream_master@Boivin) Let's create a lazy guy.
> [  0.000000] (Lazy@Boivin) Nobody's watching me ? Let's go to sleep.
> [  0.000000] (dream_master@Boivin) Let's wait a little bit...
> [ 10.000000] (dream_master@Boivin) Let's wake the lazy guy up! >:) BOOOOOUUUHHH!!!!
> [ 10.000000] (Lazy@Boivin) Uuuh ? Did somebody call me ?
> [ 10.000000] (Lazy@Boivin) Going to sleep...
> [ 15.000000] (dream_master@Boivin) Suspend the lazy guy while he's sleeping...
> [ 15.000000] (dream_master@Boivin) Let him finish his siesta.
> [ 25.000000] (dream_master@Boivin) Wake up, lazy guy!
> [ 25.000000] (Lazy@Boivin) Mmm... waking up.
> [ 25.000000] (Lazy@Boivin) Going to sleep one more time (for 10 sec)...
> [ 30.000000] (dream_master@Boivin) Suspend again the lazy guy while he's sleeping...
> [ 30.000000] (dream_master@Boivin) This time, don't let him finish his siesta.
> [ 32.000000] (dream_master@Boivin) Wake up, lazy guy!
> [ 35.000000] (Lazy@Boivin) Waking up once for all!
> [ 35.000000] (Lazy@Boivin) Ok, let's do some work, then (for 10 sec on Boivin).
> [ 37.000000] (dream_master@Boivin) Give a 2 seconds break to the lazy guy while he's working...
> [ 39.000000] (dream_master@Boivin) Back to work, lazy guy!
> [ 39.000000] (dream_master@Boivin) OK, I'm done here.
> [ 47.000000] (Lazy@Boivin) Mmmh, I'm done now. Goodbye.