home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / benchmar / 1661 < prev    next >
Encoding:
Internet Message Format  |  1992-11-11  |  6.1 KB

  1. Xref: sparky comp.benchmarks:1661 comp.arch.storage:764
  2. Path: sparky!uunet!cbmvax!jesup
  3. From: jesup@cbmvax.commodore.com (Randell Jesup)
  4. Newsgroups: comp.benchmarks,comp.arch.storage
  5. Subject: Re: Disk performance issues, was IDE vs SCSI-2 using iozone
  6. Message-ID: <36995@cbmvax.commodore.com>
  7. Date: 12 Nov 92 07:59:30 GMT
  8. References: <1992Nov10.170022.21624@igor.tamri.com> <1992Nov11.064154.17204@fasttech.com> <1992Nov11.210749.3953@igor.tamri.com>
  9. Reply-To: jesup@cbmvax.commodore.com (Randell Jesup)
  10. Organization: Commodore, West Chester, PA
  11. Lines: 111
  12.  
  13. jbass@igor.tamri.com (John Bass) writes:
  14. >Take the following track layout, where each group is a cyl of 5 heads, and
  15. >the current head position is on the second group, shown as wraparound linear:
  16. >(Req is queued request, Free is free block, Last is just completed request)
  17.  
  18. <deleted figure with 7 requests for a 4-cylinder area of disk queued, all
  19.  scattered>
  20.  
  21. >Short Track (1-3) seeks are under 1.00ms with no settling time (not a stepper).
  22.  
  23. >Common wisdom would be to service with C-SCAN, as 12/0/1, 12/3/14, 13/0/12,
  24. >13/1/2, 13/4/10, 10/0/8, 10/3/4, and 11/2/6 consuming 5.5 revs and 91ms.
  25. >
  26. >With a rotationally sensitive filesystem and driver, minimal service time
  27. >would be the path 13/1/2, 10/3/4, 11/2/6, 10/0/8, 13/4/10, 13/0/12, 12/3/14,
  28. >then 12/0/1 as 1.2 revs and 20ms.
  29.  
  30.     Sounds like the old IPI vs SCSI arguments over whether smart or dumb
  31. controllers are better (which is perhaps very similar to our current
  32. discussion, with a few caveats).  
  33.  
  34.     I would suggest (a) that's a highly contrived example, especially for
  35. the desktop machines that all IDE and most SCSI drives are designed for, (b)
  36. both C-SCAN and most other disksorting algorithms have tradeoffs for the
  37. increase in total-system throughput and decrease in worst-case performance;
  38. FCFS actually performs quite well in actual use (I have some old comp.arch
  39. articles discussing this if people want to see them).  The tradeoffs are
  40. usually in fairness, response time, and average performance (no straight
  41. disksort will help you until 3 requests are queued in the first place).  (c)
  42. Your example also depends on very fast track-to-track stepping times AND
  43. very high locality of the requests (within your fast stepping distance), and
  44. becomes less relevant on drives with large numbers of cylinders and fast
  45. spin times.
  46.  
  47.     For most desktop machines, even if we ignore single-tasking OS's,
  48. probably 99.44% of the time when disk requests occur there are no other
  49. currently active requests.
  50.  
  51. >In addition, if the filesystem were then presented with storing a 9K
  52. >file it would use 12/3/4 to 12/3/12 (best fit nearest active region).
  53. >A big win over using 10/0/[2,5,8], 10/3/[4,8], 10/4/6-7, and 11/0/8 as
  54. >convential filesystem with a bitmap would tend to allocate.
  55.  
  56.     Any best-fit will produce better read and rewrite performance over
  57. a first-fit, bitmapped or not, at the potential cost of increased fragmentation
  58. and slower block allocation (especially if the bitmap or free-list isn't all
  59. kept in memory at once).
  60.  
  61. >I think that zoned recording is great ... and geometry hiding is bad.
  62. >Most zoned drives do not CURRENTLY allow for the option of turning
  63. >off the mapping.
  64.  
  65.     Do you mean IDE or SCSI?  SCSI drives allow you to ask about the
  66. mapping via Mode Sense pages.  No problem.
  67.  
  68. >  If more filesystems and drivers used positional clues
  69. >and could handle variable track lengths, it would be a minor firmware
  70. >issue to have a direct mode. I don't see this as a significant problem,
  71. >certainly any mfgr could spec such a requirement as part of purchase at
  72. >near zero cost per unit.
  73.  
  74.     And large cost in software for close to NIL gain.  For "big" 
  75. (real multi-user) machines, this might well be some amount of gain, though
  76. I'm still doubtful about whether it would be worth the trouble.  For "disk
  77. farms", it's a good bet it's worth trying tricks like this.  Not for desktops.
  78. I also have my doubts about your "zero cost" statement...
  79.  
  80. >IDE drives should support the WD1010 SCAN_ID command allowing the driver
  81. >locate current head position ... no such SCSI feature exists.
  82.  
  83.     No such IDE feature exists.  This _was_ a discussion of IDE vs. SCSI.
  84. As far as I know, no one has even proposed such a feature to the CAM-ATA
  85. committee, let alone implemented it.  The only positional information is the
  86. index bit in the status register (I suspect many drives just leave it 0).
  87.  
  88. >Additional issues are control of sector skewing to facilitate head/cyl
  89. >switching and group/request interleave factors ... Low Level format ability is
  90. >very important when the drive makes the wrong choices as defaults ... again
  91. >any volume system vendor can request optimal layouts at minimal per unit costs.
  92.  
  93.     Low-level formatting on some (many?) modern drives can't be done
  94. outside a factory ("format" just does logical formatting).  Some totally
  95. ignore format requests.
  96.  
  97. >Given 1974-1986 hardware, most of the current filesystem design issues
  98. >were correct .... to just OK. Given 1992-1995 hardware, the same tradeoffs
  99. >are mostly WRONG. Performance comes by DESIGN, not tuning, selection, or
  100. >non-reflective evolution. Too much performance engineering is making do with
  101. >existing poor designs ...  instead of designing how it should be.
  102.  
  103.     While your statement is correct, I think you're guilty here also.
  104. Just because method/hack/whatever was a good choice for V7 Unix running RPS
  105. drives, doesn't mean that that approach is (as) effective today.  Technologies
  106. change, performance/cost ratios change, etc.  I also think your opinions
  107. come from a large, heavy-io multi-user systems background; which while 
  108. interesting for those working with such systems is pretty irrelevant to
  109. the desktop systems that IDE and (most of) SCSI are designed for.
  110.  
  111. >I make my living re-evaluating other peoples past design decisions with
  112. >today's constraints ... most people learn/remember only the solutions (how's)
  113. >...  it's much more important to learn/explore the issues (why's)!
  114.  
  115.     Quite true.  Don't forget to re-evaluate your own every so often,
  116. though.
  117.  
  118. -- 
  119. To be or not to be = 0xff
  120. -
  121. Randell Jesup, Jack-of-quite-a-few-trades, Commodore Engineering.
  122. {uunet|rutgers}!cbmvax!jesup, jesup@cbmvax.cbm.commodore.com  BIX: rjesup  
  123. Disclaimer: Nothing I say is anything other than my personal opinion.
  124.