Re: [lvs-users] LVS - NET SNMP Memory Leak

To: " users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: [lvs-users] LVS - NET SNMP Memory Leak
Cc: Supportlist <supportlist@xxxxxxxxxxxxxxxx>
From: Nick Chalk <nick@xxxxxxxxxxxxxxxx>
Date: Wed, 19 May 2010 16:42:01 +0100
On 14 May 2010 12:53, Nick Chalk <nick@xxxxxxxxxxxxxxxx> wrote:
> Attached is a patch for the LVS net-snmp module which appears to fix
> the memory leak we were seeing. It's still under test, but results
> look good so far.

That patch didn't handle multiple virtual services properly. Attached
is an updated patch which does.

I've tidied up the patch, splitting it into its component parts:
   net-snmp-lvs-module-0.0.4-leak_fix-2.patch     Memory leak bug fix.
   net-snmp-lvs-module-0.0.4-compile.patch        Add -fPIC to Makefile CFLAGS.

Robin Bowes patch from 2009-09-30,

fixing the duplicate registration error.

We've since discovered another problem, affecting the size of IPv4
addresses returned by net-snmp. On an IPv6-enabled system running
net-snmp 5.5, IPv4 addresses are returned as 16 byte values; testing
with net-snmp clients doesn't show the problem, but other clients are

The LVS module doesn't allow for struct ip_vs_service_entry.addr being
a union, containing either an IPv4 or an IPv6 address.
net-snmp-lvs-module-0.0.4-IP_version.patch contains a patch to handle

All the patches are still in testing - I'd recommend anyone else
applying them to test thoroughly before using in production.


Nick Chalk. Ltd.
Phone: +44 (0)870 443 8779

Attachment: net-snmp-lvs-module-0.0.4-leak_fix-2.patch
Description: Text Data

Attachment: net-snmp-lvs-module-0.0.4-compile.patch
Description: Text Data

Attachment: net-snmp-lvs-module-0.0.4-duplicate_registration.patch
Description: Text Data

Attachment: net-snmp-lvs-module-0.0.4-IP_version.patch
Description: Text Data

Please read the documentation before posting - it's available at: mailing list - lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Send requests to lvs-users-request@xxxxxxxxxxxxxxxxxxxxxx
or go to
<Prev in Thread] Current Thread [Next in Thread>