home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / biz / sco / general / 4796 < prev    next >
Encoding:
Internet Message Format  |  1992-12-22  |  5.0 KB

  1. Path: sparky!uunet!noc.near.net!hri.com!spool.mu.edu!sol.ctr.columbia.edu!eff!xenitec!news
  2. From: belal@sco.COM (Bela Lubkin)
  3. Newsgroups: biz.sco.general
  4. Subject: Re: Performance issues revisited
  5. Message-ID: <9212221234.aa29754@scoke.sco.COM>
  6. Date: 22 Dec 92 20:34:32 GMT
  7. Sender: news@xenitec.on.ca (xenitec.on.ca News Administrator)
  8. Organization: [resent by] The SCOGEN gateway and Propagation Society
  9. Lines: 81
  10. Resent-From: mmdf@xenitec.on.ca
  11. Submit-To: scogen@xenitec.on.ca
  12. Cc: uunet!consult!bob@sco.COM
  13. Precedence: bulk
  14.  
  15. Bob Willey wrote:
  16.  
  17. > >        time dd if=/dev/rhd0a of=/dev/null bs=2048 count=8192
  18.  
  19. >        OLD MACHINE                             NEW MACHINE
  20. > 386/33 w/8mb memory 64kcache           486/DX266 w/16mb memory 256k cache
  21. > Ultrastor 12F ESDI controller          Adaptec 1542 SCSI controller
  22. > Maxtor 338mb drive (~ 16ms)            HP 667 SCSI-2 drive (~13ms)
  23. > CMS Enhancement 250mb tape             Archive ST-525 mb tape (SCSI)
  24. >                        Results of above command:
  25. > Real 25.3  user 0.3  sys 5.2           real 1:01.6  user 0.3  sys 3.6
  26. >                  Tape backup results when using CTAR
  27. > Typical:  2.3mb/min                    Typical:  5.8mb/min
  28. > While the backup time is noticeable faster, the dd command for disk transfer
  29. > appears noticeable SLOWER on the new machine???  Is there anything obvious
  30. > in the above configuration that can cause problems?  Is there anything
  31. > special that needs to be done to the Adaptec controller to get better
  32. > performance??  This is very uncomforting since we are upgrading to obtain
  33. > more throughput.
  34.  
  35. Even the slower hard disk transferred 16MB/min. in the `dd` test, so
  36. obviously even a fast tape drive is a bottleneck.  Your backup speed
  37. difference is due to the tape drives used, 'nuff sed.  
  38.  
  39. The SCSI disk may have an internal cache which needs special SCSI
  40. commands to enable (get Roy Neece's SCSICNTL.EXE to mess with that, but
  41. be Vewwy Caewful -- write down *everything* about the drive's current
  42. configuration before setting it to a nonfunctional set of parameters!
  43. I've thoroughly toasted myself once with SCSICNTL)  Many SCSI drives
  44. have such caches, and for reasons I've never been able to fathom,
  45. they're usually disabled from the factory.
  46.  
  47. Relative seek times aren't likely to make a noticable difference.  Most
  48. disks spin at 3600rpm (or the same order of magnitude), which is 16.67ms
  49. per revolution.  Obviously you can't get the data off a track faster
  50. than one revolution.  Also, you're reading consecutive tracks, so you're
  51. getting the "track-to-track" (fastest), not the average seek time.  The
  52. drives might be 4ms vs. 3ms in track-to-track, making only a 1ms
  53. difference out of ~20ms per track, optimum.  That's if the drive doesn't
  54. lose revolutions.  Much more important is the number of physical
  55. 512-byte sectors per track on the drive.  Ignore the translated
  56. parameters, get out the drive manuals and look up physical sectors/track
  57. when formatted 512 bytes/sector; and also rotational speed.  From these
  58. you can work out the fastest possible transfer rate off the disk.
  59.  
  60. Transfer rates are extremely sensitive to block sizes, and sometimes to
  61. raw device vs. block device, and (this one is weird) your results may be
  62. VERY different when accessing the whole-partition device (/dev/hd0a) vs.
  63. a division device (/dev/root), which is how you most likely normally
  64. access your data.  So, try the following variations on both machines.
  65. Make a table of the results.  Post it.
  66.  
  67.   time dd if=/dev/rhd0a of=/dev/null bs=2k count=8192 (original flavor)
  68.   time dd if=/dev/hd0a of=/dev/null bs=2k count=8192  (blk device)
  69.   time dd if=/dev/rhd0a of=/dev/null bs=256k count=64 (raw device, large blk)
  70.   time dd if=/dev/hd0a of=/dev/null bs=256k count=64  (blk device, large blk)
  71.  
  72.   time dd if=/dev/rroot of=/dev/null bs=2k count=8192 (divvy device, raw)
  73.   time dd if=/dev/root of=/dev/null bs=2k count=8192  ( ", blk)
  74.   time dd if=/dev/rroot of=/dev/null bs=256k count=64 ( ", raw, large blk)
  75.   time dd if=/dev/root of=/dev/null bs=256k count=64  ( ", blk, large blk)
  76.  
  77.   time dd if=/dev/rhd00 of=/dev/null bs=2k count=8192 (whole-disk, raw)
  78.   time dd if=/dev/hd00 of=/dev/null bs=2k count=8192  ( ", blk)
  79.   time dd if=/dev/rhd00 of=/dev/null bs=256k count=64 ( ", raw, large blk)
  80.   time dd if=/dev/hd00 of=/dev/null bs=256k count=64  ( ", blk, large blk)
  81.  
  82. That's 12 tests * 2 machines, have fun!  ;-}  Note that the third set
  83. will FAIL on the ESDI drive if there are any bad sectors in the first
  84. 16MB of the drive.  To avoid this you could eyeball your badtrk table,
  85. try to figure out where a 16MB swath of good disk exists, then use
  86. "iseek=#", where #=how many 2k or 256k blocks to skip to get to the good
  87. area; or you could reduce the total size and interpolate results, but be
  88. absolutely sure that the total transfer size is at least one block size
  89. larger than your buffer cache.  DO NOT USE "skip=#"!!  That has a
  90. totally different effect: "iseek=" lseek's in the file; "skip=" *reads*
  91. that much data before beginning the transfer, which will 1) still trip
  92. on the bad sectors, and 2) totally hose your timings.
  93.  
  94. >Bela<
  95.