[Samba] nmbd memory leak in 2.2.x CVS

Noel Kelly nkelly at citrusnetworks.net
Mon Nov 18 00:21:01 GMT 2002


Jeremy,

It is indeed a WINS server.  I have a second test server running the same
CVS and it does not appear to have the same problem (PII uniprocessor).

This makes me wonder about the fancy Hyperthreading on the new Intel chips
which fools Linux into believing it is dealing with a dual processor
machine.  I had not seen any problems with the HT during testing but have
since seen a Redhat errata which says the SMP kernel supplied with 7.3 can
have problems though.

I am visiting the customer's site in a few days time and intend to turn off
Hyperthreading on the processor, run the newer Redhat kernel and see if that
clears it up.  If it doesn't then I'll fire up Valgrind as you suggest.

Cheers,
Noel



----- Original Message -----
From: <jra at dp.samba.org>
To: "Noel Kelly" <nkelly at citrusnetworks.net>
Cc: <samba at lists.samba.org>
Sent: Sunday, November 17, 2002 7:25 PM
Subject: Re: [Samba] nmbd memory leak in 2.2.x CVS


> On Thu, Nov 14, 2002 at 07:58:07PM -0000, Noel Kelly wrote:
> > I am running 2.2.6 on a customer's site and everything has been perfect.
> > However I noticed the other day that one of the two nmbd processes (it
is a
> > wins server) had grown to 13Mb over a two week period.
> >
> > I needed to update to the latest CVS version anyway and had hoped that
> > something in that might fix things.  Five days later and things are
looking
> > the same:
> >
> > nmbd started on Nov 9th:
> > root      1271  0.0  0.2  3684 1456 ?        S    Nov09   0:10
> > /usr/local/samba/bin/nmbd -o
> > root      1272  0.0  0.8  7100 4428 ?        S    Nov09   0:02
> > /usr/local/samba/bin/nmbd -o
> >
> > Today Nov 14th:
> > root      1271  0.0  0.2  3688 1460 ?        S    Nov09   0:21
> > /usr/local/samba/bin/nmbd -o
> > root      1272  0.0  1.8 12376 9704 ?        S    Nov09   0:07
> > /usr/local/samba/bin/nmbd -o
> >
> >
> > As you can see nmbd process 1271 has slowly gets larger.  I have tried
> > restarting after removing wins.dat but to no avail.
> >
> > This is a PDC and the only server on a network with about ten XP
clients.
> > 'os level' is 65.  The log looks perfectly normal.
> >
> > Anyone aware of the cause/solution or any suggestions to troubleshoot?
>
> Are you running it as a WINS server ? Can you try it with valgrind
> and see if it catches any leaks ?
>
> Jeremy.
>


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.410 / Virus Database: 231 - Release Date: 02/11/2002




More information about the samba mailing list