2002: As noted elsewhere today, I’ve been using ramBunctious, a classic Mac OS RAM Disk program, for years. Although it works in Classic Mode under Mac OS X, the RAM disks it creates are inaccessible to OS X, so I’ve retired a real workhorse program.
I like the idea of using a RAM Disk because these are files that I may be accessing many times during the course of the day, but I’ve learned that Mac OS X may make RAM disks a thing of the past. That’s because OS X can use any available system memory to cache files – which helps explain why Classic Mode under OS X has a higher disk score than Mac OS 9.2.2 booted natively, as seen in in yesterday’s tests.
As Ric Davis explained to me, OS X will intelligently cache files – the more often you access them, the more likely they’ll be cached for lightning-fast access. Although that won’t provide the same speedy load times as a RAM Disk the first time a file is accessed, repeated access should be pretty much at RAM Disk speed.
Benefits of not using a RAM Disk include not locking up all that memory (128 MB in my case), not spending several seconds loading the RAM Disk image at startup, and not having to worry about the computer crashing with unsaved contents on the RAM Disk (which shouldn’t be a problem with Mac OS X anyhow).
That said, Gregory Youngs writes that all disk writes are cached under BSD/OS X, which means that a freeze, lockup, or power failure could cost you “saved” data that’s only been cached and not yet written to the hard drive. Youngs further notes that the Unix sync command, which forces the OS to write all cached data to disk, doesn’t appear to be available in Mac OS X.
With the stability of Unix and a UPS (or a ‘Book with a charged battery), you minimize the chance of losing unwritten cached data, but there’s still a risk. (It’s probably less of a risk than we had with the regular freezes, bombs, and other problems that required a forced restart under the Classic Mac OS).
Perhaps best of all, under OS X you don’t have to fiddle with disk cache size for optimum performance – it’s all done automatically by the operating system.
I’d still like to see a RAM Disk like ramBunctious (they’re working on it), even if only to see if it’s worth trying, but with caching this good, a RAM Disk might not make any sense at all.
Keywords: #ramdisk #macosx #macramdisk #rambunctious