English Français Deutsch Italiano Dansk Español

RAM Disk

Create a RAM disk on MacOS Server (1 GB)

: diskutil erasevolume HFS+ 'ramdisk' `hdiutil attach -nomount ram://2000000`
Started erase on disk2
Unmounting disk
Erasing
Initialized /dev/rdisk2 as a 977 MB case-insensitive HFS Plus volume
Mounting disk
Finished erase on disk2 ramdisk

Move to ramdisk

: cd /Volumes/ramdisk

Create folders for your website

: mkdir sitename

Allow access to write

: chmod 777 sitename

Activate setting in site/configuration.php

$swRamdiskPath = '/Volumes/ramdisk/sitename/';