[emstar-design] Re: [emstar-users] New feature: starting/stopping
simulated nodes
Richard Guy
rguy at cs.ucla.edu
Thu Jun 9 15:50:22 PDT 2005
Thanos,
this is a nice addition!
Can you find a good place in the doc tree that Martin designed, and add
this description (or something similar)? presumably somewhere in
http://cvs.cens.ucla.edu/emstar/toc/em/emrun.html and/or
http://cvs.cens.ucla.edu/emstar/toc/em/emsim.html ...
thanks,
richard
On Jun 9, 2005, at 3:38 PM, Athanasios Stathopoulos wrote:
> A new feature has been added to EmRun/EmSim: the ability to
> start/stop/restart nodes, as well as send SIGSTOP and SIGCONT signals
> to
> them. This is useful when doing experiments that require you to stop
> nodes at
> a particular time and then start them again, or restart nodes (thus
> simulating reboots).
>
> Two extra options were added to the 'sim_command' command device:
>
> id=i:sig=<STOP/CONT>: send SIGSTOP/SIGCONT signal to node i
> id=i:cmd=<START/STOP/RST>: send START/STOP/RST command to node i
>
>
> So, to stop node 3, you need to:
> echo "id=3:cmd=STOP" > /dev/sim/group1/sim_command
>
>
> The difference between the STOP command and the SIGSTOP signal is that
> the
> STOP command will stop the process, while SIGSTOP will just send a STOP
> signal to it (thus 'pausing it').
> So if you need to 'temporarily pause' a node, without losing any state
> that its processes might have, use the signal. If you want to stop it
> completely and then restart it, use the command.
>
>
> -thanos
> _______________________________________________
> emstar-users mailing list
> emstar-users at cens.ucla.edu
> http://www.cens.ucla.edu/mailman/listinfo/emstar-users
More information about the emstar-design
mailing list