[Samba] user's smbd process generates high cpu utilization
Jeremy Allison
jra at samba.org
Thu Apr 7 02:21:56 GMT 2005
On Wed, Apr 06, 2005 at 03:50:27PM -0700, James Affeld wrote:
>
> So to recap: I need to dig information out of a
> running process smbd, which does not have any children
> spawned, and find out what it is doing/trying to do.
>
> Thanks for any pointers.
I'm attaching a patch for a bug in 3.0.13 than can cause a
spinning smbd (it's already in svn). But to check if this is the
cause you can use strace -p <pid>.
Jeremy.
-------------- next part --------------
--- smbd/dir.c 2005-03-23 12:30:27.000000000 -0800
+++ /home/jeremy/src/samba3.0/source/smbd/dir.c 2005-04-06 18:57:46.157484483 -0700
@@ -602,7 +603,7 @@
return False;
}
- while (SearchDir(dptr->dir_hnd, name, poffset) == True) {
+ if (SearchDir(dptr->dir_hnd, name, poffset)) {
if (is_visible_file(dptr->conn, dptr->path, name, pst, True)) {
return True;
}
More information about the samba
mailing list