Subject: Re: SDL-News: How to accelerate the SDL simulations
From: Andreas Metzger (metzger#informatik.uni-kl.de)
Date: Thu Mar 18 2004 - 14:20:05 GMT
Become an SDL Forum Society member <http://www.sdl-forum.org/Society/members.htm>
The originator of this message is responsible for its content.
-----From Andreas Metzger <metzger#informatik.uni-kl.de> to sdlnews -----
-----BEGIN PGP SIGNED MESSAGE-----
although in a simulation the value of NOW is not connected to the wall
clock, transitions still take up processing time (CPU time). Now, the
actual run-time of your simulation will depend on the number of
transitions you have to perform until you reach the end of your
simulation. This number of transitions can depend on the timers in your
system or the number of transitions triggered by other transitions.
Assuming a very simple system with one timer that expires at 5000
(signalling the end of simulation) and one other timer with a period of
0.001 (say 1 milli time-unit of simulated time). You will end up with
having to schedule and "compute" 5000 * 1000 = 5 Mio Transitions.
Ergo, you should check the relations of all timers in your system and
make sure that these are in a "reasonable" relation to one another.
Hope this helps.
Yang Yang wrote:
| Become an SDL Forum Society member
| The originator of this message is responsible for its content.
| -----From "Yang Yang" <yy01#mails.tsinghua.edu.cn> to sdlnews -----
| I am now simulating the designed routing protocol in a network which
| 25 nodes. And we all know in SDL, the time is not the real time, but a
| scheduled concept. I find out that the simulation is very slow. It
will take me 2
| days to finish the simulation of just 5000 time units. CPU in my
computer is P4
| 2.4C, and the memory is 512M DDR.
| I want to ask how I can accelerate the simulations? Is setting the
| to 0(forbidding the display of the trace) useful? Any other suggestions?
| Thanks in advance!
| --End text from "Yang Yang" <yy01#mails.tsinghua.edu.cn> to sdlnews ---
| For extra SDL Forum Society benefits join at
| For help, email "majordomo#sdl-forum.org" with the body of your email as:
| or (iff this does not answer your question) email:
- -- Dipl.-Inform. Andreas Metzger Department of Computer Science,
University of Kaiserslautern, Germany Website:
http://wwwagz.informatik.uni-kl.de/staff/metzger PGP Key:
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
--End text from Andreas Metzger <metzger#informatik.uni-kl.de> to sdlnews ---
For extra SDL Forum Society benefits join at <http://www.sdl-forum.org/Society/members.htm>
This archive was generated by hypermail 2a23 : Thu May 09 2013 - 16:05:50 GMT