home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / clients / 253 < prev    next >
Encoding:
Internet Message Format  |  1992-12-30  |  1.9 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!rutgers!rochester!rocksanne!news
  2. From: weltman@adoc.xerox.com (Rob Weltman)
  3. Newsgroups: comp.client-server
  4. Subject: NFS and RPC
  5. Keywords: NFS,RPC
  6. Message-ID: <1992Dec30.155939.13344@spectrum.xerox.com>
  7. Date: 30 Dec 92 15:59:39 GMT
  8. Sender: news@spectrum.xerox.com
  9. Reply-To: weltman@adoc.xerox.com
  10. Organization: Xerox PARC, Palo Alto, CA
  11. Lines: 43
  12.  
  13.  
  14. Why is NFS so slow?
  15. -------------------
  16.  
  17.   I followed the initial discussion in this group about RPC, TCP, and
  18. UDP with great interest. At about the same time, a friend did a series
  19. of benchmarks in a network of Sparcstation 2's, to compare the file
  20. transfer performance using TCP sockets, NFS (write to remote-mounted
  21. disk), and RPC using TCP. The files were large (around 2 MB or larger).
  22. RPC using TCP was slightly slower than straight sockets using TCP, as
  23. expected. What was surprising was that it was so slow to just do a
  24. large write to the open file descriptor of a remote mounted file.
  25.  
  26.   It turned out to be much faster to:
  27.  
  28.   - have a small server process on the remote machine open a file there
  29.   - transfer the file to the remote process with RPC or socket
  30.   - have the remote process write to the file
  31.  
  32.   Some improvement over the open/write to the remote file was obtained
  33. by mmapping the remote file instead, but this is still slower than using
  34. the remote process.
  35.  
  36.   Can NFS be tweaked for better performance? Are there other settings
  37. that affect NFS performance this drastically?
  38.  
  39.   Thanks for any clues!
  40.  
  41. Rob
  42.  
  43.  
  44.  
  45. ---
  46.  
  47. ---------------------------------------------
  48. | Rob Weltman                               |
  49. | Xerox                                     |
  50. | 3400 Hillview Ave, building 5             |
  51. | Palo Alto, CA  94303                      |
  52. |                                           |
  53. | weltman@adoc.xerox.com                    |
  54. | phone (415)-813-7477   fax (415)-813-6792 |
  55. ---------------------------------------------
  56.