Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* poor NFS/RPC performance
@ 1999-03-15  5:00 Damon Love
  1999-03-15  5:00 ` Serguei Patchkovskii
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Damon Love @ 1999-03-15  5:00 UTC (permalink / raw)


Here is a little background:

we have 10 DEC Alpha 400Mhz 164 machines running DC UNIX 4.0D.
we are running all of them on a 100Mbit Ethernet connected with a 3COM
switch.

we are getting pitiful NFS performance... at best 400kb per second!

this is an internal LAN, and I ran all of my timings with no one else
using any machines...

on machine B who is mounting NFS from machine A I used the default nfs
parameters...

I ran nfsstat on machine A (the server) and noticed that in the client
rpc section
I had 260856 timeouts and  260855 badcalls out of 1658749 total calls...

This seems to indicate that something is really wrong.  This LAN is
completely unloaded
except for possible NIS traffic, but that shoudln't cause that many
timeouts or that slow
of a transfer speed...

Do I need to load some software on the server that isn't loaded?  Do I
need to apply
some patches?  Do I need to adjust the NFS mounting parameters?

Help!
Damon





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

* Re: poor NFS/RPC performance
  1999-03-15  5:00 poor NFS/RPC performance Damon Love
@ 1999-03-15  5:00 ` Serguei Patchkovskii
  1999-03-16  5:00 ` Nick Manka
  1999-03-19  5:00 ` Solution Found! Damon Love
  2 siblings, 0 replies; 11+ messages in thread
From: Serguei Patchkovskii @ 1999-03-15  5:00 UTC (permalink / raw)


Damon Love (damon.love@gtri.gatech.edu) wrote:
: we have 10 DEC Alpha 400Mhz 164 machines running DC UNIX 4.0D.
: we are running all of them on a 100Mbit Ethernet connected with a 3COM
: switch.

: we are getting pitiful NFS performance... at best 400kb per second!

Well, something is badly wrong with your configuration and/or hardware.
On an almost identical setup (DPW 500au, 3COM 3300 in full-duplex mode)
we get close to 3Mbytes/second for NFS writes (that's NFS over UDP, 
default mount options) and little bit under 8Mbytes/second for NFS
reads. (Both numbers are for sequential reads and writes with large 
block size from/to a 200Mbyte file. Buffer caches on either system were
under 5Mbytes, and shouldn't have distorted the results too much).
I suspect that the latter number is in fact limited by the throughtput 
of the 7200RPM drives we are using and not by NFS as such.

Check error counters on the ethernet interfaces and switch - bad NFS
performance may indicate high drop rates on your LAN, which in turn
may be caused by inappropriate settings on switch ports (like setting
full-duplex mode on a wire going to a hub) or low-quality cabling.

Regards,

/Serge.P



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

* Re: poor NFS/RPC performance
  1999-03-15  5:00 poor NFS/RPC performance Damon Love
  1999-03-15  5:00 ` Serguei Patchkovskii
@ 1999-03-16  5:00 ` Nick Manka
       [not found]   ` <7copna$8s8$1@panix7.panix.com>
  1999-03-19  5:00   ` Eric Werme - replace nospam with werme
  1999-03-19  5:00 ` Solution Found! Damon Love
  2 siblings, 2 replies; 11+ messages in thread
From: Nick Manka @ 1999-03-16  5:00 UTC (permalink / raw)


In article <36ED6A9D.2F6957A1@gtri.gatech.edu>,
	Damon Love <damon.love@gtri.gatech.edu> writes:

> we have 10 DEC Alpha 400Mhz 164 machines running DC UNIX 4.0D.
> we are running all of them on a 100Mbit Ethernet connected with a 3COM
> switch.
> 
> we are getting pitiful NFS performance... at best 400kb per second!

We've had similiar problems.

A 3.2G machine could get about nine times the NFSv3 traffic to other
machines as our 4.0D machine.



> I ran nfsstat on machine A (the server) and noticed that in the client
> rpc section
> I had 260856 timeouts and  260855 badcalls out of 1658749 total calls...

Check your cabling. Also try not running Half-Duplex (if you are
running full duplex now).


> need to apply
> some patches?  Do I need to adjust the NFS mounting parameters?


Patchkit 3 seemed to help us, a bit. Going back to NFSv2 (mount
argument) "fixed" the problem, or at least worked around it, but we
aren't happy about it.



-- 
Proprietary software is modern alchemy.



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

* Re: poor NFS/RPC performance
       [not found]   ` <7copna$8s8$1@panix7.panix.com>
@ 1999-03-17  5:00     ` Nick Manka
  1999-03-18  5:00       ` Damon Love
  1999-03-19  5:00       ` Thor Lancelot Simon
  0 siblings, 2 replies; 11+ messages in thread
From: Nick Manka @ 1999-03-17  5:00 UTC (permalink / raw)


In article <7copna$8s8$1@panix7.panix.com>,
	tls@panix.com (Thor Lancelot Simon) writes:

>>We've had similiar problems.
>>
>>A 3.2G machine could get about nine times the NFSv3 traffic to other
>>machines as our 4.0D machine.
> 
> Are you *sure* both the switch and the machines running 4.0 agree on the
> 10/100 and full/half duplex settings for the links to each machine?

That was the first thing we checked :>

With patchkit 3 to 4.0D, it was a bit better, but NFSv2 is still
faster.


-- 
Proprietary software is modern alchemy.



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

* Re: poor NFS/RPC performance
  1999-03-17  5:00     ` Nick Manka
@ 1999-03-18  5:00       ` Damon Love
  1999-03-18  5:00         ` Serguei Patchkovskii
  1999-03-19  5:00         ` Eric Werme - replace nospam with werme
  1999-03-19  5:00       ` Thor Lancelot Simon
  1 sibling, 2 replies; 11+ messages in thread
From: Damon Love @ 1999-03-18  5:00 UTC (permalink / raw)


To All,

thanks for the help so far...

ok, here's an update...  we have 2 solaris SPARC 2.6 Ultra 1 machines and
4 LINUX Redhat 5.2 300Mhz AMD K6-2 machines mounting from the same
DEC server...  all of them get around 2.5 Mbytes for NFS traffic...

The slow down is really only from DEC to DEC machine (all 4.0D)...

Also, when we are simply doing one file copy, we routinely get
"NFS server not respsonding, still trying.  NFS server OK..."

it's like it goes to sleep...  When I watch the server hard drive light when
we are doing NFS tests it looks like it tramsits a little data waits,
transmits
a little more, waits...  These waits are maybe one second in duration!

puzzling...
Damon

Nick Manka wrote:

> In article <7copna$8s8$1@panix7.panix.com>,
>         tls@panix.com (Thor Lancelot Simon) writes:
>
> >>We've had similiar problems.
> >>
> >>A 3.2G machine could get about nine times the NFSv3 traffic to other
> >>machines as our 4.0D machine.
> >
> > Are you *sure* both the switch and the machines running 4.0 agree on the
> > 10/100 and full/half duplex settings for the links to each machine?
>
> That was the first thing we checked :>
>
> With patchkit 3 to 4.0D, it was a bit better, but NFSv2 is still
> faster.
>
> --
> Proprietary software is modern alchemy.




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

* Re: poor NFS/RPC performance
  1999-03-18  5:00       ` Damon Love
@ 1999-03-18  5:00         ` Serguei Patchkovskii
  1999-03-19  5:00         ` Eric Werme - replace nospam with werme
  1 sibling, 0 replies; 11+ messages in thread
From: Serguei Patchkovskii @ 1999-03-18  5:00 UTC (permalink / raw)


Damon Love (gte822f@prism.gatech.edu) wrote:
: ok, here's an update...  we have 2 solaris SPARC 2.6 Ultra 1 machines and
: 4 LINUX Redhat 5.2 300Mhz AMD K6-2 machines mounting from the same
: DEC server...  all of them get around 2.5 Mbytes for NFS traffic...

: The slow down is really only from DEC to DEC machine (all 4.0D)...

: Also, when we are simply doing one file copy, we routinely get
: "NFS server not respsonding, still trying.  NFS server OK..."

: it's like it goes to sleep...  When I watch the server hard drive light when
: we are doing NFS tests it looks like it tramsits a little data waits,
: transmits
: a little more, waits...  These waits are maybe one second in duration!

This seems to indicate packet loss for whatever reason (there are 
several). On a local network like yours you should see practically
zero drop rates. One way to check for this is to try:

ping -s 8000 -f client # On the server
ping -s 8000 -f server # On the client

In both cases, drop rates should be essentially zero (By the time I got
bored with this, I got less than 1 in 10,000 drop rate on our network, 
which is very similar to yours).

If you observe high drop rates, the first thing you want to check is
the full-duplex settings on your switch and DU box. If you use 
point-to-point links between switch and DEC client, full-duplex
should be either on or off on BOTH ends. If you have a hub between
the switch and the client, then you SHOULD NOT use full duplex on
any of the ports connected to the hub.

If this is Ok, check cabling (e.g. interchange the cables or sockets
used by one of the "good" clients and DEC box and see whether the
problem follows the cable or the computer). You can also get an
indication of cabling problems from netstat:

$ netstat -s -I tu0

tu0 Ethernet counters at Thu Mar 18 10:59:06 1999

       65535 seconds since last zeroed
  4294967263 bytes received
  4294967279 bytes sent
    53248824 data blocks received
   105348459 data blocks sent
   378081282 multicast bytes received
     3195790 multicast blocks received
      166038 multicast bytes sent
        2751 multicast blocks sent
           0 blocks sent, initially deferred
           0 blocks sent, single collision
           0 blocks sent, multiple collisions
vvvvvvvv   0 send failures
           0 collision detect check failure
           0 receive failures
           0 unrecognized frame destination
^^^^^^^^   0 data overruns
           0 system buffer unavailable
           0 user buffer unavailable

Large error counters between or on vvvvv/^^^^^ may indicate problems
with the cabling (or the ethernet card itself).

If this is Ok, check for possible reassembly problems on the client
due to low memory condition:

$ netstat -s -p ip
ip:
        111562229 total packets received
        0 bad header checksums
        0 with size smaller than minimum
        0 with data size < data length
        0 with header length < data size
        0 with data length < header length
        21706576 fragments received
---->   0 fragments dropped (dup or out of space)
---->   109 fragments dropped after timeout
        0 packets forwarded
        1021364 packets not forwardable
        512 packets denied access
        0 redirects sent
        0 packets with unknown or unsupported protocol
        92615577 packets consumed here
        90561036 total packets generated here
---->   1 lost packet due to resource problems
        3781800 total packets reassembled ok
        8073161 output packets fragmented ok
        47923501 output fragments created
        0 packets with special flags set

The lines marked with arrows should contain low numbers in
them. As a rule of thumb, if number of dropped fragments is 
within three orders of magnitude of the number of fragments 
received, you'd got a problem and shown tune network buffers.

Finally, bad ethernet controllers are not unheard of. If you
checked everything else, and are convinced that both the
cabling and the kernel network settings are fine, try borrowing
an identical ethernet card from a different system, and checking
whether it fixes the problem.

Regards,

/Serge.P



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

* Re: poor NFS/RPC performance
  1999-03-16  5:00 ` Nick Manka
       [not found]   ` <7copna$8s8$1@panix7.panix.com>
@ 1999-03-19  5:00   ` Eric Werme - replace nospam with werme
  1 sibling, 0 replies; 11+ messages in thread
From: Eric Werme - replace nospam with werme @ 1999-03-19  5:00 UTC (permalink / raw)


nick@grendel.nmti.com (Nick Manka) writes:

>In article <36ED6A9D.2F6957A1@gtri.gatech.edu>,
>	Damon Love <damon.love@gtri.gatech.edu> writes:

>> we have 10 DEC Alpha 400Mhz 164 machines running DC UNIX 4.0D.
>> we are running all of them on a 100Mbit Ethernet connected with a 3COM
>> switch.
>> 
>> we are getting pitiful NFS performance... at best 400kb per second!

>We've had similiar problems.

>Patchkit 3 seemed to help us, a bit. Going back to NFSv2 (mount
>argument) "fixed" the problem, or at least worked around it, but we
>aren't happy about it.

That's bizarre.  Perhaps the poor performance of NFS V2 writes is
opening gaps in the packet flow that let the other end get something
in.  Do you have problems with NFS over TCP or FTP?

About the only place where V2 should perform better is if you do
filename completion (e.g. in shells or emacs) on large directories.

	-Ric
--
<>    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] 11+ messages in thread

