2.2.8 fcntl F_SETLKW64 failing on Solaris 8

Paul Griffith paulg at cs.yorku.ca
Fri Mar 28 14:40:24 GMT 2003


Hi!

I am running into a problem with Samba 2.2.8 on Solaris 8. I didn't have
this problem with 2.2.7a and my config file didn't change. What I notice
is smbd process running iwth a high CPU usage. Normally they are below 1%.

  PID USERNAME THR PRI NICE  SIZE   RES STATE    TIME    CPU COMMAND
11193 root       1  20    0 4800K 3256K cpu/3  929:36 23.25% smbd

Sometimes I see two to three smbd process - each chewing up 20-25% each of
the CPU, when I kill them they reappear after 2-3 days. If I do a truss on
the process ID I see the following:

fcntl(11, F_SETLKW64, 0xFFBEEF38)               = 0
fcntl(11, F_SETLKW64, 0xFFBEEF38)               = 0
fcntl(11, F_SETLKW64, 0xFFBEEF38)               = 0

going on forever and ever. I saw similar posting on samba-technical and
the fix was for Samaba 2.2.3a was an updated brlock.c

Here are the details:
SunOS 5.8 Generic_108528-18 sun4u sparc SUNW,Ultra-4

and our smb.conf file
; CS Samba Configuration
; (run though testparm after changing to verify no errors)

[global]
dfree command = /cs/local/lib/samba/dfree
netbios name = xxx
netbios aliases = xxx xxx
username map = /cs/local/share/samba/usermap
debug level = 1
max log size = 0
max connections = 0
server string = CS Samba %v Server
workgroup = CSYORKUCA
encrypt passwords = yes
security = user
hosts allow = xxxx
guest account = nobody
invalid users = root
printing = bsd
printcap name = /cs/local/share/LPRng/printcap
load printers = yes
interfaces = xxxx
wins support = yes
domain master = yes
local master = yes
nt acl support = yes
preferred master = yes
os level = 65
domain logons = yes
print command = /cs/local/bin/lpr -b -P%p %s ; rm -f %s
lpq command = /cs/local/bin/lpq -P%p
lprm command = /cs/local/bin/lprm -P%p %j
; create mask = 0700
unix password sync = true
passwd chat = . %n\n
passwd program = /cs/local/lib/udb/smbchange %u
logon script = default.bat
; disable roaming profiles
; win2k clients didn't run default.bat when it was in a directory below netlogon.
; default.bat now is in netlogon directory.
;logon script = scripts/default.bat
;logon path = \\%N\profiles\%U
;logon drive = h:
;logon home = \\%L\%U
logon path =
logon drive =
logon home =
inherit permissions = yes
;use client driver = yes
;disable spoolss = yes


[netlogon]
path = /cs/local/share/samba/netlogon
writeable = no
guest ok = no
mangle case = yes

; The 'valid users' line means that users can only access their own
; home directory and not the home directories of others.
[homes]
comment = Home Directories
browseable = yes
read only = no
valid users = %S

[printers]
comment = All Printers
browseable = yes
printable = yes
public = no
writable = no
create mode = 0700
path = /tmp



More information about the samba-technical mailing list