Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: werme@alingo.zk3.dec.com (Eric Werme)
Subject: Re: NFS problems on AlphaServer 1000 OSF/1 3.2
Date: 1995/07/31	[thread overview]
Message-ID: <werme.807196964@alingo.zk3.dec.com> (raw)
In-Reply-To: 3v91ja$dr9@news.duke.edu

gallatin@cole.isds.duke.edu (Andrew Gallatin) writes:

>What's changed from 3.0 -> 3.2?  The nfsd(8) man page talks about the
>nfsd daemons being implemented as kernel threads.  Is this it?

There may be more in the release notes.  Not too much happened to the
client.  Server changes were largely driven to improve SMP performance
and required few documentation changes.

On the output side, we got the Sun fastsend path running.  This takes
kernel RPC messages (so it does include the NFS client) and creates
its own UDP and IP headers, fragmenting as it goes.  The fragments are
then delivered to code that puts on the Ether/FDDI/whatever headers and
puts them on the driver output queue.  Not only is this faster, it
avoids several socket locks and an absolutely awful BSD TCP/IP
output problem that stops UDP *input* processing while a message is being
sent to a destination on an "unconnected" UDP socket.  (The destination
IP address gets stuffed in the protocol control block in the same area
where input processing looks to match message and socket!)  On the
server input side we intercept messages before udp_input() has even checksummed
the messages and put them on a queue of NFS messages.  The server threads
pick them up, checksums them (thereby getting the data in the cache of the
processor that will be using it) and passes them straight to NFS code that
calls an RPC routine to decode them before passing them to the service
routine.  About the only thing the server needs the socket for is to keep port
2049 from being allocated by something else.

>Also, does this mean that only one nfsd is woken up to service a
>request, as opposed to all of them?

Digital Unix has never woken up all the server threads/daemons to process
each request!

The main things the server threads buy us are lower memory cost (each thread
needs two pages of memory) and quicker context switch time (less page
table setup).
-- 
Eric (Ric) Werme         |  werme@zk3.dec.com
Digital Equipment Corp.  |  This space intentionally left blank.



  reply	other threads:[~1995-07-31  4:00 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-07-14  4:00 NFS problems on AlphaServer 1000 OSF/1 3.2 Timothy M. Wieman
1995-07-18  4:00 ` Helin Jukka
1995-07-19  4:00   ` Eric Werme
1995-07-20  4:00     ` Helin Jukka
1995-07-21  4:00       ` Eric Werme
1995-07-21  4:00   ` Thomas Leitner
1995-07-21  4:00   ` Robert Schuhl
1995-07-24  4:00     ` Eric Werme
1995-07-27  4:00   ` Daniel S. Riley
1995-07-27  4:00     ` Andrew Gallatin
1995-07-31  4:00       ` Eric Werme [this message]
1995-07-19  4:00 ` Eric Werme
read-only archive

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