[Ns-developers] [NS-Developers] Bug in ns-2.33 mac-802_11Ext
lucaanchora@virgilio.it
lucaanchora at virgilio.it
Wed Aug 27 07:04:19 PDT 2008
Hi all,
I am using ns-2.33 for some simulations in a vehicular
environment. The
MAC I am using is mac-802_11Ext and the PHY layer is
wireless-phyExt.
While running a simple simulation of 50 seconds with a
50 nodes scenario,
I have noticed that the memory usage of my laptop
(1GB RAM) grown
until 40%. I have conducted a profiling activity using
valgrind tool and I
have noticed that in Mac802_11Ext and TXC classes
there is a problem
of memory deallocation: for BROADCAST transmissions
the sender keeps
a pointer to the pkt just sent (TXC::pDATA field) and
never deallocate it, even
when the PHY layer notifies the MAC that the
transmission si done (by calling
the function handleTXEndIndication()).
I put the instruction
Packet::free(pDATA);
in the function void TXC::
handleTXConfirm() just before the instruction
mac_->bkmgr.handleBKStart
(mac_->cw_);
to address the problem and I have obtained no errors and a
reduction of
the memory usage.
Do you think this is a real problem,
or am I wrong??
Bye
Luca Anchora
More information about the Ns-developers
mailing list