Skip to content
Zafar Khaydarov edited this page Sep 24, 2015 · 1 revision

OS X RAM Disk

Need really fast Java IDE or browser? Then keep reading.

This app will create a RAM disk in OS-X with specified size to store apps cache in RAM, which is known as SSD optimization - reducing disk IO or making browsing the web and programming using IntelliJ more enjoyable.

Supported apps (you can add yours):

The IntelliJ Idea (or JetBrains IDEs) are really fast after this. Be warned that for large source base you will need to have more RAM Disk. I don't have exact numbers, sorry, because it can vary. Mine machine have 16G - it works good.

If you observing performance degradation - revise how much memory you are using and may be adding more can help. By default script will create disk of 1/4 size of your RAM. If you need to change the size - edit startupRAMDiskandCacheMover.sh header section.

Have something to discuss? Join the chat at https://gitter.im/zafarella/OSX-RAMDisk

If you have any issues - I am glad to have them reported in the issues tab.

Compatibility

Works on

  • MAC OS X 10.10.2 Yosemite

Note that you have to re-run the script in order to get the ram disk back after machine restart. Currently it does not place it on startup.

Give it a try before installing

$ curl -o startupRAMDiskandCacheMover.sh https://raw.githubusercontent.com/zafarella/OSX-RAMDisk/master/Contents/MacOS/startupRAMDiskandCacheMover.sh
chmod +x startupRAMDiskandCacheMover.sh
./startupRAMDiskandCacheMover.sh

or

git clone git@github.com:zafarella/OSX-RAMDisk.git
OSX-RAMDisk/Contents/MacOS/startupRAMDiskandCacheMover.sh

Installation

Do not use it now - the startup script does not work yet - work in progress

git clone git@github.com:zafarella/OSX-RAMDisk.git
cd OSX-RAMDiskix
make install

Manual Installation

cp OSXRamDisk.plist ~/Library/LaunchAgents
cp startupRAMDiskandCacheMover.sh /usr/local/bin
# note - it will close Chrome, safari idea
/usr/local/bin/startupRAMDiskandCacheMover.sh

Uninstall

Run make uninstall or manually do following

Close the chrome, idea or any other application you configured to use ram disk.

   rm /usr/local/bin/startupRAMDiskandCacheMover.sh
   launchctl unload -w ~/Library/LaunchAgents/OSXRamDisk.plist
   rm ~/Library/LaunchAgents/OSXRamDisk.plist