Topic : nmbd Hogging CPU

Topic Archived This topic has been archived - replies are not allowed.


This question is not answered. "Helpful" answers available: 2 . "Solved" answers available: 1 .



            Permlink
            Replies : 9 - Pages : 1 - Last Post : Dec 30, 2008 3:57 AM by: Javier H.
Kirky76

Posts: 5
From: UK
Registered: Aug 19, 2008
nmbd Hogging CPU
Posted: Aug 19, 2008 3:58 AM
 

Hi All,

A new problem that has just cropped up. It seems that nmbd is taking up 99% on my MacBook Pro. It only seems to have started within the past day and the only change is I've just updated with the latest security fixes from Apple. I'm connected to my corporate network and when I disconnect, nmbd stops hogging the CPU. I don't have SMB sharing switched on and in the log.nmbd I see:

2008/08/19 10:26:13, 0, pid=122] /SourceCache/samba/samba-187.4/samba/source/lib/util_tdb.c:tdb_log(662)
tdb(/private/var/samba/gencache.tdb): tdb_rec_read bad magic 0xd9fee666 at offset=2592
2008/08/19 10:26:13, 0, pid=122 /SourceCache/samba/samba-187.4/samba/source/lib/util_tdb.c:tdb_log(662)
tdb(/private/var/samba/gencache.tdb): tdb_rec_read bad magic 0xd9fee666 at offset=2592
2008/08/19 10:26:13, 0, pid=122 /SourceCache/samba/samba-187.4/samba/source/lib/util_tdb.c:tdb_log(662)
tdb(/private/var/samba/gencache.tdb): tdb_rec_read bad magic 0xd9fee666 at offset=2592
2008/08/19 10:26:13, 0, pid=122 /SourceCache/samba/samba-187.4/samba/source/lib/util_tdb.c:tdb_log(662)
tdb(/private/var/samba/gencache.tdb): tdb_rec_read bad magic 0xd9fee666 at offset=2592
2008/08/19 10:26:19, 0, pid=122 /SourceCache/samba/samba-187.4/samba/source/lib/util_tdb.c:tdb_log(662)
tdb(/private/var/samba/gencache.tdb): tdb_rec_read bad magic 0xd9fee666 at offset=2592
2008/08/19 10:26:19, 0, pid=122 /SourceCache/samba/samba-187.4/samba/source/lib/util_tdb.c:tdb_log(662)
tdb(/private/var/samba/gencache.tdb): tdb_rec_read bad magic 0xd9fee666 at offset=2592
2008/08/19 10:26:19, 0, pid=122 /SourceCache/samba/samba-187.4/samba/source/lib/util_tdb.c:tdb_log(662)
tdb(/private/var/samba/gencache.tdb): tdb_rec_read bad magic 0xd9fee666 at offset=2592

Looks like a bug to me.

Thoughts/Comments?

Thanks.

MacBook Pro 15"   Mac OS X (10.5.4)    
jalexand

Posts: 2
From: Iowa
Registered: Aug 30, 2008
Re: nmbd Hogging CPU
Posted: Aug 30, 2008 5:58 PM   in response to: Kirky76
 

I am having the same issue on my Mac Book Pro. So far the only solution I've found is do to a "sudo kill -9 nmbd"

I'm getting the similar errors in my log.nmbd

Jason

Mac Book Pro 17, 2008 Mac Pro   Mac OS X (10.5.4)    
paulsidekick

Posts: 1
From: New York
Registered: Sep 18, 2008
Re: nmbd Hogging CPU
Posted: Sep 18, 2008 6:34 PM   in response to: jalexand
 

I am having the exact same problem. My solution was to rename /usr/sbin/nmbd to /usr/sbin/nmbd.bak and kill the process - that keeps it from eating all my computer resources till they fix it.

Macbook Pro   Mac OS X (10.5.5)    
Aramp

Posts: 3
From: Russia
Registered: Dec 18, 2007
Re: nmbd Hogging CPU
Posted: Oct 16, 2008 3:46 AM   in response to: Kirky76
 

