[Ns-bugs] [Bug 596] New: Wifi memory usage grows without bounds
code@nsnam.ece.gatech.edu
code at nsnam.ece.gatech.edu
Tue Jun 16 10:03:06 PDT 2009
http://www.nsnam.org/bugzilla/show_bug.cgi?id=596
Summary: Wifi memory usage grows without bounds
Product: ns-3
Version: ns-3-dev
Platform: All
OS/Version: All
Status: NEW
Severity: major
Priority: P5
Component: wifi
AssignedTo: ns-bugs at isi.edu
ReportedBy: gjcarneiro at gmail.com
Estimated Hours: 0.0
Created an attachment (id=468)
--> (http://www.nsnam.org/bugzilla/attachment.cgi?id=468)
test script
Run the attached program with massif. The resulting memory graph is like this:
MB
122.6^ ,,#
| ,@@@@#
| ,,@@@@@@@#
| ,,@@@@@@@@@@#
| ..@@@@@@@@@@@@@#.
| .::@@@@@@@@@@@@@#:
| .,: :::@@@@@@@@@@@@@#:
| ,,@@:@: :::@@@@@@@@@@@@@#::
| @@@@@@:@: :::@@@@@@@@@@@@@#::
| ,, @ @@@@@@:@: :::@@@@@@@@@@@@@#:.
| .:@@ @ @@@@@@:@: :::@@@@@@@@@@@@@#::
| ,@: ::@@ @ @@@@@@:@: :::@@@@@@@@@@@@@#::
| @:@@: ::@@ @ @@@@@@:@: :::@@@@@@@@@@@@@#::.
| ,:@ @:@@: ::@@ @ @@@@@@:@: :::@@@@@@@@@@@@@#:::
| ,,@@@:@ @:@@: ::@@ @ @@@@@@:@: :::@@@@@@@@@@@@@#:::
| ,,: @@@@@:@ @:@@: ::@@ @ @@@@@@:@: :::@@@@@@@@@@@@@#::::
| ,@@@: @@@@@:@ @:@@: ::@@ @ @@@@@@:@: :::@@@@@@@@@@@@@#::::
| ,: @@@@: @@@@@:@ @:@@: ::@@ @ @@@@@@:@: :::@@@@@@@@@@@@@#:::.
| ., :@: @@@@: @@@@@:@ @:@@: ::@@ @ @@@@@@:@: :::@@@@@@@@@@@@@#::::
| ,@@:@ :@: @@@@: @@@@@:@ @:@@: ::@@ @ @@@@@@:@: :::@@@@@@@@@@@@@#::::
0
+----------------------------------------------------------------------->Gi
0 1.769
This is not reported as memory leak per-se, it's just that *someone* is keeping
hold of pointers to packets, or packet buffer caching system going berserk, I
don't know.
I had this problem first in NS 3.2, then I ported the test script to ns-3-dev
and the problem remains.
53 1,509,550,840 109,677,888 83,993,535 25,684,353 0
76.58% (83,993,535B) (heap allocation functions) malloc/new/new[], --alloc-fns,
etc.
->46.60% (51,111,280B) 0x6A4E469: ns3::OnOffApplication::SendPacket()
(ptr.h:237)
[...]
->10.72% (11,761,319B) 0x691EDD1: ns3::Buffer::Create(unsigned int)
(buffer.cc:136)
| ->10.55% (11,568,620B) 0x691EDF8: ns3::Buffer::Initialize(unsigned int)
(buffer.cc:245)
| | ->10.55% (11,568,620B) 0x694398E: ns3::Packet::Packet(unsigned int)
(packet.cc:173)
| | | ->10.55% (11,568,620B) 0x6A4E476: ns3::OnOffApplication::SendPacket()
(ptr.h:237)
[...]
--
Configure bugmail: http://www.nsnam.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Ns-bugs
mailing list