home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 2: PC / frozenfish_august_1995.bin / bbs / d07xx / d0754.lha / SmartDisk / ReadMe < prev    next >
Text File  |  1992-11-05  |  3KB  |  81 lines

  1.  
  2. This is SmartDisk1.3.1, written by David Le Blanc.
  3.  
  4. It is an '8-Way set associative' cache, with 8 sets, lines of 4 sectors with
  5. prefetch, and 32 lines. If you under stand cache jargon, then you'd know that
  6. adds up to:
  7.  
  8. 32*4*8*512 = 524288 or 512K and sectors are 'prefetched' four at a time.
  9.  
  10. The frefetch strips time of program loading and directories. It may 
  11. work against you on a heavily fragmented disk, but there is a general
  12. noticable gain in performance EVEN when the data you want is not in
  13. the cache.
  14.  
  15. So, this cache uses 512k, which gets allocated as the cache expands.
  16. There are a few limitations, but thats only because all parameters are
  17. hard coded into the source.
  18.  
  19. | Since you cannot specify the type of drive you have, there are three versions
  20. | in the archive.
  21.  
  22. | SmartDisk.xt      : Any xt.device user (A590 xt/ide drive)
  23. | SmartDisk.scsi    : Any scsi.device user, (a590 scsi, A2091 etc)
  24. | SmartDisk.gvpscsi : Any gvpscsi.device user, namely all GVP controllers.
  25. ^ Obsolete.
  26.  
  27. Arguments:
  28.  
  29. SmartDisk <devicename> <unit>
  30.  
  31. ******** ******** ******** ******** ******** ******** ******** ********
  32.  
  33. I Must put a note in here to warn users with multiple drives. THIS
  34. PROGRAM WILL FAIL on a system which uses the same device (eg scsi.device)
  35. for many physical units. The reason is that it patches the device 'BeginIO'
  36. vector, effectively catching calls to read ANY unit, but it does not
  37. internally differentiate amongst different devices. The reason is simple,
  38. there is not indication of the 'unit' in the IOStdReq structure. 
  39.  
  40. (There is a 'Unit' pointer but that is device private and I'd be stupid
  41. to depend on it :-)
  42.  
  43. The effect is that if a read from unit 1 gets cached, the same read to 
  44. unit 0 may grab an entry from the cache which actually came from unit
  45. 1! (can you spell BOOM!!) 
  46.  
  47. BE WARNED!
  48.  
  49. ******** ******** ******** ******** ******** ******** ******** ********
  50.  
  51.  
  52.  * SmartDisk 1.3.1 
  53.  * 
  54.  * Added code to grab device and unit from the command line.
  55.  * Removed 2.0 dependent code which had crept in. (CreateMsgPort() instead of
  56.  * CreatePort() for example)
  57.  *
  58.  * SmartDisk 1.3.
  59.  *
  60.  * Created by David Le Blanc 29/10/91 Absolutely no copywrite. But if you improve
  61.  * it, please send me a new version (with source!) 
  62.  * 
  63.  * Some performance quotes: (Doesn't everyone make these??)
  64.  * Background:  I have a directory called MAN: which has 355 manuals.
  65.  *
  66.  * WARNING: These are bad examples, since a 'dir' reads the disk, then sorts the
  67.  * contents, then writes the data to the screen. These times include the sorting
  68.  * and output of the directory. This sorting and output time is in the order
  69.  * of 1.5 to 2 seconds.
  70.  *
  71.  * Normal DIR MAN:        12 seconds
  72.  * Cache enabled but empty      9  seconds (prefetch does work!) 
  73.  * Cache primed                 5  seconds.
  74.  *
  75.  * With a slower drive and/or faster machine these times can only improve.
  76.  * I have a drive capable of 800k/sec on my unaccelerated A500. Those with
  77.  * a 150K/sec A590 would notice a greater performance boost. Same for those
  78.  * with 'bloody fast machines' (grumble :) If I was REALLY worried about making
  79.  * the statistic look good, then I'd test it on an A590.
  80.  *
  81.