* Re: poor NFS/RPC performance
  1999-03-18  5:00       ` Damon Love
  1999-03-18  5:00         ` Serguei Patchkovskii
@ 1999-03-19  5:00         ` Eric Werme - replace nospam with werme
  1 sibling, 0 replies; 11+ messages in thread
From: Eric Werme - replace nospam with werme @ 1999-03-19  5:00 UTC (permalink / raw)


Damon Love <gte822f@prism.gatech.edu> writes:

>ok, here's an update...  we have 2 solaris SPARC 2.6 Ultra 1 machines and
>4 LINUX Redhat 5.2 300Mhz AMD K6-2 machines mounting from the same
>DEC server...  all of them get around 2.5 Mbytes for NFS traffic...

>The slow down is really only from DEC to DEC machine (all 4.0D)...

Even Linux writing to DEC is good?  I've heard of problems due to
small wsize and lack of biod/nfsiod support.  The Linux man page
recommends mounting with rsize=8192,wsize=8192.  (Linux's default is 1024.)

>Also, when we are simply doing one file copy, we routinely get
>"NFS server not respsonding, still trying.  NFS server OK..."

That only happens if the client has to retransmit a request several times.
I'd start with looking at "netstat -i -s" data and would also time
streaming file transfers, e.g. copy a big file with ftp to /dev/null.
If the FTP data stream struggles in one direction or the other, there's
no point in looking at NFS, the problem will be with the network fabric.

>it's like it goes to sleep...  When I watch the server hard drive light when
>we are doing NFS tests it looks like it tramsits a little data waits,
>transmits
>a little more, waits...  These waits are maybe one second in duration!

Typical retransmit behaviour.

	-Ric Werme
--
<>    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] 11+ messages in thread

* Re: poor NFS/RPC performance
  1999-03-17  5:00     ` Nick Manka
  1999-03-18  5:00       ` Damon Love
@ 1999-03-19  5:00       ` Thor Lancelot Simon
  1999-03-19  5:00         ` Thor Lancelot Simon
  1 sibling, 1 reply; 11+ messages in thread
From: Thor Lancelot Simon @ 1999-03-19  5:00 UTC (permalink / raw)


In article <7cp4t5$jbt@web.nmti.com>, Nick Manka <nick@baileynm.com> wrote:
>In article <7copna$8s8$1@panix7.panix.com>,
>	tls@panix.com (Thor Lancelot Simon) writes:
>
>>>We've had similiar problems.
>>>
>>>A 3.2G machine could get about nine times the NFSv3 traffic to other
>>>machines as our 4.0D machine.
>> 
>> Are you *sure* both the switch and the machines running 4.0 agree on the
>> 10/100 and full/half duplex settings for the links to each machine?
>
>That was the first thing we checked :>

If possible, check it again.  Do the following test:

1) Set both sides to *autoselect* both 10/100 and duplex.

See how things work.

2) Set *the switch only* to hardwire it to 100MHz, full-duplex.

See how things work.

3) Set *the host only* to hardwire it to 100MHz, full-duplex.

See how things work.

4) Set both sides hardwired to 100MHz, full-duplex.

(I presume this is how it is now)

It's entirely possible -- I've seen it on other operating systems -- that the
DU 4.0 driver for the Tulip ethernet is botching the Nway negotiation when
it's hard-wired to 100Mb/sec mode or full-duplex mode or both.  Where I've
seen it before, generally option 1) or 2) above works best -- the key is to
make sure the host is set to autoselect.

-- 
Thor Lancelot Simon	                                      tls@rek.tjls.com
	"And where do all these highways go, now that we are free?"



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

* Re: poor NFS/RPC performance
  1999-03-19  5:00       ` Thor Lancelot Simon
