Re: [PATCH] cifs: lower default wsize when unix extensions are not used

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 23 Nov 2011 19:34:05 +0100
Björn JACKE <bj@xxxxxxxxx> wrote:

> On 2011-11-09 at 16:04 -0500 Jeff Layton sent off:
> > On Wed, 9 Nov 2011 14:55:36 -0600
> > Steve French <smfrench@xxxxxxxxx> wrote:
> > 
> > > How much of a performance hit does this make?  I would expect that
> > > dropping the writesize by more than 50% to most non-Samba servers to
> > > work around a bug in Solaris seems extreme.  If this hurts our
> > > performance measurably, it may be more pragmatic to limit the wsize
> > > change to a subset of these (e.g. based on server type) - seems more
> > > fair to not punish other servers for a Solaris bug.
> > > 
> > 
> > I'm not sure how big a hit it will be, but it won't be 0. As always, it
> > depends on workload. The problem is, I'm not sure we can reliably
> > detect when the server can't handle larger writes like this.
> 
> I've seen a performance drop from 60MB/s to 50MB/s on a 1GB switched network
> when unix extensions were disabled just because the rsize was limited from 128k
> to 64k. That was tested with Darwin's smbfs but the dropdown in performance of
> cifs vfs will be similar. If this can be seen as a server bug I'd also like to
> see Oracle fix their server and keep cifs vfs be able to use 128k.
> 

That 64k is just a default. There's nothing that stops you from setting
the rsize or wsize higher in this situation. You can go up to ~128k for
the rsize too if you know your server can handle it.

The Solaris/Illumos problem is apparently a kernel bug, and Gordon Ross
has apparently fixed it for Illumos. My concern though is that we don't
know if there are other servers with similar limitations out there in
the field. Windows never sends anything larger than 64k. There are
potentially a lot of servers out there that can't handle a larger wsize.

Even if it's *just* Solaris kernels that are broken this way, there are
still a number of those servers in the field. By defaulting larger
we're putting those users' data at risk.

Ultimately, this is Steve's call, even if I think his logic is flawed.
I would however appreciate a clear NAK on this patch if he's not going
to take it as I have to decide what to do for RHEL and Fedora.

-- 
Jeff Layton <jlayton@xxxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-cifs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux