SCSI Accelerator 2.1
Low End Mac Reader Specials
Memory To Go Special: MacPro 8 Core Memory 4GB kit $154 / 2GB kit $94, New 2008 iMac 2GB $46. MacBook Pro / MacMini / iMac Intel Core2 DUO 2GB $44 / 1GB $23--Free shipping available.
Download Typestyler, still the Ultimate Styling Tool for Internet, Print and Video Graphics. Works great in Classic with a Native OS X Version on the way. Free Tryout: www.typestyler.com
LA Computer Company: LA Computer Company: Specials on AppleCare, Apple Displays, MacBooks, iMac's, MacBook Pros, Laptop and iPod accessories and more. Apple A/C Adapters for laptops starting at $25.00 Call 1-800-941-7654 or Click Here.
OWC: NewerTech NuPower Batteries for iBook and PowerBooks Designed+Built in USA to run longer, LAST LONGER TOO! Free Battery Recycling Return Label; Quality High-Capacity from $99.95
Mac users can finally play Party Poker for Mac. Not only that, they can also learn how to play PokerStars for Mac.
Laptop Hardware Provided by TechRestore - Overnight Mac & iPod Repairs.
Compare products like desktop computers, laptops, and LCD TVs side by side! All the information and reviews to make the best purchasing decision for a new cell phone GPS products or MP3 players. The Ciao network makes searching products easy for you.
New MacPro Memory 800Mhz With Apple Spec Heat Sink 2GB $104 / 4GB $172 / 8GB $338. Click to Maximize your Macs...
SCSI Accelerator 2.1 is a set of INITs that work with a Mac Plus running a system earlier than System 7 and allows improved SCSI throughput. As a former Plus owner, I will attest to the fact that they really do work. It's been a few years, but I believe I had my hard drive interleaved at 2:1 before I put a Brainstorm accelerator in my Mac Plus, 01.1 after that.
Download SCSI Accelerator 2.1 if you are using a Mac Plus that is not running a System 7.0 or later.
From the Read Me file, dated March 10, 1989
Some one and a half year ago, somebody put on the net an INIT file that was reported to improve SCSI disk performance considerably. However, that file contained a huge bug. Shortly after that I put on the net a quick hack that fixed that bug. Since system 6.0x came out, I noticed that the INIT no longer installed the patches. The reason was that the INIT code checked the piece of code it was going to patch for the occurrence of certain instructions so that it could be sure that it was patching the right thing. After some hacking I found out that the patches were still applicable, but they had to be applied at a different position in the SCSI manager code. Thus, I fixed the INIT to check for both cases and handle them correctly.
In the process, I also added an icon to the INIT, which will only be shown when the patches are really applied. I am sending out the archive below containing several variants of the INIT (see the RED_ME file) and some documentation. In the documentation it is explained how it works and for whom it will work.
From Accelerator.doc, dated March 15, 1989
WHAT SCSI-ACCELERATOR IS ALL ABOUT.
The accelerator works only on a Mac Plus! It enhances the throughput of I/O operations for so called blind read and write operations. Nothing else is affected.
The reason that the performance of these operations can be enhanced is that Apple's code to do these operations is (and must be) suited to handle a variety of disk types. Some of these are slower than others. In the following discussion we will talk about read operations only, but the discussion applies just as well to write operations.
When transferring data to or from a SCSI device, there is no support for hardware handshake on the Mac Plus (there is some on the other Macintoshes). Because of this, the only really safe way to do the I/O is to poll the SCSI chip for the arrival of a new byte each time you need one. Of course this is slow. Therefore Apple introduced the "blind" operations. For blind operations, the system only waits for the arrival of the first byte, the rest of them are read in a small loop which looks like this:
@1 move.b (a1),(a2)+
dbra d6,@1
This means that after every transfer of a single byte, the Macintosh waits at least the time to execute the DBRA (about 10 cycles) before fetching the next byte. This is long enough for even the slowest hard disk that Apple anticipated to have the next byte ready. In fact, most hard disk can deal with a lot less! Reduction of this "dead" time can be achieved by unfolding the loop, i.e. reducing the loop trip count and putting more than a single move.b instruction in the loop body. Of course, if we put two moves right next to each other, we get the fastest transfer that is possible (knowing that we do not have a DMA controller). This might be too fast for some hard disks, so it may well be that we have to put one or more NOP instructions between each two move.b instructions. The execution time of a NOP is only 4 cycles however, much less than for the DBRA and thus, throughput can be increased even if we need 2 NOPs per move.b. By increasing the number of move.b instructions in the loop body, we further decrease the looping overhead, leading to increased performance, but of course, also to more use of memory for the code.
Since the loop illustrated is 6 code bytes long, there is just enough place to replace the loop with a JSR instruction to a patched version of the loop that applies these techniques. This is exactly what the SCSI-Accelerator does. The reason that this does not improve performance on the Mac SE or II/IIx is that those machines support a sort of pseudo DMA transfer mode that already takes care of getting in the bytes as soon as they arrive. For this reason, the accelerator INIT refuses to install itself on anything other than a Mac Plus.
HOW TO USE IT.
As said before, if you do not operate a Mac Plus, forget it, it will not install!
If you are using a Mac Plus, the thing to do is to find out what kind of unfolded loop will still work for your configuration. This depends mainly on two things:
disk type(s) and processor (in case you operate an accelerator board). For this reason, several variants of the INIT code have been provided. They are all named SCSI-Accel-r<x>w<y>s<z>. Here the <x>, <y> and <z> are single digits meaning:
<x> The number of NOPs inserted after each move.b in the loop body for reading. <y> The number of NOPs inserted after each move.b in the loop body for writing. <z> The number of move.b instructions in the loop body is equal to 2^<z>
This means that in general you should use the INIT with the lowest <x> and <y> that still works with your configuration. Once you know which one to use, the next thing to do is to decide how you want to trade of memory and speed by choosing the <z> that you want to use. In general z=5 works quite well.
You find out which <x> and <y> version to use by putting one of the INITs in your system folder and rebooting. If the boot works it is quite likely that that version works for you. Test this by duplicating a file with the finder.
You should start to test this with a variant with <x> and <y> large. If it works you can progressively try out lower numbers. Don't worry, during boot the disk is only read and even if the Mac crashed (which is the usual symptom of a <x>,<y> which is too low), no real harm will be done.
The code in this patch should work with all disks (providing you choose the right <x> and <y>. Disks with block sizes that are a multiple of 2^<z> work fastest, but any other block size will be handled correctly (for those of you that have disks that operate with tags). The original accelerator worked only with 512 bytes/block disks.
HOW GOOD DOES IT WORK?
Since the SCSI manager read and write blind operations are patched, you will not get improved performance if your disk's driver does not use the SCSI manager. In that case it is quite likely that the driver will already do the same kind of optimalization as suggested here, so there won't be much to gain here.
Supposing your driver *does* use the SCSI manager, performance will improve, depending on the type of disk you have. An example:
Using a HD SC80 (Quantum Q280) disk with my own custom driver that *does* use the SCSI manager we get the following DiskTimer II results:
Variant Reads Writes Seeks none 106 105 18 r0w0s5 63 67 18 r1w1s5 83 82 18
The SC 80 is a disk which is formatted with a 1:1 interleave. Its controller caches a complete disk track though, hence the almost twofold improvement. For a Rodime RO632 (Some Apple HD 20's) and the same driver we get:
Variant Reads Writes Seeks none 160 161 52 r0w0s5 109 107 52 r1w1s5 110 108 52
This disk is quite a bit slower, but still there is improvement. What I have not yet tested is what happens if, in addition to using r0w0s5, I also reformat the disk with a lower interleave factor. It might very well be that because of the improved data transfer rate, the Mac Plus can keep up with an interleave that is one lower. In that case, performance would improve even more.
Apple's drivers also use the SCSI manager, so the INIT should at least work with that software. It is known that some Rodime drivers bypass the SCSI manager. You will have to try and measure to see whether or not the INIT works for you. In general: just try and see. Included in this package is DiskTimer II so that you can check the results yourself. [NOTE: DiskTimer II is no longer included. DK]
Have fun, Dolf
- Dolf Starreveld
- Department of Mathematics and COmputer Science
- University of Amsterdam
- Kruislaan 409
- 1098 SJ Amsterdam
- The Netherlands
- Phone: +31 20 592 5022
- E-mail: dolf@uva.UUCP (...!uunet!mcvax!hp4nl!uva!dolf for oldies)
Recent Content on Low End Mac
- Toward a better computer keyboard, Dan Knight, Mac Musings, 07.23. Today's standard computer keyboards have obsolete keys, poorly placed ones (Caps Lock), and aren't designed for the way we work today.
- The Old Mac blues, Tamara Keel, Digital Fossils, 07.23. Intel Macs are tempting, but the Power Mac 7100 will be not one more iota obsolete tomorrow than it is today.
- Best Intel iMac deals, Low End Mac Deals, 07.23. Used 17" 1.83 GHz, $699; 2.0, $800; 20" 2.16, $750; refurb 20" 2.0, $949; 2.4, $999; 2.66, $1,299; 24" 2.16, $1,199; 2.4, $1,349; 2.8, $1,549; 3.06, $1,899; more.
- Best 15" PowerBook G4 deals, Low End Mac Deals, 07.23. Used 1 GHz SuperDrive, $600; 1.25 Combo, $600; SD, $650; 1.33 Combo, $640; 1.5 SD, $675; 1.67, $730; hi-res, $800.
- Best 17" PowerBook G4 deals, Low End Mac Deals, 07.23. Used 1.33 GHz, $800; 1.5 GHz, $859; 1.67 GHz, $910.
- Mac of the Day: 17" iMac G4/800 MHz, July 2002 - The iMac 'grows up' with a 17" 1440 x 900 display.
- List of the Day: G4 'Books an email list for G4 iBooks and PowerBooks.
- July 23 in LEM history: 99: The price is right - 01: Bigger hard drives for older Power Macs - 02: Open letter to Steve Jobs about .mac - 03: The good, the bad, the stupid of BuyMusic.com - 04: The iPod goes back to basics - G3 vs. G4 iBook - 07: Why developers love programming for the Mac - Internet options for G3 Macs
- SanDisk Sansa Clip MP3 player has lots of features at a sub-shuffle price, Tommy Thomas, Welcome to Macintosh, 07.22. The Clip has 1-2 GB of storage, a screen, iPod-like navigation, excellent sound, an FM radio, a built-in microphone, and a price that beats the shuffle.
- The Apple vs. Psystar letters, Frank Fox, Stop the Noiz, 07.22. Readers weigh in on trademark law, the End User License Agreement, the right of first sale, contract law, locking software to hardware, and other issues.
- The Mac's growing market presence, Dan Knight, Mac Musings, 07.22. Apple has always been a significant player in the personal computer industry, and it's growing sales at a remarkable rate.
- Record Mac sales, $1 billion profit, and a future product transition, Dan Knight, Mac Musings, 07.22. Apple reports sales of nearly 2.5 million Macs in the past quarter, along with highest ever profits for the June quarter. And it hints at a product transition that will impact margins.
- Kensington Portable Power Outlet a great accessory for the road warrior, Charles W. Moore, 'Book Value, 07.22. With three AC outlets and two USB charging ports, this compact device is a great way to have extra power outlets when you're on the go.
- Free VirtualBox for Mac now a virtual contender, Alan Zisman, Mac 2 Windows, 07.21. A year ago, the Mac version of VirtualBox lacked some essential features. Over the past year, it's grown into a very useful tool.
- New MacBook models for the back-to-school buying season?, Charles W. Moore, 'Book Value, 07.21. Intel's new Centrino 2 platform plus the long time since MacBook and MacBook Pro updates makes new Mac notebooks almost a certainty before school resumes.
- Apple finally sues Psystar, Macs #3 PC brand in US, first 1.5 GB hard drives, and more, Mac News Review, 07.21. Also keyboard vs. mouse, Livescribe Audio Pen coming to Mac, decline of PowerPC Macs, new Belkin wireless router supports USB drive for backup and storage, and more.
- More links in our archive.
About LEM | Support | Usage | Privacy | Contacts


