[Samba] 2.6.31-rc8: CIFS with 5 seconds hiccups

Jeff Layton jlayton at redhat.com
Wed Sep 9 11:20:39 MDT 2009

On Wed, 9 Sep 2009 13:07:52 -0400 (EDT)
Christoph Lameter <cl at linux-foundation.org> wrote:

> On Wed, 9 Sep 2009, Jeff Layton wrote:
> > My suspicion would be that the server needs to perform an oplock break
> > to another client before it can send the response. The only way I know
> > how to tell that is to sniff all SMB traffic on the server and watch
> > for oplock break calls to other clients when these stalls occur.
> That could be tested by switching them off right? If I do
> echo 0 >/proc/fs/cifs/OplockEnabled
> and then remount the volume it should switch off oplocks?
> This has no effect on the stalls.

That'll stop your client from requesting oplocks, but that won't
prevent others from doing so. If my suspicion is correct, then another
client is holding an oplock and the server needs to break it before it
can reply to yours.

Unfortunately I doubt there's much you can do from your client to
prevent that (if that is the case). There may be a way to turn off
oplocks on the server side, but that may very well be even worse for

Jeff Layton <jlayton at redhat.com>

More information about the samba mailing list