home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / protocol / nfs / 3025 < prev    next >
Encoding:
Text File  |  1992-12-31  |  2.0 KB  |  50 lines

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