[Samba] nmbd Hogging CPU on Mac OSX (10.5.4)

Rune Tønnesen rune at tonnesen.org
Sun Aug 24 21:59:59 GMT 2008


Mark Jackson skrev:
> Hi All,
>
> Firstly, I know this is a MacOS X issue and not sure if you guys can help,
> but I'm really hoping you can since I don't appear to be getting any joy
> elsewhere.
>
> Running OSX 10.5.4 and recently (last week) nmbd is hogging the CPU. I know
> this is a part of the Samba server on OSX, hence the post to this mail-list.
>
> When I disconnect from the network, nmbd goes away and doesn't hog the CPU.
> Reconnect, within a minute it comes back. Happens on both Wired and Wireless
> connections. I don't have filesharing enabled within OSX.
>
> Checked the logs in /var/logs/samba/log.nmbd and the last entries are below.
>
> My Mac is on my corporate network which is 99% Windows, if that matters...?
>
> Any thoughts or comments appreciated as this is getting quite frustrating
> now.
>
> Thanks,
> Mark
>
> [2008/08/21 09:09:28, 0, pid=118]
> /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/21 09:09:33, 0, pid=118]
> /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/21 09:09:33, 0, pid=118]
> /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/21 09:09:33, 0, pid=118]
> /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/21 09:09:34, 0, pid=118]
> /SourceCache/samba/samba-187.4/samba/source/nmbd/nmbd_browsesync.c:find_domain_master_name_query_fail(351)
>   find_domain_master_name_query_fail:
>   Unable to find the Domain Master Browser name WORKGROUP<1b> for the
> workgroup WORKGROUP.
>   Unable to sync browse lists in this workgroup.
> [2008/08/21 09:09:34, 0, pid=118]
> /SourceCache/samba/samba-187.4/samba/source/nmbd/nmbd_browsesync.c:find_domain_master_name_query_fail(351)
>   find_domain_master_name_query_fail:
>   Unable to find the Domain Master Browser name WORKGROUP<1b> for the
> workgroup WORKGROUP.
>   Unable to sync browse lists in this workgroup.
> [2008/08/21 09:24:43, 0, pid=118]
> /SourceCache/samba/samba-187.4/samba/source/nmbd/nmbd_browsesync.c:find_domain_master_name_query_fail(351)
>   find_domain_master_name_query_fail:
>   Unable to find the Domain Master Browser name WORKGROUP<1b> for the
> workgroup WORKGROUP.
>   Unable to sync browse lists in this workgroup.
> [2008/08/21 09:24:43, 0, pid=118]
> /SourceCache/samba/samba-187.4/samba/source/nmbd/nmbd_browsesync.c:find_domain_master_name_query_fail(351)
>   find_domain_master_name_query_fail:
>   Unable to find the Domain Master Browser name WORKGROUP<1b> for the
> workgroup WORKGROUP.
>   Unable to sync browse lists in this workgroup.
> [2008/08/21 09:29:54, 0, pid=118]
> /SourceCache/samba/samba-187.4/samba/source/lib/util_tdb.c:tdb_log(662)
>   tdb(/private/var/samba/gencache.tdb): remove_from_freelist: not on list at
> off=8736
> [2008/08/21 09:29:54, 0, pid=118]
> /SourceCache/samba/samba-187.4/samba/source/lib/util_tdb.c:tdb_log(662)
>   tdb(/private/var/samba/gencache.tdb): tdb_free: left free failed at 8736
> [2008/08/21 09:39:29, 0]
> /SourceCache/samba/samba-187.4/samba/source/nmbd/nmbd.c:main(695)
>   Netbios nameserver version 3.0.25b-apple started.
>   Copyright Andrew Tridgell and the Samba Team 1992-2007
> [2008/08/21 09:51:34, 0]
> /SourceCache/samba/samba-187.4/samba/source/nmbd/nmbd.c:main(695)
>   Netbios nameserver version 3.0.25b-apple started.
>   Copyright Andrew Tridgell and the Samba Team 1992-2007
>   
It looks like a problem with nameresolution
It says it can't find the browsemaster for workgroup WORKGROUP
Is your mac os x box member of windows domain?

please take a look at 
http://oreilly.com/catalog/samba/chapter/book/ch07_03.html

Cheers Rune




More information about the samba mailing list