[prev in list] [next in list] [prev in thread] [next in thread] 

List:       net-snmp-bugs
Subject:    [ net-snmp-Bugs-3049029 ] Memory leak in Perl async bulkwalk timeout
From:       "SourceForge.net" <noreply () sourceforge ! net>
Date:       2010-08-23 23:57:58
Message-ID: E1Ongtq-0003Lf-6d () sfs-web-7 ! v29 ! ch3 ! sourceforge ! com
[Download RAW message or body]

Bugs item #3049029, was opened at 2010-08-19 17:14
Message generated for change (Comment added) made by 
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=112694&aid=3049029&group_id=12694

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: perl
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: fennec@gmail.com ()
Assigned to: Nobody/Anonymous (nobody)
Summary: Memory leak in Perl async bulkwalk timeout with partial OIDs

Initial Comment:
We have encountered a memory leak when using the net-snmp Perl libraries, when we are \
bulk-walking a device and time out partway through the walk.

Attached please find a Perl script to demonstrate the problem. We point the script at \
a real network device (in our case, a Cisco wireless switch), request a bulk walk of \
.1, and set the timeout such that many OIDs are walked but the request still times \
out before it is complete. We use the Linux /proc/$$/status file as a convenience to \
demonstrate the scale of the memory leak. 

We observed a leak on the order of 50-60 kilobytes per timed-out poll using the \
parameters provided; adjusting the parameters so that more or fewer OIDs were walked \
before the timeout affected the size of the leak. No leak was observed when requests \
completed normally or when the device timed out without returning any data.

System details:
* net-snmp version 5.5
* Linux 2.6.18-164.9.1.el5PAE #1 SMP Tue Dec 15 21:41:47 EST 2009 i686 i686 i386 \
                GNU/Linux
* Perl v5.10.1

Sample output of attached script:

no results: Timeout
VmRSS:	   24848 kB
no results: Timeout
VmRSS:	   24920 kB
no results: Timeout
VmRSS:	   24972 kB
no results: Timeout
VmRSS:	   25028 kB
no results: Timeout
VmRSS:	   25076 kB
no results: Timeout
VmRSS:	   25128 kB
no results: Timeout
VmRSS:	   25184 kB
no results: Timeout
VmRSS:	   25236 kB
no results: Timeout
VmRSS:	   25296 kB
no results: Timeout
VmRSS:	   25340 kB
no results: Timeout
VmRSS:	   25396 kB
no results: Timeout
VmRSS:	   25440 kB
no results: Timeout
VmRSS:	   25496 kB
...

----------------------------------------------------------------------

> Comment By: fennec@gmail.com ()
Date: 2010-08-23 16:57

Message:
We have determined a way to end this memory leak and will attach a patch.
Could someone inspect it for correctness and eventual inclusion into the
official builds? Thanks a bundle.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=112694&aid=3049029&group_id=12694

------------------------------------------------------------------------------
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users 
worldwide. Take advantage of special opportunities to increase revenue and 
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d
_______________________________________________
Net-snmp-bugs mailing list
Net-snmp-bugs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-bugs


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic