Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* poor NFSv3/tcp write performance Solaris 2.6 <-> Digital Unix 4.0
@ 1998-08-19  4:00 Thomas Anders
  1998-08-20  4:00 ` Wieland Stuebinger
                   ` (4 more replies)
  0 siblings, 5 replies; 10+ messages in thread
From: Thomas Anders @ 1998-08-19  4:00 UTC (permalink / raw)


Hello,

when mounting filesystems 
  - from a Digital Unix 4.x server on a Solaris 2.6 client  or
  - from a Solaris 2.6 server on a Digital Unix 4.0 client
with NFSv3 over TCP (vers=3, proto=tcp) we notice poor write
performance (<100 kB/s!) on the client. Read performance is okay.

Write performance increases dramatically (>500 kB/s) if we use:
  - Solaris 2.5.1 or 2.7 Beta Refresh instead of 2.6 (server or client)
  - NFSv3 over UDP (default for Digital Unix clients)
  - NFSv2
  - Digital Unix 4.0 as server *and* client
  - Solaris 2.6 as server *and* client

The performance degradation is reproducible with any pair of
Solaris 2.6 <-> Digital Unix 4.0 workstations we have here,
even with a carefully patched Solaris 2.6 (patch list see below).
The Solaris 2.6 clients nearly hang during excessive NFS writes.

The NFS throughput tests were performed with the `iozone' benchmark
(version 2.01) which shows the same result as some straightforward
`mkfile 10m /nfs/file' operations.

From snoop'ing packets during the iozone run (write+read) on the Solaris 
clients I noticed (compared to normal NFS behaviour):
  - ~3 times more TCP packets from client to server
  - ~5 times more TCP packets from server to client
  - long delays between packets like these:
    142 0.00000 client -> server TCP D=2049 S=1017 Ack=522057022 
                                     Seq=460639655 Len=0 Win=8760
    143 0.14631 server -> client TCP D=1017 S=2049 Ack=460639655 
                                     Seq=522057022 Len=0 Win=26280

Solaris 2.6 patch list:
105642-05   105401-13   105210-11   105216-03   105393-03
105395-02   105518-01   105615-03   105621-02   105665-01
105667-01   106049-01   106271-03   105686-02   105736-01
105755-06   106033-01   106301-01   105490-04   106226-01
105405-02   105516-01   105568-08   105693-03   105705-02
105718-02   105722-01   105724-01   105757-01   105792-02
105953-01   106141-01   106466-01   105720-03   105181-06
105379-04   105786-05   105845-01   105797-03   105600-05
105486-03   105572-04   105742-03   105778-01   105780-01
105847-01   105529-04   105284-10   105802-03   105633-06
105633-08   105618-01   105464-01   105669-02   105630-01
105800-02   106471-01   105472-02   105837-02   105703-04
105566-03   106222-01   105492-02   105798-03   105558-01
105338-11   106025-01   105795-03   105375-09   105552-02
105403-01   105357-02   106029-01   105926-01   106125-05
105426-01   105407-01   


Can others reproduce this behaviour? (be sure to use "vers=3,proto=tcp"
on Digital Unix clients)

Any ideas appreciated. Email welcome.
If I find a solution, I'll summarize here.


Best regards,
Thomas

-- 
Thomas Anders <anders@hmi.de>
Hahn-Meitner-Institut Berlin, Germany



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

* Re: poor NFSv3/tcp write performance Solaris 2.6 <-> Digital Unix 4.0
  1998-08-19  4:00 poor NFSv3/tcp write performance Solaris 2.6 <-> Digital Unix 4.0 Thomas Anders
@ 1998-08-20  4:00 ` Wieland Stuebinger
  1998-08-20  4:00 ` David Price
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 10+ messages in thread
From: Wieland Stuebinger @ 1998-08-20  4:00 UTC (permalink / raw)


I have the same Problem with an Alpha Server DEC Unix 4.0d (patched) and an
Solaris Client
Solaris 2.6 (Recommended Patches).
I have tested the tcp Performance (netperf 2 from hp) too and i got about 6
MB/sec. on a shared 100MBit Ethernet
line in both directions.
I�m currently playing with the tcp and nfs kernel parameter on both machines
but up
to now nothing happens.

If you find a solution please post.

