[ns] Memory problems
Tue, 23 Oct 2001 11:01:13 +0200
Free Dmitry Sklyarov !
> -----Original Message-----
> From: Aravind Iyer [SMTP:firstname.lastname@example.org]
> Sent: Friday, October 19, 2001 10:27 PM
> To: ns-users@ISI.EDU
> Subject: [ns] Memory problems
> 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