@ 1999-03-19  5:00         ` Thor Lancelot Simon
  0 siblings, 0 replies; 11+ messages in thread
From: Thor Lancelot Simon @ 1999-03-19  5:00 UTC (permalink / raw)


In article <7cuap5$qlc$1@panix7.panix.com>,
Thor Lancelot Simon <tls@rek.tjls.com> wrote:
>In article <7cp4t5$jbt@web.nmti.com>, Nick Manka <nick@baileynm.com> wrote:
>>In article <7copna$8s8$1@panix7.panix.com>,
>>	tls@panix.com (Thor Lancelot Simon) writes:
>>
>>>>We've had similiar problems.
>>>>
>>>>A 3.2G machine could get about nine times the NFSv3 traffic to other
>>>>machines as our 4.0D machine.
>>> 
>>> Are you *sure* both the switch and the machines running 4.0 agree on the
>>> 10/100 and full/half duplex settings for the links to each machine?
>>
>>That was the first thing we checked :>
>
>If possible, check it again.  Do the following test:
>
>1) Set both sides to *autoselect* both 10/100 and duplex.
>
>See how things work.
>
>2) Set *the switch only* to hardwire it to 100MHz, full-duplex.
>
>See how things work.
>
>3) Set *the host only* to hardwire it to 100MHz, full-duplex.
>
>See how things work.
>
>4) Set both sides hardwired to 100MHz, full-duplex.
>
>(I presume this is how it is now)
>
>It's entirely possible -- I've seen it on other operating systems -- that the
>DU 4.0 driver for the Tulip ethernet is botching the Nway negotiation when
>it's hard-wired to 100Mb/sec mode or full-duplex mode or both.  Where I've
>seen it before, generally option 1) or 2) above works best -- the key is to
>make sure the host is set to autoselect.
>

Oh -- and one more thing -- if write performance to the server from other
clients is okay, try this test on the DU client that's giving you trouble.

Otherwise, try it on both.

-- 
Thor Lancelot Simon	                                      tls@rek.tjls.com
	"And where do all these highways go, now that we are free?"



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

* Solution Found!
  1999-03-15  5:00 poor NFS/RPC performance Damon Love
  1999-03-15  5:00 ` Serguei Patchkovskii
  1999-03-16  5:00 ` Nick Manka
@ 1999-03-19  5:00 ` Damon Love
  2 siblings, 0 replies; 11+ messages in thread
From: Damon Love @ 1999-03-19  5:00 UTC (permalink / raw)


Thanks to everyone...  the problem was the ethernet
card was not setting itself to full duplex...
when we set it to full duplex at the srm console, the
performance problems went away!

thanks again...
Damon


Damon Love wrote:

> Here is a little background:
>
> we have 10 DEC Alpha 400Mhz 164 machines running DC UNIX 4.0D.
> we are running all of them on a 100Mbit Ethernet connected with a 3COM
> switch.
>
> we are getting pitiful NFS performance... at best 400kb per second!
>
> this is an internal LAN, and I ran all of my timings with no one else
> using any machines...
>
> on machine B who is mounting NFS from machine A I used the default nfs
> parameters...
>




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

end of thread, other threads:[~1999-03-19  5:00 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-03-15  5:00 poor NFS/RPC performance Damon Love
1999-03-15  5:00 ` Serguei Patchkovskii
1999-03-16  5:00 ` Nick Manka
     [not found]   ` <7copna$8s8$1@panix7.panix.com>
1999-03-17  5:00     ` Nick Manka
1999-03-18  5:00       ` Damon Love
1999-03-18  5:00         ` Serguei Patchkovskii
1999-03-19  5:00         ` Eric Werme - replace nospam with werme
1999-03-19  5:00       ` Thor Lancelot Simon
1999-03-19  5:00         ` Thor Lancelot Simon
1999-03-19  5:00   ` Eric Werme - replace nospam with werme
1999-03-19  5:00 ` Solution Found! Damon Love

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