Low End Mac's Online Tech Journal
A RAM Disk Alternative
Scott L. Barber
Scott L. Barber first posted this to Quadlist. It is reprinted with his permission.
Someone I'd love to give credit to, but don't know who they were when they suggested it to me, gave me a wonderful idea for the RAM disk/disk cache solutions in an article (RAM Disk or Disk Cache?) I wrote a while back.
Instead of repartitioning your hard drive (see Hard Drive Partitioning), and instead of dedicating all that memory to a RAM disk for your browser disk cache, the following works very well.
Create a ShrinkWrap disk image of 10 MB or so, and alias it to your desktop as well as your Startup Items folder. Open ShrinkWrap, and check the "Keep mounted images in RAM" option active. This will be fast, just like a real RAM disk, but with several advantages:
- A mounted disk image is cacheable, unlike a RAM disk.
- The mounted image can be destroyed if it becomes corrupt, without damaging the hard drive.
- The mounted image can be left on the boot volume, where data access is fastest during cache writes.
- The mounted image can be wiped at any time, reformatted, resized, reused.
- A second image can be mounted for Photoshop use the same way, without resorting to a RAM disk.
- Almost no painful OS problems occur with this method, and RAM is recovered simply by throwing the image in the trash, in low memory situations. A custom AppleScript could be made that automounts the image, then launches the application you desire, waits, and when the application quits, unmounts the image. This involves little to no OS hardware intervention and should not produce the kinds of crash results normally dealt with on RAM disks and Photoshop VM.
Disk Copy Images can also be used this way, though you should not use compression formats with the images. Another alternative is ramBunctious, which creates a RAM disk that can be mirrored to the hard drive.
Partitioning the hard drive for a cache partition, as recommended in Hard Drive Partitioning, is not necessary - but is still recommended if you're going to partition the hard drive anyway (a hard partition is still going to be a little bit faster than this image routine, but is much more intrusive to implement on the fly for most users).
Your disk cache should be left at the most comfortable maximum you can afford, since the disk image is cacheable -- RAM disks are not.
There are cases where a disk cache and RAM disk can fight each other and act slower combined. This is not the case with mounted disk images; they should not be looked at as RAM disks in the Apple OS sense. They will work like really fast tiny hard drives (and thus have the benefits of disk cache without the cache-related problems of a RAM disk).
Feedback
Dan Buettner writes, "Using a ShrinkWrap image as an alternative to a RAM disk is a fast and effective solution, but there's one that's even better - using a shareware application like AppDisk to create the RAM disk.
"I experimented with a ShrinkWrap image for a while, but found that it didn't work quite as well as I had hoped it would: the memory was not always freed when I dragged the image to the Trash. Plus, resizing the image was a little tedious (not bad, but not as convenient as resizing AppDisk).
"AppDisk allows you to change partition size by simply changing the memory allocated to the application, it will save the contents of your RAM disk at specified intervals and/or when quitting, and the memory is always freed up by quitting the app. It also seems to be a more stable solution even than ShrinkWrap images.
"Check out http://members.aol.com/mavsftwre/ for more info."
Fenton Jones writes, "Hello. I was just reading your column MOTJ with the article about using ShrinkWrap for image (RAM) disks (by Scott L. Barber).
"I use a similar method. I use the shareware program Rambunctious to do pretty much the same thing. It also allows you to have multiple RAM disks stored on the hard drive, which can then be loaded into RAM.
"I have a combo KeyQuencer macro and AppleScript that work together to launch a small RAM disk to use as the Netscape cache. I keep a virgin copy of the Netscape's cache folder in the same folder as the AppleScript. As soon as the RAM disk is loaded, it copies this empty cache folder onto it. Netscape is set to use it via its preferences (has to be done while the RAM disk is loaded).
"After this happens KeyQuencer launches Netscape. The only drawback to the arrangement is that I must use the KeyQuencer macro to initiate the whole scenario. Launching Netscape manually, or by clicking a URL when it's not running, will force Netscape to create and use its default cache folder, in its Netscape Preferences folder.
"After I'm done browsing, I quit Netscape first, then Rambunctious. This trashes the cache folder. I could configure Rambunctious to save it on the hard drive, but this way I always start each session with a fresh cache.
"I use URL Manager's History function to save 1000 recent web sites, so I can always find my way back to something that way.
"Rambunctious is a wonderful program. I also use it with FileMaker for tremendous speed gains. It has more options than others, allowing you to set a RAM disk that reads from RAM, but writes through to the hard disk. This still gives you increased speed while preserving decent safety, necessary for databases.
"The reason I go to so much trouble is my little Performa 475 is
maxed out with 36 MB of RAM; I can't afford to leave a RAM disk running
when I'm not using it, and I'm too slow without it."
- 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
Related articles
Quadlist, the listserv for users of 68040-based Macs. FAQ at <http://lowendmac.com/lists/quadlist.shtml>
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: Mac IIfx, introduced 1990.03.19. This 'wicked fast' 40 MHz Mac trumped the 33 MHz DOS world.
- February 14 in LEM history: 98: A perfect compact Mac - 00: Extended computer warranties worth the cost? - Making your PC work with your Mac - 01: Customize Microsoft Word - 02: Quadra revives a passion for computing - 03: Real world performance - DIY Pismo screen replacement - Best Mac for writing - 03: Fastest browser on the Mac - 06: 15" MacBook Pro - Impressions of a newly acquired Lisa - Finding and using free WiFi - Apple should liberate OS 9 - 07: New Mac mini cheaper than upgrading a Power Mac - 08: Falling in love with OS X
- Support Low End Mac
Recent Content on Low End Mac
- Fix Home Button Delay, Tablet the Ultimate Mobile PC, iPad Notebook a Possibility, and More, iOS News Review, 2012.02.10. Also using your iPad at work, two photo editors, a new iPad text editor, Macally's magnetic iPad 2 stand, and more.
- White MacBook Goes End-of-Life, Logitech Touch Mouse Supports Gestures, Firmware Updates, and More, The 'Book Review, 2012.02.10. Also MacBook Air better than any Ultrabook, docks for MacBook Pro models, Intel offers improved SSDs, 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.
- 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.
- 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 17" MacBook Pro Deals
- Best iPod classic Deals
- Best eMac Deals
- Best MacBook Air Deals
- Best iBook G4 Deals
- Best iPad Deals
- Best Classic Mac OS Deals
- Best Apple TV 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

