LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-16-2011, 12:28 AM   #1
wpost
Member
 
Registered: Jul 2004
Location: Honduras
Distribution: openSUSE
Posts: 33

Rep: Reputation: 1
Runaway smbd


I'm helping a friend diagnose a runaway smbd. Periodically smbd will start to consume first memory and then swap at a rate of about 1% per second until there's nothing left and the box locks up. It's a single process that grows and grows, not an ever-increasing set of child processes. "service smbd restart" usually corrects the immediate problem, but it eventually returns.

The box in question is running Mandriva 2009.1 -- long in the tooth, I know, but the owner isn't up for changing it yet. It has two HP printers connected to it, which it shares with one freshly reinstalled Windows XP SP2 box (which is why Samba is used).

Attempting to view on the Windows box the properties or print queue of a shared printer often triggers the runaway memory usage, but other times it begins for no reason I can discern.

Samba had been working fine on this box for two years; its setup is documented here:

http://my.opera.com/wpost/blog/samba

I do not know when the problem began, which makes it hard to track down what is new that is causing it to fail. My friend suspected Windows XP to be the culprit and reinstalled it, but no change.

I see nothing obvious in the Samba logs (/var/log/samba/*), keeping in mind I don't understand much of what I'm looking at.

I've searched the web and these forums and have found a few references to runaway memory use by smbd, but haven't found any applicable solutions.

Relevant installed packages are:

samba-client-3.4.3-2mdv2009.1
samba-doc-3.4.3-2mdv2009.1
samba-swat-3.4.3-2mdv2009.1
mount-cifs-3.4.3-2mdv2009.1
samba-server-3.4.3-2mdv2009.1
samba-common-3.4.3-2mdv2009.1

I know I'm not providing enough information to diagnose the problem. What further information is required to diagnose this?
 
Old 12-16-2011, 06:31 AM   #2
zQUEz
Member
 
Registered: Jun 2007
Distribution: Fedora, RHEL, Centos
Posts: 294

Rep: Reputation: 54
It is good that you can trigger the event on demand.
You mentioned that you have looked at the samba logs, but did you turn up logging while this event occurred?
If not, that is where I would start. Because you know it is the smb process, I think I would start focusing on that too:
put the following in your smb.conf:
Code:
log level = 3 smb:10
the higher the number, the more verbosity. That "10" might be too much information, but you can play with it to narrow it down. If that doesn't yield anything obvious, perhaps take out the "smb" part and just turn up overall "log level" to 6 or 7.

Also, what printer drivers is he using? I might for testing purposes, map those HP printers using simple text mode drivers and see what happens. If it works to eliminate the problem, I might then focus my efforts on other ways to connect those HP printers to that Linux server.
 
1 members found this post helpful.
  


Reply

Tags
memory, samba, smbd



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
runaway file? misophist Linux - Software 6 03-09-2009 12:52 PM
runaway terminal Radovitch Ubuntu 1 05-07-2007 02:17 PM
runaway mount process Pico_01 Linux - General 1 02-13-2004 03:36 PM
RedHat 8 runaway mherring Linux - Software 3 01-20-2003 03:25 PM
runaway mouse... jhorvath Linux - Software 1 10-03-2002 07:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration