Here's a cli way to create RAM disks on Mac OS X. Unless you have a huge amount of RAM, you'll probably not want to do this. Besides, Mac OS X has surperb i/o caching and virtual memory management so you might not see much of a performance boost with a RAM disk. I compiled one of our apps on a RAM disk and it didn't make a lick of difference in compile speed. Anyway, here's how to create the RAM disk:
$ NUMSECTORS=1228800 # 600MB ¬
$ VOLUMENAME=RAM_Disk ¬
$ mydev=`hdid -nomount ram://$NUMSECTORS` ¬
$ newfs_hfs -v $VOLUMENAME $mydev ¬
$ mkdir /Volumes/$VOLUMENAME ¬
$ mount -t hfs $mydev /Volumes/$VOLUMENAME ¬
Here's is how to remove the RAM disk:
$ umount $mydev ¬
$ hdiutil detach $mydev ¬
$ rmdir /Volumes/$VOLUMENAME ¬
4230fcfe132e3ff86a8720f4f456ce2f 735cb8377.
Tracked: Apr 17, 22:01
4230fcfe132e3ff86a8720f4f456ce2f 49c6.
Tracked: Apr 17, 22:01