MfG
    Wieland Stuebinger (stuebi@stuebi.de)

(These are my word and the one from SIEMENS)

Thomas Anders wrote:

> --
> Thomas Anders <anders@hmi.de>
> Hahn-Meitner-Institut Berlin, Germany






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

* Re: poor NFSv3/tcp write performance Solaris 2.6 <-> Digital Unix 4.0
  1998-08-19  4:00 poor NFSv3/tcp write performance Solaris 2.6 <-> Digital Unix 4.0 Thomas Anders
  1998-08-20  4:00 ` Wieland Stuebinger
@ 1998-08-20  4:00 ` David Price
  1998-08-24  4:00   ` Gregor Pipan
  1998-08-24  4:00 ` Paul Southworth
                   ` (2 subsequent siblings)
  4 siblings, 1 reply; 10+ messages in thread
From: David Price @ 1998-08-20  4:00 UTC (permalink / raw)


I have given up on NFS on Solaris 2.6.  I have worked with Sun tech
support, applied all patches as well as some beta versions of patches
and NFS performance is far too slow for my use.  I have tried NFS v3,
v3, changes the protocol to/from tcp/udp, modified rsize/wsize,
modified ndd parameters all to no avail.  If anyone finds a solution,
please post or email me - thanks.

Thomas Anders <anders@hmi.de> wrote:

>Hello,
>
>when mounting filesystems 
>  - from a Digital Unix 4.x server on a Solaris 2.6 client  or
>  - from a Solaris 2.6 server on a Digital Unix 4.0 client
>with NFSv3 over TCP (vers=3, proto=tcp) we notice poor write
>performance (<100 kB/s!) on the client. Read performance is okay.
>
>Write performance increases dramatically (>500 kB/s) if we use:
>  - Solaris 2.5.1 or 2.7 Beta Refresh instead of 2.6 (server or client)
>  - NFSv3 over UDP (default for Digital Unix clients)
>  - NFSv2
>  - Digital Unix 4.0 as server *and* client
>  - Solaris 2.6 as server *and* client
>
>The performance degradation is reproducible with any pair of
>Solaris 2.6 <-> Digital Unix 4.0 workstations we have here,
>even with a carefully patched Solaris 2.6 (patch list see below).
>The Solaris 2.6 clients nearly hang during excessive NFS writes.
>
>The NFS throughput tests were performed with the `iozone' benchmark
>(version 2.01) which shows the same result as some straightforward
>`mkfile 10m /nfs/file' operations.
>
>From snoop'ing packets during the iozone run (write+read) on the Solaris 
>clients I noticed (compared to normal NFS behaviour):
>  - ~3 times more TCP packets from client to server
>  - ~5 times more TCP packets from server to client
>  - long delays between packets like these:
>    142 0.00000 client -> server TCP D=2049 S=1017 Ack=522057022 
>                                     Seq=460639655 Len=0 Win=8760
>    143 0.14631 server -> client TCP D=1017 S=2049 Ack=460639655 
>                                     Seq=522057022 Len=0 Win=26280
>
>Solaris 2.6 patch list:
>105642-05   105401-13   105210-11   105216-03   105393-03
>105395-02   105518-01   105615-03   105621-02   105665-01
>105667-01   106049-01   106271-03   105686-02   105736-01
>105755-06   106033-01   106301-01   105490-04   106226-01
>105405-02   105516-01   105568-08   105693-03   105705-02
>105718-02   105722-01   105724-01   105757-01   105792-02
>105953-01   106141-01   106466-01   105720-03   105181-06
>105379-04   105786-05   105845-01   105797-03   105600-05
>105486-03   105572-04   105742-03   105778-01   105780-01
>105847-01   105529-04   105284-10   105802-03   105633-06
>105633-08   105618-01   105464-01   105669-02   105630-01
>105800-02   106471-01   105472-02   105837-02   105703-04
>105566-03   106222-01   105492-02   105798-03   105558-01
>105338-11   106025-01   105795-03   105375-09   105552-02
>105403-01   105357-02   106029-01   105926-01   106125-05
>105426-01   105407-01   
>
>
>Can others reproduce this behaviour? (be sure to use "vers=3,proto=tcp"
>on Digital Unix clients)
>
>Any ideas appreciated. Email welcome.
>If I find a solution, I'll summarize here.
>
>
>Best regards,
>Thomas
>
>-- 
>Thomas Anders <anders@hmi.de>
>Hahn-Meitner-Institut Berlin, Germany




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

* Re: poor NFSv3/tcp write performance Solaris 2.6 <-> Digital Unix 4.0
  1998-08-19  4:00 poor NFSv3/tcp write performance Solaris 2.6 <-> Digital Unix 4.0 Thomas Anders
  1998-08-20  4:00 ` Wieland Stuebinger
  1998-08-20  4:00 ` David Price
@ 1998-08-24  4:00 ` Paul Southworth
  1998-08-24  4:00   ` Thomas Tornblom
  1998-08-25  4:00 ` Eric Werme - replace nospam with werme
  1998-08-28  4:00 ` Thomas Anders
  4 siblings, 1 reply; 10+ messages in thread
From: Paul Southworth @ 1998-08-24  4:00 UTC (permalink / raw)


In article <0rsoityufk.fsf@hmi.de>, Thomas Anders  <anders@hmi.de> wrote:
>when mounting filesystems 
>  - from a Digital Unix 4.x server on a Solaris 2.6 client  or
>  - from a Solaris 2.6 server on a Digital Unix 4.0 client
>with NFSv3 over TCP (vers=3, proto=tcp) we notice poor write
>performance (<100 kB/s!) on the client. Read performance is okay.

I've seen this exact same trouble between a Solaris 2.6/SPARC NFS
server (on 100Mbps ethernet) and BSD/OS 2.1, 3.1, and RedHat Linux
5.0.  Nothing seems to help.

In contrast, two SPARCstation-20/Solaris 2.6 machines on 10Mbps
half-duplex ethernet get stellar performance in the same tests -- the
2.6 machines on 10Mbps ethernet get about 10x better write performance
than the Berkeley boxes do.  Switching between v2 and v3 mounts doesn't
seem to make a difference.  Cutting rsize/wsize down helps a little
but not nearly enough to make the situation acceptable.

--Paul



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

* Re: poor NFSv3/tcp write performance Solaris 2.6 <-> Digital Unix 4.0
  1998-08-24  4:00 ` Paul Southworth
