Bluehost.com Web Hosting $6.95

[Samba] samba oplocks not breaking

This is a discussion on [Samba] samba oplocks not breaking within the Samba forums, part of the Networking and Network Related category; Hello, I am having (weird) issues with XFS, in that open(...) on certain files takes 45 seconds to return. After ...


Go Back   Usenet Forums > Networking and Network Related > Samba

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 06-20-2008
Brian May
 
Posts: n/a
Default [Samba] samba oplocks not breaking

Hello,

I am having (weird) issues with XFS, in that open(...) on certain files
takes 45 seconds to return. After the file has been opened, the next
file in the same directory takes 45 seconds. If the file was recently
opened it returns immediately.

I have raised this on several mailing lists, see:

<http://lists.luv.asn.au/wws/arc/luv-main/2008-06/msg00143.html>
<http://oss.sgi.com/archives/xfs/2008-06/msg00210.html>
<http://www.archivum.info/linux-fsdevel@vger.kernel.org/2008-06/msg00337.html>

So far it would appear to be Samba is not releasing the oplock when
another process tries to break it.

I am not entirely convinced this is Samba's fault:

<http://www.archivum.info/linux-fsdevel@vger.kernel.org/2008-06/msg00342.html>

However, somebody suggested I contact Samba people just in case.

Any ideas?

Thanks

Brian May

--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/listinfo/samba

Reply With Quote
  #2 (permalink)  
Old 06-20-2008
Volker Lendecke
 
Posts: n/a
Default Re: [Samba] samba oplocks not breaking

On Fri, Jun 20, 2008 at 02:09:22PM +1000, Brian May wrote:
> I am having (weird) issues with XFS, in that open(...) on certain files
> takes 45 seconds to return. After the file has been opened, the next
> file in the same directory takes 45 seconds. If the file was recently
> opened it returns immediately.
>
> I have raised this on several mailing lists, see:
>
> <http://lists.luv.asn.au/wws/arc/luv-main/2008-06/msg00143.html>
> <http://oss.sgi.com/archives/xfs/2008-06/msg00210.html>
> <http://www.archivum.info/linux-fsdevel@vger.kernel.org/2008-06/msg00337.html>
>
> So far it would appear to be Samba is not releasing the oplock when
> another process tries to break it.


If both processes are Samba, the kernel oplock break
mechanism should not be involved at all. At least it is
supposed to work so that the oplock break is done with
messages between the smbds. Kernel oplocks are only for
interop with NFS and local unix processes. So if you're
seeing kernel oplock breaks for files just held by Samba,
Samba has a bug. If you can reproduce it, please file a bug
at bugzilla.samba.org and upload a debug level 10 log of
both smbd processes involved. Please also with "debug hires
timestamps = yes".

Volker

--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/listinfo/samba
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQFIW1/8UzqjrWwMRl0RAkoHAJ0Q6TdL+a+HwZa7TsMFq9zH1ZTLwgCgn Vp4
6eLtuZGfLWvXwveTW81z8HA=
=imOf
-----END PGP SIGNATURE-----

Reply With Quote
  #3 (permalink)  
Old 06-23-2008
Brian May
 
Posts: n/a
Default [Samba] Re: samba oplocks not breaking

Volker Lendecke wrote:
> If both processes are Samba, the kernel oplock break
> mechanism should not be involved at all. At least it is
> supposed to work so that the oplock break is done with
> messages between the smbds. Kernel oplocks are only for
> interop with NFS and local unix processes. So if you're
> seeing kernel oplock breaks for files just held by Samba,
> Samba has a bug. If you can reproduce it, please file a bug
> at bugzilla.samba.org and upload a debug level 10 log of
> both smbd processes involved. Please also with "debug hires
> timestamps = yes".


I am not quite clear on this.

It would appear other Unix processes and other Samba processes are
denied access to the file:

2008/06/19 15:24:08, 0] smbd/oplock.c:oplock_timeout_handler(351)
Oplock break failed for file cur/config.xml -- replying anyway
[2008/06/19 15:24:51, 0] smbd/oplock.c:oplock_timeout_handler(351)
Oplock break failed for file cur/profiles.xml -- replying anyway
[2008/06/19 15:25:21, 0] smbd/oplock.c:oplock_timeout_handler(351)
Oplock break failed for file cur/profiles/vpac.xml -- replying anyway
[2008/06/19 15:25:51, 0] smbd/oplock.c:oplock_timeout_handler(351)
Oplock break failed for file cur/hosts.xml -- replying anyway
[2008/06/19 15:26:21, 0] smbd/oplock.c:oplock_timeout_handler(351)
Oplock break failed for file cur/hosts/vpac.xml -- replying anyway
[2008/06/19 15:26:51, 0] smbd/oplock.c:oplock_timeout_handler(351)
Oplock break failed for file cur/packages.xml -- replying anyway
[2008/06/19 15:27:21, 0] smbd/oplock.c:oplock_timeout_handler(351)
Oplock break failed for file cur/packages/winscp.xml -- replying anyway

Something strange going on here.

Yes, you are right, I probably will need to reproduce this with a higher
level of debugging. Will try that now.

In one of my other messages I quoted the kernel stack trace, but I have
been told that cannot be trusted; it could be using old data.

Brian May

--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/listinfo/samba

Reply With Quote
  #4 (permalink)  
Old 06-23-2008
Brian May
 
Posts: n/a
Default [Samba] Re: samba oplocks not breaking

Brian May wrote:
> Yes, you are right, I probably will need to reproduce this with a higher
> level of debugging. Will try that now.
>
> In one of my other messages I quoted the kernel stack trace, but I have
> been told that cannot be trusted; it could be using old data.


https://bugzilla.samba.org/show_bug.cgi?id=5557

Brian May

--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/listinfo/samba

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 01:28 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0