The answer can be found here: http://www.nabble.com/nmbd-Hogging-CPU-on-Mac-OSX-(10.5.4)-td19085182.html

The problem is in the file /var/samba/gencache.tdb being corrupt. Use the terminal to execute the following command:

sudo rm /var/samba/gencache.tdb

Then kill the nmbd process in the system monitor. It will restart soon and then will behave normally.

MacBook Pro   Mac OS X (10.5.5)    
Jay Christianson


Posts: 38
Registered: Jul 28, 2004
Re: nmbd Hogging CPU
Posted: Oct 20, 2008 1:20 PM   in response to: Aramp
 

man...after all the time I spent trying to figure this problem out on my machine, this appears to have fixed it.

     
Aquel

Posts: 19
From: France
Registered: Dec 17, 2007
Re: nmbd Hogging CPU
Posted: Nov 26, 2008 6:53 AM   in response to: Jay Christianson
 

doesn't work for me :-((

nmbd process restarts as strong as before...

MacBook Pro   Mac OS X (10.5.5)    
grish_de_France

Posts: 2
From: France
Registered: Dec 9, 2008
Re: nmbd Hogging CPU
Posted: Dec 9, 2008 10:18 AM   in response to: Kirky76
 

I work with 50 PC around, gently reapating all day long their charming names to my mac, and the little snitch has a lot to say. nmbd was eating a full core like described and I have made the folowing changes that seem's to work in this hostile environment :

1) download the freeware "onyx" and in "finder" choose "show invisible files"
2) download "text wrangler" a very practical editor that alow you to modify a file as root
3) open smb.conf folowing this path : private/etc/smb.conf
4) file > save a copy
5) restore the original settings fot this lines :

usershare owner only = True (instead of no previously in my case)
usershare allow guests = no (instead of yes previously in my case)
usershare max shares = 0 (instead of 1000 previously in my case)
usershare allow full config = no (instead of yes, not in the refence file below but seem's suspect to me, any info on that subject could help)

the original settings are described here

http://developer.apple.com/DOCUMENTATION/DARWIN/Reference/ManPages/man5/smb.conf.5.html#//apple_ref/doc/man/5/smb.conf

Does it work for you ? I still can print as before, names of PC continue to shox off in little snitch, but nmbd use 0% !

(prior to that I have cut all sharing, but with no result on nmbd)

Macpro 2x2, Imac 20", pwb 12", G3 BW   Mac OS X (10.5.5)    
grish_de_France

Posts: 2
From: France
Registered: Dec 9, 2008
Re: nmbd Hogging CPU
Posted: Dec 9, 2008 1:19 PM   in response to: Kirky76
 

I will know tomorow morning if the changes in the nmbd.conf works well. Oherwise there is a way to turn samba of or on : nmbd.plist in System/Library/LaunchDaemon.

open it with Property List Editor than you can find in the devellopers tool on the Leopard DVD and turn"Disabled" to yes and "wait" to no.

using the terminal can give more precision (?)
http://discussions.apple.com/thread.jspa?threadID=996088

the matter is with this solution that i'm not sure that I'll will be able to print. but it's the radical way to turn nmbd off.

Macpro 2x2, Imac 20", pwb 12", G3 BW   Mac OS X (10.5.5)    
iHorst

Posts: 1
From: Germany
Registered: Dec 17, 2008
Re: nmbd Hogging CPU
Posted: Dec 17, 2008 12:38 AM   in response to: Kirky76
 

Hi,
I disabled file sharing and than the high cpu load of nmbd went away. Not a good solution if you need it but this works for me as a work around. Issue with the high cpu load came after a system crash (just a day after updating to 10.5.6).

Horst

MB Pro 17" 2.6   Mac OS X (10.5.6)    
Javier H.

Posts: 4
From: Vigo (Spain)
Registered: Nov 6, 2007
Re: nmbd Hogging CPU
Posted: Dec 30, 2008 3:57 AM   in response to: Aramp
 

worked for me. Thanks a lot

MacBook 13''   Mac OS X (10.5.6)   Core2Duo 2.16 GHz, 2GB RAM, 160GB HD, External HD Iomega 320GB USB2.0