Infinite fcntl calls

Joe Meslovich joe at bridgewater.edu
Mon Jul 23 02:47:13 GMT 2001


David,

	Here is the output from a truss -f -p -v fcntl

22618:  fcntl(13, F_SETLKW, 0x080472B4)                 = 0
22618:          typ=F_UNLCK  whence=SEEK_SET start=416   len=1
sys=13451002
 pid=0
22618:  sendto(5, "03\0 Z X\0\0E2 s X ;93A8".., 26, 0, 0x08047348, 16) =
26
22618:  fcntl(13, F_SETLKW, 0x080472B4)                 = 0
22618:          typ=F_WRLCK  whence=SEEK_SET start=416   len=1
sys=13451002
 pid=0
22618:  fcntl(13, F_SETLKW, 0x080472B4)                 = 0
22618:          typ=F_UNLCK  whence=SEEK_SET start=416   len=1
sys=13451002
 pid=0
22618:  sendto(5, "03\0 Z X\0\0E2 s X ;93A8".., 26, 0, 0x08047348, 16) =
26
22618:  fcntl(13, F_SETLKW, 0x080472B4)                 = 0
22618:          typ=F_WRLCK  whence=SEEK_SET start=416   len=1
sys=13451002
 pid=0
22618:  fcntl(13, F_SETLKW, 0x080472B4)                 = 0
22618:          typ=F_UNLCK  whence=SEEK_SET start=416   len=1
sys=13451002
 pid=0



Joe


On Thu, 19 Jul 2001, David Collier-Brown wrote:

> Joe Meslovich wrote:
> >         What I see every so often are smbd processes that steal 90% of a
> > CPU's cycles doing apparently infinite fcntl calls ( I have always had
> > the kill the processes). Below is an example of a truss -f -p of one of
> > the offending processes. Earlier exploration showed that this was occuring
> > while the system was traversing the locking database. I know that some
> > others are experiencing this and I know that it was looked at some. I want
> > to know if anyone has found a resolution to this problem yet. Personally
> > it is my only hurdle in maintaining 2.2.1a as a stable replacement for
> > 2.0.6.
> >
> > 4187:   fcntl(13, F_SETLKW64, 0xEFFFF280)               = 0
> > 4187:   fcntl(13, F_SETLKW64, 0xEFFFF280)               = 0
>
> 	Try adding -v fcntl to the command line,
> 	to see if you can get a dump of the struct passed.
>
> 	F_SETLKW64 is " Set file lock and wait", from
> 	/usr/include/sys/fcntl.h
>
> --dave
> --
> David Collier-Brown,           | Always do right. This will gratify
> Performance & Engineering Team | some people and astonish the rest.
> Americas Customer Engineering  |                      -- Mark Twain
> (905) 415-2849                 | davecb at canada.sun.com
>

----------------------------------------------------------------------------
Joe Meslovich						joe at bridgewater.edu
Associate Network/Systems Engineer	                College Box 499
Tel: (540) 828 - 5343






More information about the samba-technical mailing list