Re: [PATCH - RFC] new "nosharetransport" option for NFS mounts.

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

 



On Mon, 8 Jul 2013 18:51:40 +0000 "Myklebust, Trond"
<Trond.Myklebust@xxxxxxxxxx> wrote:

> On Mon, 2013-07-08 at 09:58 +1000, NeilBrown wrote:
> > 
> > This patch adds a "nosharetransport" option to allow two different
> > mounts from the same server to use different transports.
> > If the mounts use NFSv4, or are of the same filesystem, then
> > "nosharecache" must be used as well.
> 
> Won't this interfere with the recently added NFSv4 trunking detection?

Will it?  I googled around a bit but couldn't find anything that tells me
what trunking really was in this context.  Then I found commit 05f4c350ee02 
which makes it quite clear (thanks Chuck!).

Probably the code I wrote could interfere.

> 
> Also, how will it work with NFSv4.1 sessions? The server will usually
> require a BIND_CONN_TO_SESSION when new TCP connections attempt to
> attach to an existing session.

Why would it attempt to attach to an existing session?  I would hope there
the two different mounts with separate TCP connections would look completely
separate - different transport, different cache, different session.
??

> 
> > There are at least two circumstances where it might be desirable
> > to use separate transports:
> > 
> > 1/ If the NFS server can get into a state where it will ignore
> >   requests for one filesystem while servicing request for another,
> >   then using separate connections for the separate filesystems can
> >   stop problems with one affecting access to the other.
> > 
> >   This is particularly relevant for NetApp filers where one filesystem
> >   has been "suspended".  Requests to that filesystem will be dropped
> >   (rather than the more correct NFS3ERR_JUKEBOX).  This currently
> >   interferes with other filesystems.
> 
> This is a known issue that really needs to be fixed on the server, not
> on the client. As far as I know, work is already underway to fix this.

I wasn't aware of this, nor were our support people.  I've passed it on so
maybe they can bug Netapp....

> 
> > 2/ If a very fast network is used with a many-processor client, a
> >   single TCP connection can present a bottle neck which reduces total
> >   throughput.  Using multiple TCP connections (one per mount) removes
> >   the bottleneck.
> >   An alternate workaround is to configure multiple virtual IP
> >   addresses on the server and mount each filesystem from a different
> >   IP.  This is effective (throughput goes up) but an unnecessary
> >   administrative burden.
> 
> As I understand it, using multiple simultaneous TCP connections between
> the same endpoints also adds a risk that the congestion windows will
> interfere. Do you have numbers to back up the claim of a performance
> improvement?

A customer upgraded from SLES10 (2.6.16 based) to SLES11 (3.0 based) and saw
a slowdown on some large DB jobs of between 1.5 and 2 times (i.e. total time
150% to 200% of what is was before).
After some analysis they created multiple virtual IPs on the server and
mounted the several filesystem each from different IPs and got the
performance back (they see this as a work-around rather than a genuine
solution).
Numbers are like "500MB/s on a single connection, 850MB/sec peaking to
1000MB/sec on multiple connections".

If I can get something more concrete I'll let you know.

As this worked well in 2.6.16 (which doesn't try to share connections) this
is seen as a regression.

On links that are easy to saturate, congestion windows are important and
having a single connection is probably a good idea - so the current default
is certainly correct.
On a 10G ethernet or infiniband connection (where the issue has been
measured) congestion just doesn't seem to be an issue.

Thanks,
NeilBrown

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux