[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ns] Reducing Tracefile size..
On Mon, 18 Jun 2001, Sheetalkumar Doshi wrote:
> I'm running a few simulations of a wireless ad hoc network over a time of 1500
> secs simulation time and I'm getting a huge size of the .tr file in the
> process( around 50 MB or so..)
tiny.
> I have turned mactrace option ON bcos i need the information on
> the mac level for my analysis. Are there any ways to cut down the
> size of the tracefile? Can i direct the tracefile output to a pipe
> instead of a file by setting some options in the simulation tcl
> file? Or are there any other methods that ppl use to solve this
> size problem?
pipe to a filter; pipe to gzip; pipe to both. Will slow sims down,
though.
set outputfortrace blah
set outputfornam blah2
set f [open "|gzip -c > $outputfortrace.tr.gz" w]
set nf [open "| gzip -c > $outputfornam.nam.gz" w]
or whatever.
L.
<L.Wood@surrey.ac.uk>PGP<http://www.ee.surrey.ac.uk/Personal/L.Wood/>