Hello,

Michele Battelli wrote:

>------------------------------------------------------------------------
>
>Hi all,
>  I am facing the problem of speeding up ns-2 simulations. I have my own
>agent and I do simulation on wireless networks with up to 600 nodes. I
>don't use any routing agent nor I use traffic generators.
>Assuming that my agent is internally well optimized, I tried to reduce
>the number of "things" that ns-2 does in order to avoid unnecessary
>computation. The first thing was to I avoid the use of GOD. Second, I
>disabled all the tracing from my Tcl script.
>Unfortunately I could not disable the creation of the trace file, i.e.,
>I could not get rid of the following lines:
>
>set tracefd  [open wireless-out.tr  w]
>$ns_ trace-all $tracefd
>
>without getting an error.
>
>I would like to know 1) if I can totally disable any internal tracing
>
In general you should be able to disable tracing on a Linux system by 
setting the trace file to /dev/null

set tracefd  [open /dev/null  w]

But then you have to modify ns-2 and produce your own simulation results 
in another way.

> 2)
>if there are other things that I can disable to make ns-2 run faster
>either in the C part of the simulator or though Tcl script.
>
>Thank you in advance,
>Regards
>Michele Battelli
>  
>

Best regards,
Svilen

-- 
+------------------------------------------+
| M.Sc. Svilen Ivanov                      |
| Institute for Distributed Systems (IVS)  |
| Otto-von-Guericke University - Magdeburg |
| http://ivs.cs.uni-magdeburg.de/~svilen/  |
+------------------------------------------+

Reply via email to