Hi, Maybe this is a stupid question, but any way Will samba use fcntl locking if level 1 and 2 oplocks is disabled and samba is not compiled with spin-locks enabled ? I am using Samba on solaris /Patrik -- "In a world without fences who needs Gates" Patrik Gustavsson, Senior Technical Consultant patrik.gustavsson@sun.com Telephone: +46 60 671540 http://glen.sweden Mobile: +46 70 3551040 SUN MICROSYSTEMS Fax: +46 60 671550 --------------------------------------------------------------
On Thu, 2004-01-29 at 23:55, Patrik Gustavsson wrote:> Hi, > > Maybe this is a stupid question, but any way > > Will samba use fcntl locking if level 1 and 2 oplocks is > disabled and samba is not compiled with spin-locks enabled ? > > I am using Samba on solarisSamba uses fcntl() locking in two places. Firstly, it is used to mirror SMB locks, asked for by the client. Secondly they are used to mediate access to tdbs. Spinlocks are an alternative (if much less reliable) method for tdb mediation. oplocks do not override fcntl locks - but clients that have successfully gained an oplock might not ask for an SMB lock, and therefore Samba might not attempt to gain the matching fcntl() lock. The nasty performance issues in Solaris are due to bad fcntl() lock contention performance in Samba's TDB access. Andrew Bartlett -- Andrew Bartlett abartlet@pcug.org.au Manager, Authentication Subsystems, Samba Team abartlet@samba.org Student Network Administrator, Hawker College abartlet@hawkerc.net http://samba.org http://build.samba.org http://hawkerc.net -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://lists.samba.org/archive/samba/attachments/20040131/22c13fe2/attachment.bin
Hallo Jeremy,> You're confusing share modes with byte range locks. Read up on share > modes - smbstatus doesn't report byte range locks, only share modes. > > Until you understand the difference we're not really communicating :-). At > all :-).if smbstatus could show byte range locks, the debugging of locking issues would be easier then today. Is it possible to enhance smbstatus that way? ______________________________________________________________________________ Erdbeben im Iran: Zehntausende Kinder brauchen Hilfe. UNICEF hilft den Kindern - helfen Sie mit! https://www.unicef.de/spe/spe_03.php
Andrew Bartlett wrote:> oplocks do not override fcntl locks - but clients that have successfully > gained an oplock might not ask for an SMB lock, and therefore Samba > might not attempt to gain the matching fcntl() lock.Would "strict locking" avoid that locking hole by setting the fcntl lock upon giving an oplock?