Low End Mac's Online Tech Journal
RAM Disk or Disk Cache?
Scott L. Barber
Scott L. Barber first posted this to Quadlist. It is reprinted with his permission.
I want to rattle on about this, since Dan is testing out some of the things I've postulated about before. I keep seeing this dual RAM Disk/Disk Cache trend, and it astonishes me. I just haven't figured out why everyone wants to equate them together, and then it dawned on me - some people are using their RAM disk as their Netscape cache folder.
So, armed with this obscene information, I'm gonna make some comments . . . read on. . . .
- "With Speedometer, a cache larger than 1 MB makes very little difference."
I very much like the "With Speedometer" part of this phrase. That's a very crucial part of the sentence. Performance increases level off at 2 MB with MacBench on almost every machine, but neither MacBench nor Speedometer test normal use, they only test their own patterns. This is the difference between real world and lab world use.
- "At least on the IIsi, a RAM disk with a small cache is over twice as fast as a large data cache."
When the RAM disk is accessed, performance for those cached items from the RAM disk are exactly 50% slower because of dual checking, checking the cache and then the RAM disk. Performance drops from this point are due to latency and bus utilization. Speed Doubler fixes this by using an optimized cache routine, and I think even tells the disk cache to ignore RAM disks - but I'm not sure on the latter.
- "Don't use a RAM disk with a huge disk cache, since the OS looks to the cache first. For best response with a limited amount of data, use a large enough RAM disk with a 128KB or smaller disk cache. For more data than you'd care to put on a RAM disk, create a cache large enough to hold the whole thing if possible. (Current versions of the Mac OS limit the disk cache to 7.5 MB.)"
This really depends on why you're using a RAM disk. If you're using a RAM disk for Netscape, just can the RAM disk and raise you're cache - this eliminates the above "memory mirroring" effect. A long time ago, people started this Netscape RAM disk thing, and it's easier to just increase your disk cache by the same amount as you'd dedicated to a RAM Disk, to get the performance boost. OK . . . it's a little slower than using a RAM disk because of the SCSI checks, but again, Speed Doubler helps this a lot, and it also helps out other programs other than Netscape, and the system software as well, which can mostly be held in cache memory . . .
- "Speculation: I believe the Q2050 had a larger internal buffer than the older drive, which seems to be working against the cache. This could help explain the performance drop at 256 KB and 512 KB."
Bingo - you have an excellent grasp of how the block transfer issue affects disk cache on SCSI hard drives. There's almost a harmonic effect about it . . .
Now . . . for the notes. And I have published all these before on the list . . .
The only clients that I have ever recommended a dedicated RAM disk
to are the consistent Photoshop users, and they're told to turn their
Primary Scratch Disk to this 4 MB RAM disk. This is designed to cache,
through Adobe's unique built in VM caching routine, the first 4 MB of
their VM cache, which contains all of the cache headers, the filter
information, and all of the programing hooks that are always sent to
the hard drive, no matter how much memory you allocated to Photoshop.
- Scott L. Barber <serker@serker.com>
- Pres/CEO, SERKER Worldwide, Inc.
- Providing Hardware/Networking/Telecomm for 13 years
- Visit www.serker.com for more information
Quadlist, the listserv for users of 68040-based Macs. FAQ at <http://lowendmac.com/lists/quadlist.shtml>
Related articles
Join us on Facebook. Follow us on Twitter.
Recent Online Tech Journal Columns
- Optimized Software Builds Bring Out the Best in Your Mac, 2009.06.30. Applications compiled for your Mac's CPU can load more quickly and run faster than ones compiled for universal use.
- Low End Mac's Safe Sleep FAQ, 2009.06.15. What is Safe Sleep mode? Which Macs support it? How can you enable or disable it? And more.
- The Original Macintosh, 2009.01.12. An in-depth look at the original Macintosh and how it shaped future Macs.
- More in the Online Tech Journal index.
Links for the Day
- Mac of the Day: PowerBook 165c, introduced 1993.02.10. The first color PowerBook had an attractive screen, slow graphics.
- February 10 in LEM history: 93: LC III - Color Classic - PowerBook 165c - Centris 610 and 650 - Quadra 800 - 99: iMac flaws - 00: Plain old email - 03: Xserve, 1.33 GHz - 1993: Apple rolls out 6 new models at once - Cheerleading, misinformation, and moving ahead - Wacom Graphire2 - 05: Ultimate spam email - 06: TopXNotes Classic - PPC emulator adds Classic to Macintel
- Support Low End Mac
Recent Content on Low End Mac
- Apple's Support Lead Shipping, Smartphones Outsell PCs, OS X Ported to ARM by Intern, and More, Mac News Review, 2012.02.10. Also the power of Tex-Edit Plus, Google and Twitter are already censoring the Web, Snow Leopard Security Update, and more.
- Mac and iOS Browsers: Options Galore, Freeware Forum, 2012.02.10. Safari is adequate on Mac and great on iOS, but the range of good alternatives is stunning. LEM writers share their favorites.
- LogMeIn: Remote Screen Sharing for the Rest of Us, Alan Zisman, Zis Mac, 2012.02.09. Configuring the Mac's built-in screen sharing to work over the Internet can be difficult or impossible. LogMeIn makes it easy.
- 15 Years Ago Motorola Unveiled the PowerPC G3, Low End Mac Round Table, 2012.02.06. The G3 processor was optimized for real world Mac software and made a big leap forward in efficiency.
- Don't Kill Caps Lock, Learning to Love the iOS Keyboard, and an Adaptive iPad Keyboard, Charles W. Moore, Miscellaneous Ramblings, 2012.02.06. The Caps Lock key has a useful function, the iPad's keyboard really is useful, and checking out an adaptive keyboard for the iPad.
- More links in our archive.
Recent Deals
- Best MacBook Air Deals
- Best iBook G4 Deals
- Best iPad Deals
- Best Classic Mac OS Deals
- Best Apple TV Deals
- Best 15" MacBook Pro Deals
- Best Power Mac G4 Deals
- Best Mac OS X 10.6 Deals
- More deals in our archive.
About LEM Support Usage Privacy Contact
Follow
Low End Mac on Twitter
Join Low End Mac
on Facebook
Low End Mac Reader Specials
TypeStyler 11 is now in the Mac App Store!! -- Special Introductory Price of $59.95!! -- To Buy From The Mac App Store Click Here Now!! Or buy direct
from Strider Software.
Don't install Parallels to play poker online! Poker Mac will show you how to download and install a native Mac poker and Mac Casino applications in minutes.
Favorite Sites
MacSurfer
Cult of Mac
Shrine of Apple
MacInTouch
MyAppleMenu
InfoMac
The Mac Observer
Accelerate Your Mac
RetroMacCast
PB Central
MacWindows
The Vintage Mac Museum
DealMac
Deal Brothers
Mac2Sell
Mac Driver Museum
JAG's House
System 6 Heaven
System 7 Today
the pickle's Low-End Mac FAQ
Affiliates
Amazon.com
The Apple Store
The iTunes Store
PC Connection Express
GainSaver
Parallels Desktop for Mac
eBay

