Jump to content

Ramdisk
The ramdisk guide.
 

What is a ramdsik?
Ramdisk uses system memory as mass storage. Since system memory is fast, doesn’t wear down over time like NAND flash, is a lot faster and clears when the computer reboots or shuts down.

Usecases

  • temporary, fast storage device
  • download drive
  • cache drive

Benefits

  • reduces the amount of file system fragmentation
  • reduced wear-and-tear of the physical disk / SSD
  • less junk on the hard drive / SSD
  • less noise and heat from the hard drive

Be aware that the content of a RAM disk is permanently deleted as soon as it is ejected! Only use it as temporary storage!
 

 

Software

Windows

I would highly recommend using ImDisk. It’s free, open-source, doesn’t have size limitations and supports saving the ramdisk as a file on the HDD if needed.
 
 

OS X

eqfV2JG.png
 
 
This will create a 250MB ramdisk, you can change the size by chaning the “512000” value. The size of the disk is based on the number of 512 byte sectors. That means the size in bytes has to be divided by 512. For example to calculate the size parameter of a volume with 4GB, the following formula is used:
 



TjpIZGb.png


You can also create a ramdisk with a terminal command, but I’ve been using iRamDisk since it can re-create the ramdisk on boot and use wired memory (can’t be written to HDD if the system runs out of memory, so no cache files will never be written my boot drive.
 
I did not include Linux in this post. Sorry about this, but I do not feel like telling somebody to do something that I haven’t done myself nor have any experience with.
 
 

 
My personal setup (OS X, hackintosh)
When booting, my computer creates a 256MB and ~500MB ramdisks, one for browser cache and one for temp files and browser downloads. The browser cache directory is symbolicly linked to the cache storage directory, which will "redirect" the files to the ramdisk, instead of saving it on the HDD.
 
 
Symbolic links for browser cache:
 
For Safari:

ln -s /Volumes/cachedisk ~/Library/Caches/com.apple.Safari

 
For Chromium:

ln -s /Volumes/cachedisk ~/Library/Caches/Chromium

 
For Firefox:

ln -s /Volumes/cachedisk ~/Library/Caches/Firefox

 

 
Hopefully this was useful for some of you and any feedback is greatly appreciated.
 
 
 
Updates:
26-01-2014: added TMPdisk, which I'm currently using.
20-03-2014: Added Automator script for easy ramdisk creation on OS X.

Specs: i7-3770K | Asus R9 290X | 32GB DDR3 | GA-Z77-UD5H | RM 750x | Define R5 Arctic White | macOS 10.14.5 & Windows 10

Link to comment
https://linustechtips.com/topic/53873-guide-ramdisk/
Share on other sites

Link to post
Share on other sites

Awesome thread :)

PC Specs:  2x GTX 550 ti in SLI - Intel i7 2600k @ 3.4Ghz - Thermaltake Overseer Case - 8 GB Corsair Vengeance Ram - 1TB Harddrive - 500 Watt PSU that came with my old prebuilt pc lawl -  ASUS P8P67 EVO

Peripherals:  Razer Deathadder Black Edition - Razer Arctosa Keyboard - Logitech G53 Headset

Cool song of the day: Chief Keef - Round da Rosey    Changed my profile pic again...                                        Mountain Dew is good. So are video games and music. Oh and unicorns.

Link to comment
https://linustechtips.com/topic/53873-guide-ramdisk/#findComment-723260
Share on other sites

Link to post
Share on other sites

I belive linus did a video on this once, refering to it might be a good addition.
otherwise nice job!

Grammar nazis are people too!
Treat your local grammar nazi nicely and he might teach you a thing or two. (Note that I'm Belgian and not a native English speaker.)
Chivalry isn't dead!

Link to comment
https://linustechtips.com/topic/53873-guide-ramdisk/#findComment-723400
Share on other sites

Link to post
Share on other sites

I belive linus did a video on this once, refering to it might be a good addition.

otherwise nice job!

 

Linus only used the AMD Radeon Ramdisk, which isn't that great piece of a software, is paid and only allows a single ramdisk at once. He also demonstrated the ramdisk by installing software and games to it, which is a quite impractical usecase for it.

 

 

 

 

The video by Linus:

Specs: i7-3770K | Asus R9 290X | 32GB DDR3 | GA-Z77-UD5H | RM 750x | Define R5 Arctic White | macOS 10.14.5 & Windows 10

Link to comment
https://linustechtips.com/topic/53873-guide-ramdisk/#findComment-723490
Share on other sites

Link to post
Share on other sites

  • 6 years later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×