All of lore.kernel.org
 help / color / mirror / Atom feed
* 2.4.20 TCP server + solaris client performance
@ 2003-02-17 17:36 Fabrizio Nesti
  2003-02-18  2:36 ` Alan Powell
  2003-02-19  4:39 ` Neil Brown
  0 siblings, 2 replies; 18+ messages in thread
From: Fabrizio Nesti @ 2003-02-17 17:36 UTC (permalink / raw)
  To: nfs

Hello to everybody.
we are reporting a very low performance for nfs access from Solaris clients
to the linux nfs server on RH8.0. We thought it was udp and upgraded to
kernel 2.4.20.

Now the performance is still low, compared to a solaris server:
	# time gtar xf /var/tmp/cvs-1.11.5.tar
	Writing on Linux_2.4.20> real    0m22.132s
	Writing on Solaris_8>    real    0m7.174s

Both filesystems are mounted with proto=tcp,rsize=32768,wsize=32768.
Snooping the traffic however, it appears that the linux server is not
serving with size=32768, but with a maximum size of 8192.

- Is there a reson for this?
- May this be the reason for the poor performance above?

Thanks in advance,
Fabrizio Nesti


PS: Some snoop traffic:
...
  solaris -> linux  NFS C CREATE3 FH=884D (EXCLUSIVE) check_cvs.in
linux -> solaris    NFS R CREATE3 OK FH=174A
 solaris -> linux   NFS C SETATTR3 FH=174A
linux -> solaris    NFS R SETATTR3 OK
  solaris -> linux  NFS C WRITE3 FH=174A at 0 for 8192 (ASYNC)
  solaris -> linux  TCP D=2049 S=793 Ack=633960980 Seq=849797604 Len=1460
  solaris -> linux  TCP D=2049 S=793 Ack=633960980 Seq=849799064 Len=1460
  solaris -> linux  TCP D=2049 S=793 Ack=633960980 Seq=849800524 Len=1460
  solaris -> linux  TCP D=2049 S=793 Ack=633960980 Seq=849801984 Len=1460
  solaris -> linux  TCP D=2049 S=793 Ack=633960980 Seq=849803444 Len=1056
linux -> solaris    TCP D=793 S=2049 Ack=849804500 Seq=633960980 Len=0
...



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

^ permalink raw reply	[flat|nested] 18+ messages in thread
* RE: 2.4.20 TCP server + solaris client performance
@ 2003-02-18 17:35 Lever, Charles
  0 siblings, 0 replies; 18+ messages in thread
From: Lever, Charles @ 2003-02-18 17:35 UTC (permalink / raw)
  To: Fabrizio Nesti; +Cc: Alan Powell, nfs

> 8192 block size is a Linux daemon limitation.

i think what alan meant is that the Linux NFS server
cannot respond to read or write requests larger than
8KB, although that will change soon (or already has).
the Linux NFS client supports rsize and wsize up to
32KB.

> Also,
> don't switch to TCP unless you need to. UDP will be
> faster if you have a decent network. Revert back to
> UDP, and on the client side, run "nfsstat -c" and
> monitor the number of retransmissions. If that number
> doesn't increase, you have a clean network, and you
> should stay on UDP.

TCP is a better default in the long run for the following
reasons:

1.  many networks (even switched LANs) contain parts
    that run at different speeds (GbE vs. 100Mb/s).
    TCP is better at managing flow control in situations
    like this, or in the infrequent cases where a network
    congestion storm occurs.

2.  UDP is exposed to some rare forms of silent data
    corruption resulting from the IP ID field wrapping.

3.  the performance overhead of TCP will shrink over time
    so that there is no longer much advantage to using
    UDP.

4.  as time goes on, NFS over TCP will work well enough
    in every network scenario, whereas UDP will always be
    limited (UDP will probably never work well on WANs,
    for example).

also note that future versions of NFS will not support UDP
at all, so it is best to start getting comfortable with
stream protocols now.

the real overhead of using TCP is probably not visible for
a server with disks so slow that it can't fill its local
network pipe.

