[Samba] How to troubleshoot SMBD high CPU?

Jeremy T. Cherny Jeremy.Cherny at tobinsolutions.com
Fri Mar 2 12:25:07 MST 2012


-----Original Message-----
From: samba-bounces at lists.samba.org [mailto:samba-bounces at lists.samba.org] On Behalf Of Jeremy Allison
Sent: Friday, March 02, 2012 1:22 PM
To: Jeremy Allison
Cc: 'samba at lists.samba.org'
Subject: Re: [Samba] How to troubleshoot SMBD high CPU?

On Fri, Mar 02, 2012 at 11:20:06AM -0800, Jeremy Allison wrote:
> On Fri, Mar 02, 2012 at 07:56:16PM +0100, Volker Lendecke wrote:
> > On Fri, Mar 02, 2012 at 06:53:15PM +0000, Jeremy T. Cherny wrote:
> > > Hi - I finally figured out how to the ipkg version of the tools 
> > > installed and right now there are 3 smbd processes stuck at 99.9 %
> > > 
> > > 
> > > Results of strace:
> > > 
> > > splice(0x1c, 0, 0x12, 0xbff4ee30, 0xbf70, 0) = 0 Repeated
> > > 
> > > 
> > > Results of gdb with backtrace:
> > > 
> > > #0  0xb73edf33 in splice () from /lib/libc.so.6
> > > #1  0x0839c0a0 in sys_recvfile ()
> > > #2  0x08189f5b in ?? ()
> > > #3  0x0000001c in ?? ()
> > > #4  0x00000012 in ?? ()
> > > #5  0x06760000 in ?? ()
> > > #6  0x00000000 in ?? ()
> > > 
> > > Any ideas on what the problem may be?
> > 
> > The most likely problem is that our recvfile code is broken.
> > Try disabling recvfile options.
> 
> Either that or splice() is broken on his system, which I think is more 
> likely :-).
> 
> Anyway, disabling recvfile should fix it.

Ah, yes - remembering you telling me what the platform is, I'm 100% sure this is a kernel problem, not a Samba one.

Jeremy.
--
------------------------------------

Thank you for the advice.  Is disabling recvfile something done in a config file?  Would that still be a fix if it is a kernel issue?

-Jeremy


More information about the samba mailing list