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:
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:
I know I'm not providing enough information to diagnose the problem. What further information is required to diagnose this?