> --- Fabrizio Nesti <nesti@medialab.sissa.it> wrote:
> > Hello to everybody.
> > we are reporting a very low performance for nfs
> > access from Solaris clients
> > to the linux nfs server on RH8.0. We thought it was
> > udp and upgraded to
> > kernel 2.4.20.
> > 
> > Now the performance is still low, compared to a
> > solaris server:
> > 	# time gtar xf /var/tmp/cvs-1.11.5.tar
> > 	Writing on Linux_2.4.20> real    0m22.132s
> > 	Writing on Solaris_8>    real    0m7.174s
> > 
> > Both filesystems are mounted with proto=tcp,rsize=32768,wsize=32768.
> > Snooping the traffic however, it appears that the
> > linux server is not
> > serving with size=32768, but with a maximum size of
> > 8192.
> > 
> > - Is there a reson for this?
> > - May this be the reason for the poor performance
> > above?
> > 
> > Thanks in advance,
> > Fabrizio Nesti
> > 
> > 
> > PS: Some snoop traffic:
> > ...
> >   solaris -> linux  NFS C CREATE3 FH=884D
> > (EXCLUSIVE) check_cvs.in
> > linux -> solaris    NFS R CREATE3 OK FH=174A
> >  solaris -> linux   NFS C SETATTR3 FH=174A
> > linux -> solaris    NFS R SETATTR3 OK
> >   solaris -> linux  NFS C WRITE3 FH=174A at 0 for
> > 8192 (ASYNC)
> >   solaris -> linux  TCP D=2049 S=793 Ack=633960980 Seq=849797604 
> > Len=1460
> >   solaris -> linux  TCP D=2049 S=793 Ack=633960980 Seq=849799064 
> > Len=1460
> >   solaris -> linux  TCP D=2049 S=793 Ack=633960980 Seq=849800524 
> > Len=1460
> >   solaris -> linux  TCP D=2049 S=793 Ack=633960980 Seq=849801984 
> > Len=1460
> >   solaris -> linux  TCP D=2049 S=793 Ack=633960980 Seq=849803444 
> > Len=1056
> > linux -> solaris    TCP D=793 S=2049 Ack=849804500
> > Seq=633960980 Len=0
> > ...
> > 
> > 
> > 
> >
> -------------------------------------------------------
> > This sf.net email is sponsored by:ThinkGeek
> > Welcome to geek heaven.
> > http://thinkgeek.com/sf 
> > _______________________________________________
> > NFS maillist  -  NFS@lists.sourceforge.net 
> > https://lists.sourceforge.net/lists/listinfo/nfs
> 
> 
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Shopping - Send Flowers for Valentine's Day 
http://shopping.yahoo.com


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf _______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

^ permalink raw reply	[flat|nested] 18+ messages in thread
* Re: 2.4.20 TCP server + solaris client performance
@ 2003-03-17 22:52 Wendy Cheng
  0 siblings, 0 replies; 18+ messages in thread
From: Wendy Cheng @ 2003-03-17 22:52 UTC (permalink / raw)
  To: nfs

What's the underneath file system you use ?
ext2 ? ext3 ? Could you try SGI's xfs ?

Wendy
-------




-------------------------------------------------------
This SF.net email is sponsored by:Crypto Challenge is now open! 
Get cracking and register here for some mind boggling fun and 
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2003-06-05 14:48 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-02-17 17:36 2.4.20 TCP server + solaris client performance Fabrizio Nesti
2003-02-18  2:36 ` Alan Powell
2003-02-18 10:43   ` Fabrizio Nesti
2003-02-18 15:29     ` Eric Whiting
2003-02-18 15:47       ` Fabrizio Nesti
2003-02-19  4:39 ` Neil Brown
2003-02-19 11:30   ` Fabrizio Nesti
2003-02-19 14:07     ` Ion Badulescu
2003-02-19 15:27       ` Fabrizio Nesti
2003-02-19 15:47         ` Ion Badulescu
2003-02-19 16:54           ` Fabrizio Nesti
2003-02-19 17:56     ` Eric Whiting
2003-02-20 18:18       ` Fabrizio Nesti
2003-03-07 23:59         ` Eric Whiting
2003-03-17 17:13           ` [NFS] " Fabrizio Nesti
2003-06-05 14:49           ` Fabrizio Nesti
  -- strict thread matches above, loose matches on Subject: below --
2003-02-18 17:35 Lever, Charles
2003-03-17 22:52 Wendy Cheng

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.