@ 1998-08-24  4:00   ` Thomas Tornblom
  0 siblings, 0 replies; 10+ messages in thread
From: Thomas Tornblom @ 1998-08-24  4:00 UTC (permalink / raw)


cnhyf-903931201@usenet.etext.org (Paul Southworth) writes:

> In article <0rsoityufk.fsf@hmi.de>, Thomas Anders  <anders@hmi.de> wrote:
> >when mounting filesystems 
> >  - from a Digital Unix 4.x server on a Solaris 2.6 client  or
> >  - from a Solaris 2.6 server on a Digital Unix 4.0 client
> >with NFSv3 over TCP (vers=3, proto=tcp) we notice poor write
> >performance (<100 kB/s!) on the client. Read performance is okay.
> 
> I've seen this exact same trouble between a Solaris 2.6/SPARC NFS
> server (on 100Mbps ethernet) and BSD/OS 2.1, 3.1, and RedHat Linux
> 5.0.  Nothing seems to help.
> 
> In contrast, two SPARCstation-20/Solaris 2.6 machines on 10Mbps
> half-duplex ethernet get stellar performance in the same tests -- the
> 2.6 machines on 10Mbps ethernet get about 10x better write performance
> than the Berkeley boxes do.  Switching between v2 and v3 mounts doesn't
> seem to make a difference.  Cutting rsize/wsize down helps a little
> but not nearly enough to make the situation acceptable.
> 
> --Paul

You might snoop for ACL traffic. I have heard people suffer from bad
performance when running v3 between a Sun box and some other v3
implementation that either doesn't implement ACL:s or doesn't do it
the same way as we. Going to v2 helped in that case I believe.

Thomas
-- 

Thomas Tornblom          Tel: +46 8 623 9100   E-mail: Thomas.Tornblom@Sun.SE
Sun Microsystems AB      Fax: +46 8 623 9102



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

* Re: poor NFSv3/tcp write performance Solaris 2.6 <-> Digital Unix 4.0
  1998-08-20  4:00 ` David Price
