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

RE: [ns] Memory problems



Hi.

I installed ccmalloc-0-3-4, and added the following two lines to the ns
Makefile after LIB = etc.

-L/usr/local/lib -lccmalloc \
-L/usr/local/lib/ccmalloc-gcc.o \

The make runs successfully but on invoking ns, I get a core-dump. Gdb
tells me that there's some problem with /lib/libc.so.6 Can anyone please
help?

Aravind Iyer

On Tue, 23 Oct 2001, Neundorf Alexander wrote:

>
>
> --
> 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
>