[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [ns] Memory problems





--
Free Dmitry Sklyarov ! 
http://www.freesklyarov.org

> -----Original Message-----
> From:	Aravind Iyer [SMTP:[email protected]]
> Sent:	Friday, October 19, 2001 10:27 PM
> To:	[email protected]
> Subject:	[ns] Memory problems
> 
> Hi.
> 
> I am using bluehoc (the extension to ns for bluetooth) to simulate video
> transfer over bluetooth. I am using a traffic-trace file to generate the
> traffic. As the simulation progresses, it comsumes more and more memory
> and finally gets killed by SIGKILL. I have tried looking at some earlier
> threads on memory leaks, but there seems to be nothing conclusive.
> 
> Can someone please help me with this? Also, can somebody tell me how to
> use clearMemTrace to debug this? Has anyone been able to run a program
> with memory problems using gdb?
> 
> Aravind Iyer
> 
	Or try using ccmalloc (search on google, it will be there).
	I also had problems with memory, but was able to fix them.
	Be very carefull to free all processed Packets using Packet::free(p);
	Also watch your waiting queues which might exist in your simulation. I had 500 users and their queues became bigger and bigger, approx. 100 MB/10 sec simulated time, so limit the queue sizes

	Good luck
	Alex