@ 1998-08-24  4:00   ` Gregor Pipan
  0 siblings, 0 replies; 10+ messages in thread
From: Gregor Pipan @ 1998-08-24  4:00 UTC (permalink / raw)


I have similar problems with HP-UX 10.20 (server) <-> Solaris 2.6 (client)

So the problem is probably  in Solaris

Gregor




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

* Re: poor NFSv3/tcp write performance Solaris 2.6 <-> Digital Unix 4.0
  1998-08-19  4:00 poor NFSv3/tcp write performance Solaris 2.6 <-> Digital Unix 4.0 Thomas Anders
                   ` (2 preceding siblings ...)
  1998-08-24  4:00 ` Paul Southworth
@ 1998-08-25  4:00 ` Eric Werme - replace nospam with werme
  1998-08-27  4:00   ` Thomas Anders
  1998-08-28  4:00 ` Thomas Anders
  4 siblings, 1 reply; 10+ messages in thread
From: Eric Werme - replace nospam with werme @ 1998-08-25  4:00 UTC (permalink / raw)


Thomas Anders <anders@hmi.de> writes:

>when mounting filesystems 
>  - from a Digital Unix 4.x server on a Solaris 2.6 client  or
>  - from a Solaris 2.6 server on a Digital Unix 4.0 client
>with NFSv3 over TCP (vers=3, proto=tcp) we notice poor write
>performance (<100 kB/s!) on the client. Read performance is okay.

>The performance degradation is reproducible with any pair of
>Solaris 2.6 <-> Digital Unix 4.0 workstations we have here,
>even with a carefully patched Solaris 2.6 (patch list see below).
>The Solaris 2.6 clients nearly hang during excessive NFS writes.

How is performance with UDP?  We have an issue with TCP vs. the
small window size Solaris and others use on TCP connections.  I've only
seen the problem with 32 KB writes (not yet supported in released
code), but it might be a problem with 8KB I/O too.  If so, mounting
with a wsize of 4096 might avoid that problem (and open other
performance problems).

There's another really weird problem that was involved NFS v2 and
data cache invalidation when doing writes to a fast server. We
developed a patch (800 lines of code!) for a 3rd party vendor.
As far as I know, NFS V3 didn't have a problem, but since V2 was
in use, it may have predated Sun's V3 support.
--
<>    Eric (Ric) Werme     <> The above is unlikely to contain   <>
<>    ROT-13 addresses:    <> official claims or policies of     <>
<>   <jrezr@mx3.qrp.pbz>   <> Compaq Computer Corp.              <>
<> <jrezr@plorecbegny.arg> <>  http://www.cyberportal.net/werme  <>



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

* Re: poor NFSv3/tcp write performance Solaris 2.6 <-> Digital Unix 4.0
  1998-08-25  4:00 ` Eric Werme - replace nospam with werme
@ 1998-08-27  4:00   ` Thomas Anders
  1998-08-28  4:00     ` Casper H.S. Dik - Network Security Engineer
  0 siblings, 1 reply; 10+ messages in thread
From: Thomas Anders @ 1998-08-27  4:00 UTC (permalink / raw)


werme@zk3.dec.com (Eric Werme) writes:
> How is performance with UDP?  

Writing is much faster, but read performance is as bad as with TCP
(at least for v3). See my other posting for figures.

> We have an issue with TCP vs. the
> small window size Solaris and others use on TCP connections.  I've only
> seen the problem with 32 KB writes (not yet supported in released
> code), but it might be a problem with 8KB I/O too.  If so, mounting
> with a wsize of 4096 might avoid that problem (and open other
> performance problems).

vers=3,proto=tcp,wsize=4096 is even worse than with default wsize.


Regards,
Thomas

-- 
Thomas Anders <anders@hmi.de>
Hahn-Meitner-Institut Berlin, Germany



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

* Re: poor NFSv3/tcp write performance Solaris 2.6 <-> Digital Unix 4.0
  1998-08-27  4:00   ` Thomas Anders
