Thread (3 messages) 3 messages, 3 authors, 2004-09-21

Re: file leases

From: Jamie Lokier <hidden>
Date: 2004-09-21 08:40:29

Stephen Rothwell wrote:
quoted
quoted
When I share a directory using Samba 3.0.6, sometimes local access to
a file stalls for a while - on the order of 10 seconds to open a file.
if your open() is blocking (did not specify O_NONBLOCK) then
break_lease will contact all other processes (samba clients) one
at a time, and will not return until all have been contacted. this
could take a while.
And, of course, the samba servers may have to contact their clients and
get them to release their oplocks ...
Quite, but the client is a Windows 2000 box completely idle with
nothing holding the file open, and a good LAN connection.

If an idle client won't release oplocks quickly on request, then
there's a problem.  Surely people using lots of Windows clients don't
have to wait 10 seconds or more to open a file which somebody else had
open recently on a different box?  I suspect a Samba problem but
anyways the answer is to disable oplocks.  It _could_ be a fault in
leases, which is why I asked if they're known to be working.

-- Jamie
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help