home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / protocol / nfs / 1958 < prev    next >
Encoding:
Internet Message Format  |  1992-07-27  |  3.4 KB

  1. Path: sparky!uunet!mcsun!uknet!warwick!str-ccsun!strath-cs!baird!jim
  2. From: jim@cs.strath.ac.uk (Jim Reid)
  3. Newsgroups: comp.protocols.nfs
  4. Subject: Re: NFS I/O Ops/seconds
  5. Message-ID: <JIM.92Jul27180010@hunter.cs.strath.ac.uk>
  6. Date: 27 Jul 92 17:00:10 GMT
  7. References: <1992Jul22.061146.15641@u.washington.edu> <numb.711969731@root.co.uk>
  8.     <JIM.92Jul27122141@hunter.cs.strath.ac.uk>
  9.     <nqr74rg@rhyolite.wpd.sgi.com>
  10. Sender: news@cs.strath.ac.uk
  11. Organization: Computer Science Dept., Strathclyde Univ., Glasgow, Scotland.
  12. Lines: 57
  13. Nntp-Posting-Host: hunter
  14. In-reply-to: vjs@rhyolite.wpd.sgi.com's message of 27 Jul 92 15:16:24 GMT
  15.  
  16. In article <nqr74rg@rhyolite.wpd.sgi.com> vjs@rhyolite.wpd.sgi.com (Vernon Schryver) writes:
  17.  
  18.    In article <JIM.92Jul27122141@hunter.cs.strath.ac.uk>, jim@cs.strath.ac.uk (Jim Reid) writes:
  19.    > In article <noe56po@rhyolite.wpd.sgi.com> vjs@rhyolite.wpd.sgi.com (Vernon Schryver) writes:
  20.    > 
  21.    >    An NFS server or client on FDDI is intrinsically faster than a similar
  22.    >    machine over ethernet.  This is because it takes significantly fewer
  23.    >    host cycles to generate 1 or 2 UDP/IP datagrams for a 4K or 8K read or
  24.    >    write than to generate 3 or 6.  
  25.    > 
  26.    > Yes, but..... 
  27.    > 
  28.    > While what you say is true, the benefits of lower protocol processing
  29.    > are negligible. This maybe saves 1000 instructions or so (a whole 30
  30.    > microseconds of CPU on the average workstation these days) for perhaps
  31.    > 20% of the server's NFS operations. I suspect that this will be lost
  32.    > in the noise when compared with the CPU overhead of actually servicing
  33.    > the NFS request and/or waiting for the disk.
  34.  
  35.    Well, you're right about the effects of the mix.  However, you're wrong
  36.    about the potential of saving only 1000 instructions.
  37.  
  38. Well, considering that I plucked the number out of thin air, this is
  39. probably not surprising. Maybe your implementation takes more (or
  40. less) instructions. However, it should take around 1000 instructions
  41. or so for the typical RISC chip to take an NFS request off the network
  42. interface hand it off to the NFS code (or push a reply back out). Even
  43. if the number was twice that amount, it would still be dwarfed by the
  44. CPU cycles needed to actually *do* the NFS request. And if there was a
  45. disk I/O (~10ms), a factor of 100 on the number of instructions, could
  46. be included without much trouble.
  47.  
  48.    If 
  49.     -your system uses 4KByte pages, 
  50.     -if your NFS implementation happens to use 4K blocks,
  51.     -if your file system happens to like to use 4K buffers,
  52.    and  -if your FDDI hardware handles UDP checksums,
  53.    then you can avoid around 1024 cache-missing loads and stores by using
  54.    "page flipping".  That is the equivalent of 10,000 to 100,000
  55.    instructions per packet.  (The cache miss penalty for an R4K at
  56.    50/100MHz is awesome.)
  57.  
  58. True. Can the SGI kernel really be so dumb as to take loads of cache
  59. misses when computing UDP checksums? If so, we all know what machines
  60. don't make good NFS servers...
  61.  
  62.    I also don't think saving 1000 instructions is anything to sneeze at.
  63.    Saving 1000 instructions would produce a large speed up in SGI NFS
  64.    server.  (We don't yet page-flip.)  Also, remember that 1000
  65.    instructions is not necessarly even close to 30 usec even at 33 MHz,
  66.    unless your primary instruction cache is very large.
  67.  
  68. Hmmm. How big are your instructions? Let's say they are 64 bits long
  69. (or wide). 1000 of them will fit in 8K. This is not large for a cache
  70. these days.
  71.  
  72.         Jim
  73.