From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f678f,5daedf98b45839e X-Google-Attributes: gidf678f,public X-Google-Thread: fee84,5daedf98b45839e X-Google-Attributes: gidfee84,public From: werme@alingo.zk3.dec.com (Eric Werme) Subject: Re: NFS problems on AlphaServer 1000 OSF/1 3.2 Date: 1995/07/31 Message-ID: #1/1 X-Deja-AN: 107284831 references: <1995Jul14.233249.17238@isac.hces.com> <3ugt82$g4i@cc.tut.fi> <3unuq7$idm@fstgds15.tu-graz.ac.at> <3v91ja$dr9@news.duke.edu> organization: Digital Equipment Corporation reply-to: werme@zk3.dec.com newsgroups: comp.unix.osf.misc,comp.unix.osf.osf1 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.