Time-critical problem at Sun: exploding smbd memory usage

Kris Desjardins kris_desjardins at hotmail.com
Mon Aug 20 18:07:54 GMT 2001

We ran samba 2.0.7 on Solaris 7 and had the size reach 28MB per process
(200+ processes) before I had to kill -9 the parent and let the children
eventually timeout and die.  I upgraded to 2.0.10 and applied the patch
below from a previous discussion but had no apparent effect, the processes
are 10MB now and growing.

I also have another problem with the Windows 2000 backup utility and samba.
It seems when backing up 2GB+ of data to a file on a samba share with verify
on, the job will never stop and the "Remaining time" increases.  Thanks.

BOOL reset_stat_cache( void )
        static BOOL initialised;
        if (!lp_stat_cache()) return True;

       if (!initialised) {
               initialised = True;
               return hash_table_init( &stat_cache, INIT_STAT_CACHE_SIZE,
        return hash_table_init( &stat_cache, INIT_STAT_CACHE_SIZE,
} /* reset_stat_cache  */

----- Original Message -----
From: "David Collier-Brown" <davecb at canada.sun.com>
To: "Gerald Carter" <gcarter at valinux.com>
Cc: <David.Collier-Brown at sun.com>; "Jeremy Allison" <jeremy at varesearch.com>;
<tonys at aus.sun.com>; <craig at aus.sun.com>; <allenw at sun.com>;
<samba-technical at samba.org>
Sent: Monday, August 20, 2001 1:41 PM
Subject: Re: Time-critical problem at Sun: exploding smbd memory usage

> Gerald Carter wrote:
> > Strange.  There were no major changes between 2.0.7 and 2.0.10.  Only
> > security fixes.  Does the memory usage flatline out after a while?
> > I normally see 4.5Mb for the RSS for running smbd on Solaris 2.6 - 8.
> Yes, it flattens out, with a claimed size of 17MB, and
> RSS of 15 (if prstat is to be beleived!).
> --dave
> --
> David Collier-Brown,           | Always do right. This will gratify
> Performance & Engineering Team | some people and astonish the rest.
> Americas Customer Engineering  |                      -- Mark Twain
> (905) 415-2849                 | davecb at canada.sun.com

More information about the samba-technical mailing list