home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.protocols.nfs
- Path: sparky!uunet!gumby!destroyer!news.iastate.edu!john
- From: john@iastate.edu (John Hascall)
- Subject: Re: NFS packet size
- Message-ID: <C04t4o.K10@news.iastate.edu>
- Sender: news@news.iastate.edu (USENET News System)
- Organization: Iowa State University, Ames, IA
- References: <C01s5x.5Bn@news.iastate.edu> <1992Dec30.231852.22129@phx.mcd.mot.com> <u97b4fc@rhyolite.wpd.sgi.com>
- Date: Thu, 31 Dec 1992 16:14:48 GMT
- Lines: 38
-
- vjs@rhyolite.wpd.sgi.com (Vernon Schryver) writes:
- }mat@phx.mcd.mot.com (Mat Cucuzella) writes:
- }>john@iastate.edu (John Hascall) writes:
- }> >schittel@geo.Uni-Koeln.DE (Christoph Schittel) writes:
- }> >}What is the maximum value for the "rsize" and "wsize" options
- }> >}to make an NFS datagram fit completely into one ethernet packet
- }> >}(max. 1500 byte)?
-
- }> > 1024
-
- }> An Ethernet frame size is 1514. Subtracting Ethernet header (6+6+2), IP
- }> header (20) and UDP header (20), that leaves 1460. I'm not sure if RPC
- }> headers have to be included in this, but I believe 1460 or slightly
- }> less will still keep everything in one Enet packet.
-
- }After the UDP header and before the data, an NFS READ REPLY message
- }tends to have about 108 bytes of RPC and NFS header.
-
- }Powers of 2 tend to be nice choices for rsize and wsize because powers
- }of 2 tend to be nice multiples or divisors of the "natural" buffer
- }sizes disk cache in the client as well as the server.
-
- Under Ultrix at least (and I presume other BSDish systems)...
-
- mount(8nfs)
- The number of bytes in
- a read or write request can be set with the rsize and wsize
- options. The values for rsize and wsize must be between 512 and
- 8192, and be a multiple of 512.
-
- Near as I can tell, the only values which make sense are 1024, 4096 & 8192.
-
- John
- --
- John Hascall ``An ill-chosen word is the fool's messenger.''
- Systmes Software Engineer
- Project Vincent
- Iowa State University Computation Center + Ames, IA 50011 + 515/294-9551
-