LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

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

To: "LinuxVirtualServer.org 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.
   net-snmp-lvs-module-0.0.4-duplicate_registration.patch

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

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

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

Nick.

-- 
Nick Chalk.

Loadbalancer.org Ltd.
Phone: +44 (0)870 443 8779
http://www.loadbalancer.org/

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:
http://www.linuxvirtualserver.org/

LinuxVirtualServer.org mailing list - lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Send requests to lvs-users-request@xxxxxxxxxxxxxxxxxxxxxx
or go to http://lists.graemef.net/mailman/listinfo/lvs-users
<Prev in Thread] Current Thread [Next in Thread>