You can simply use command to create a ramdisk.
1
| |
This is 250 MB ramdisk, you can change 512000 to change the volume of the ramdisk. If you want to use ramdisk for your safari cache You can close the safari and run these
1 2 3 | |
Another app’s caches you can just modify path form the code above.
If you need it runs automatically when you reboot.
Create a script like ramedisk.sh and chmod u+x ramdisk.sh
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | |
rc.local file might not work, Mac looks not load rc.local, what I do is append these to terminal login sheel and run terminal when Mac start. You need add a check like if [[ $(tty) = /dev/ttys001 ]]; then ~/ramdisk.sh; fi;
You can also modify this if you need. More information Testing software: Blackmagic Disk Speed Test
| 10 Bit YUV 4:2:2 PAL | Default SSD | Default Ramdisk |
|---|---|---|
| Disk Write Speed MB/s | 180 | 800 |
| Disk Read Speed MB/s | 210 | 800 |