@ 1998-08-28  4:00     ` Casper H.S. Dik - Network Security Engineer
  0 siblings, 0 replies; 10+ messages in thread
From: Casper H.S. Dik - Network Security Engineer @ 1998-08-28  4:00 UTC (permalink / raw)


[[ PLEASE DON'T SEND ME EMAIL COPIES OF POSTINGS ]]

Thomas Anders <anders@hmi.de> writes:

>werme@zk3.dec.com (Eric Werme) writes:
>> How is performance with UDP?  

>Writing is much faster, but read performance is as bad as with TCP
>(at least for v3). See my other posting for figures.

Make sure you have the latest Solaris NFS v3 patches installed; they
can/will help write performance.


>vers=3,proto=tcp,wsize=4096 is even worse than with default wsize.

And with different TCP window sizes?

Casper
--
Expressed in this posting are my opinions.  They are in no way related
to opinions held by my employer, Sun Microsystems.
Statements on Sun products included here are not gospel and may
be fiction rather than truth.



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

* Re: poor NFSv3/tcp write performance Solaris 2.6 <-> Digital Unix 4.0
  1998-08-19  4:00 poor NFSv3/tcp write performance Solaris 2.6 <-> Digital Unix 4.0 Thomas Anders
                   ` (3 preceding siblings ...)
  1998-08-25  4:00 ` Eric Werme - replace nospam with werme
@ 1998-08-28  4:00 ` Thomas Anders
  4 siblings, 0 replies; 10+ messages in thread
From: Thomas Anders @ 1998-08-28  4:00 UTC (permalink / raw)


Thomas Anders <anders@hmi.de> writes:
> when mounting filesystems 
>   - from a Digital Unix 4.x server on a Solaris 2.6 client  or
>   - from a Solaris 2.6 server on a Digital Unix 4.0 client
> with NFSv3 over TCP (vers=3, proto=tcp) we notice poor write
> performance (<100 kB/s!) on the client. 

I followup myself with results of my investigations so far.

Who is affected: Solaris 2.6 clients when nfs-mounting from non-Solaris
                 servers.

Results of 'iozone 12' (kB/s):

  Client    Server          v3+tcp    v3+udp      v2+tcp    v2+udp 
  ------    ------          ------    ------      ------    ------
  Sol.2.6   Sol.2.5.1       950/18800 1250/18800  650/18700 315/17500
  Sol.2.5.1 Sol.2.6        1900/13000 2000/ xxxx  270/ 8500 320/ xxxx
  Sol.2.5.1 Dig.Unix4.0D    700/ 9000  600/13000  550/ 5000 590/ 2000
  Sol.2.6   Dig.Unix4.0D     85/ 1000  700/ 1000   85/ 1000 400/  880
  Sol.2.6*  Dig.Unix4.0D     80/  770  640/ 1000  100/17900 390/17800

  Disclaimer: Take these figures as examples rather than fair benchmarks!

  xxxx = widely differing results (probably a network issue)
  * = with 4 NFS tunables suggested by SunService: nfs:nfs_maxasynccount=256,
      nfs:nfs3_max_transfer_size=65536, nfs:nfs_nra=4, nfs:nfs3_nra=4
      (the NFSv2 read tunables seem to help a lot!)

The Solaris 2.6 nfs client problems are pretty obvious:

  1. slow writing with NFSv2/v3 over tcp
  2. slow reading with NFSv3

Problem 1 seems to be fixed in Solaris 2.7 Beta Refresh (I guess I'm not 
allowed to publish figures). Has anyone seen an appropriate nfs bug report 
on Sunsolve that has been "integrated" between 2.6 FCS and s998_15a
without a patch being produced for 2.6?

I have a call with Sun about these issues now. If anyone would like to
contribute (e.g. results with other NFSv3 servers), drop me a line.


Best regards,
Thomas

-- 
Thomas Anders <anders@hmi.de>
Hahn-Meitner-Institut Berlin, Germany



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

end of thread, other threads:[~1998-08-28  4:00 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-08-19  4:00 poor NFSv3/tcp write performance Solaris 2.6 <-> Digital Unix 4.0 Thomas Anders
1998-08-20  4:00 ` Wieland Stuebinger
1998-08-20  4:00 ` David Price
1998-08-24  4:00   ` Gregor Pipan
1998-08-24  4:00 ` Paul Southworth
1998-08-24  4:00   ` Thomas Tornblom
1998-08-25  4:00 ` Eric Werme - replace nospam with werme
1998-08-27  4:00   ` Thomas Anders
1998-08-28  4:00     ` Casper H.S. Dik - Network Security Engineer
1998-08-28  4:00 ` Thomas Anders

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox