Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* Re: NFS3 timeout problems between OSF 3.0 and SGI
       [not found] ` <werme.813846127@alingo.zk3.dec.com>
@ 1995-10-19  4:00   ` Jonathan Rozes
  1995-10-21  4:00     ` Dan Mosedale
  0 siblings, 1 reply; 3+ messages in thread
From: Jonathan Rozes @ 1995-10-19  4:00 UTC (permalink / raw)


In article <werme.813846127@alingo.zk3.dec.com>,
	werme@alingo.zk3.dec.com (Eric Werme) writes:
>jrozes@gumbo.tcs.tufts.edu (Jonathan Rozes) writes:

[I'm adding comp.protocols.nfs to this thread in hopes of getting more
feedback from the NFS-savvy. See comp.sys.sgi.admin or comp.unix.osf.osf1
for the original problem description.]

>>The client is an Alpha 3000 M800 with ... 32 nfs I/O daemons.

>This might be the problem.  You are probably doing 8KB writes, which
>turns into 2 FDDI fragments per write.  With 32 I/O daemons, plus your
>5 tar processes, you can have 37 outstanding writes, or 74 fragments.  I don't
>know about SGI, but BSD's network input queues only hold 50 fragments.  If
>SGI does the same, and if their nfsds are slow to pick up requests, Irix
>could be discarding many of your requests.  On the server, run "netstat -s"
>and look under IP for discarded fragments.  That would be good evidence.
>On the other hand, if Irix will buffer more than 74 fragments, I'm not
>sure what to look for.  Perhaps running out of mbufs?

I've changed the client to use 4k reads and writes. I've also decided that
the problem is definitely on the SGI side of things. Watching carefully
I can now run a test and watch all four CPUs go into an i/o wait every
few seconds, with the waits being long enough every once in a while to
cause the client to think the server is hung.

>The duphits implies that the server has handled a write, but so slowly that
>the client timed out and retransmitted the request.

This makes sense with what I've observed. It also jives with the bad
RPC xIDs the client reports.

>> Also note the high number of timeouts on the Alpha.

>Typical of lost messages or slow server.

Again, this also supports i/o bound processes. At this point I mostly
need to hear from SGI gurus, as there is a gross lack of documentation
on the NFS server. In fact the only adjustable kernel symbol listed in
the manuals is mispelled (svc_maxdupreqs, bug #314311 reported by me)
and has an uninformative description of how it affects NFS activity.

So, the things I am most curious about:

1. How can I control the NFS server so that it doesn't wait so long
   to actually write out the cached requests?

2. The rtnetd process: it continually runs as one of the five most
   intensive processes on the system. This bothers me, since we have
   no real-time processes on the system. I can't disable it, since the
   kernel starts it up on its own for MP systems (refer to call number
   0523718 is you work at SGI). More info on this would be appreciated.

3. The disks on the SGI are a Challenge RAID-5 (four disks in one set).
   Should I expect to see such slow i/o throughput to a RAID device?
   What tools can I use to monitor the RAID system?

4. A more detailed explanation of the svc_maxdupreqs variable. Does
   lowering the number of cached NFS requests force the NFS server
   to write out its changes more frequently, or does it simply cause
   the server to encounter buffer overflows? A more detailed 
   explanation of kernel-level NFS stuff would be most helpful.

Much thanks to Ric for his advice. Now it's SGI's turn ;-)

jonathan
-- 
+++ Jonathan Rozes, Unix Systems Programmer, Tufts University
++  jrozes@tcs.tufts.edu, http://gumbo.tcs.tufts.edu/
+   Mind Over Liver: The liver probably contains 100 million cells, but
    1,000 livers do not add up to a rich inner life. <GDF:SA 09/92>




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

* Re: NFS3 timeout problems between OSF 3.0 and SGI
  1995-10-21  4:00     ` Dan Mosedale
@ 1995-10-21  4:00       ` Dave Olson
  0 siblings, 0 replies; 3+ messages in thread
From: Dave Olson @ 1995-10-21  4:00 UTC (permalink / raw)


dmose@neon.netscape.com (Dan Mosedale) writes:
| I had a short discussion about this a while back, and (if my
| recollection is right) this is the deal: svc_maxdupreqs is not a
| performance thing, but instead deals with the NFS idempotency cache.
| The NFS protocol is supposed to guarantee that if a client doesn't
| hear back from a server for a while and resends a request such as a
| write or a link, that that request doesn't get executed twice.  The
| way that this is "guaranteed" is that the server remembers the last X
| requests that it has received, and if it receives a duplicate, it
| throws it away.  svc_maxdupreqs is the size of this cache.  If the SGI
| kernel notices that things are rolling out of the cache (what it
| considers) too quickly, it spits a warning to the console suggesting
| to you that you the up the size.

Exactly.  If a server is getting hit with lots of requests,
and some are timing out from the client side for some reason,
and getting reset, you might need to bump this, to avoid double
replies.
--

The most beautiful things in the world | Dave Olson, Silicon Graphics
are those from which all excess weight | http://reality.sgi.com/employees/olson
has been removed.  -Henry Ford         | olson@sgi.com



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

* Re: NFS3 timeout problems between OSF 3.0 and SGI
  1995-10-19  4:00   ` NFS3 timeout problems between OSF 3.0 and SGI Jonathan Rozes
@ 1995-10-21  4:00     ` Dan Mosedale
  1995-10-21  4:00       ` Dave Olson
  0 siblings, 1 reply; 3+ messages in thread
From: Dan Mosedale @ 1995-10-21  4:00 UTC (permalink / raw)


jrozes@tcs.tufts.edu writes:
> I've changed the client to use 4k reads and writes. I've also decided that
> the problem is definitely on the SGI side of things. Watching carefully
> I can now run a test and watch all four CPUs go into an i/o wait every
> few seconds, with the waits being long enough every once in a while to
> cause the client to think the server is hung.

If you're running IRIX 5.3, it's almost certainly worth calling SGI and
getting their latest mega-NFS rollout patch.  There are a LOT of
bug-fixes in recent versions of this.

> 4. A more detailed explanation of the svc_maxdupreqs variable. Does
>    lowering the number of cached NFS requests force the NFS server
>    to write out its changes more frequently, or does it simply cause
>    the server to encounter buffer overflows? A more detailed 
>    explanation of kernel-level NFS stuff would be most helpful.

I had a short discussion about this a while back, and (if my
recollection is right) this is the deal: svc_maxdupreqs is not a
performance thing, but instead deals with the NFS idempotency cache.
The NFS protocol is supposed to guarantee that if a client doesn't
hear back from a server for a while and resends a request such as a
write or a link, that that request doesn't get executed twice.  The
way that this is "guaranteed" is that the server remembers the last X
requests that it has received, and if it receives a duplicate, it
throws it away.  svc_maxdupreqs is the size of this cache.  If the SGI
kernel notices that things are rolling out of the cache (what it
considers) too quickly, it spits a warning to the console suggesting
to you that you the up the size.
-- 
Dan Mosedale                               Systems Exorcist
dmose@netscape.com                         Netscape Communications Corp.



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

end of thread, other threads:[~1995-10-21  4:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <45mjj2$kp0@d2.tufts.edu>
     [not found] ` <werme.813846127@alingo.zk3.dec.com>
1995-10-19  4:00   ` NFS3 timeout problems between OSF 3.0 and SGI Jonathan Rozes
1995-10-21  4:00     ` Dan Mosedale
1995-10-21  4:00       ` Dave Olson

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