Does OS X (Snow Leopard in particular) have an equivalent to (some versions of) Linux's /dev/shm
, ie something where you can write to and read from a file without necessarily touching the hard drive?
相关问题
- Is shmid returned by shmget() unique across proces
- how to get running process information in java?
- Xcode debugger displays incorrect values for varia
- Is there a way to report errors in Apple documenta
- Error building gcc 4.8.3 from source: libstdc++.so
You can create and mount a ram based disk as follows:
Create a disk
hdiutil
will return the name of the ramdisk.Format and mount the disk
Creating a 100MB ramdisk:
Original source: http://www.frederico-araujo.com/2008/12/18/blazing-fast-firefox-using-osx-ramdisk/