Overclock.net › Forums › Components › Hard Drives & Storage › How to: Set up and Utilize RAM Disks
New Posts  All Forums:Forum Nav:

How to: Set up and Utilize RAM Disks

post #1 of 287
Thread Starter 

How to: Set up and Utilize RAM Disks



Information:
RAM disk is a program that takes a portion of your system memory and uses it as a disk drive. What is the benefit? In a word: SPEED! An additional feature of a RAM disk is that it will never wear out. You can access it at maximum bandwidth 24/7/365 without fear of mechanical failure, or fragmentation (a RAMDisk can become fragmented just like any other disk, but it does not take a performance hit like a physical disk does when it becomes fragmented). A RAM disk operating at maximum bandwidth does not produce excessive heat, noise or vibrations. The uses for RAM Disks are only limited to your imagination and amount of RAM. If you have to ask what to use one for leave this thread now. lol

Most users use RAM disk to speed up applications like:
  • Databases
  • Internet Explorer and Firefox cache for faster web surfing
  • Audio and Video editing
  • CAD programs
  • Photoshop Scratch Disk
  • Cache folder for Photoshop Lightroom
  • Speeding up CD duplication
  • Games
  • SETI processing
  • TEMP files
  • Swap space
  • Web server cache
  • Custom applications with high I/O, high bandwidth, or high security requirements

What you should NOT use a RAM disk for :
  • Windows Page File: (link) There is absolutely no reason to use a RAM disk for the page file. Think of a reason and I will show you a better solution. wink.gif Also, when the page file is on a RAM disk, if the system crashes it will not create a crash dump for you to retrieve and diagnose. This is because the driver for the RAM disk gets shut down before the data on the page file can be read to create the crash dump.


SoftPerfect RAM Disk: http://www.softperfect.com/products/ramdisk/

Instructions for ImDisk: Warning: Spoiler! (Click to show)
Very detailed guide here: (link)

Extra guide information here: (link)

My quick guide, will be expanded upon.
  1. Download ImDisk here
  2. Install
  3. Open the Start Menu, in the search line, type CMD, hit Enter
  4. Type: imdisk -a -t vm -m P: -s 6G -p "/fs:ntfs /q /y, hit Enter
    Note: Replace "P:" with the drive letter that you want.
    "-a" specifies you want to create/attach a new virtual ram disk
    "-t vm" specifies you want the data to be stored in RAM
    "-m P:" specifies you want to mound the new disk to the specified drive letter, in this case P:
    "-s 6G" specifies 6GB size
    -p "/fs:ntfs /q /y" specifies you want to format the new disk using NTFS and using the quick format option

To delete or end the RAM Disk:
  1. Click Start
  2. Clcik Computer
  3. Rightclick the RAM Disk
  4. Click "Unmount ImDisk Virtual Disk"

Instructions for DataRAM RAMDisk: Warning: Spoiler! (Click to show)
  1. Download the RAMdisk and install it to your system. Download here.
  2. Once installed you can copy my system here which uses a 4092 MB Ram Disk. You may set a smaller or larger drive to use. This is up to you.
  3. Set what you see in the screen shot below. Notice the drive is set to Unformatted. You will see why in a moment.
    RamDisk%20x.jpg
    RamDisk%201%20x.jpg
  4. Once you have set what you see in the above pic go back to the Settings tab and hit Start RAMDisk
  5. Wait while it loads the driver.
  6. Then you need to mount the drive and format it.
  7. Start -> Control Panel -> System and Security -> Administrative Tools -> Computer Management -> Disk Management
  8. Here you should now be greeted with a prompt that you have a new drive.
  9. Mount the drive and quick format it NTFS or FAT32, give the name RamDrive and assign letter R.
  10. Once the drive is formatted navigate to My Computer, you should now see the RamDrive.
  11. Click to open the RamDrive.
  12. Once you have done this close down My Computer.
  13. It's now time to reboot the PC to make sure the RamDisk is working correctly.
  14. You can manually close the RamDisk window now [it has saved your settings] and all other apps you may have open and proceed to reboot.
    Note: Now shutdown should take a little longer than normal, this is due to the image of data on the RamDisk being written to the SSD drive. On boot the machine should also take a few seconds longer than normal, this is due to the Ramdisk being formatted then the image that was written to the SSD is mounted on the RamDisk. So where you left off is where you restart.
  15. Navigate back to my computer, you should see the RamDisk looking like a standard hard drive. If its not there you need to go back to the Ramdisk App settings and check its configured correctly.

Put your browser cache on your RAM disk: Warning: Spoiler! (Click to show)
This is how you put the browser cache on the RAMDisk. When you make the folder on the RAMDisk for the cache for each you need to go to that folder's properties and uncheck read only, I was having an issue where these weren't working b/c the cache folder couldn't be written to and that fixed it. thumb.gif

Firefox Cache Tweak:

Information:
You will need to add a single command string into Firefox to make it store temporary internet files and all cache data to the RamDrive.

Instruction:
  1. Open up Firefox. In the address bar type about:config
  2. Click the I’ll be careful I promise button.
  3. Right click anywhere in the values in the lower portion of the screen and choose New -> String.
  4. Type in browser.cache.disk.parent_directory into the “Preference name”
  5. Click OK
  6. Type in R:\FF_Cache in the "string value" [if R: is the RamDisk and you created a folder called FF_Cache].
  7. Click OK.
  8. Restart Firefox.
Note: Clear private data at shutdown disables cache to disk.

Internet Explorer Cache Tweak:

Information:
You will need to move Temporary Internet Files folder of Internet Explorer to make it store temporary internet files and all cache data to the RamDrive.

Instruction:
  1. Open Internet Options.
  2. On the General tab look for "Temporary Internet files" or "Browsing history" and hit Settings.
  3. Set the box size to 50-250 MB.
  4. Then hit Move folder and point to the Cache folder you made on the RamDisk, e.g. R:\IE_Cache
  5. Click OK.

Chrome Cache Tweak:

How to Move Disk Cache Location:
  1. Exit all Chrome browser windows
  2. Create a Chrome shortcut on your desktop.
  3. Right click and click properties
  4. In the target text box type in the below, with the space after the chrome.exe and before the --
    "C:\Users\MYCOMPUTERNAME\AppData\Local\Google\Chrome\Application\chrome.exe" --disk-cache-dir="R:\tempfiles\Chrome_Cache"

How Change Disk Cache Size:
  1. Right click on the desired chrome shortcut and click Properties.
  2. Next to the Target: you will see the path for the chrome.exe location; after chrome.exe type in --disk-cache-size=1 --media-cache-size=1". This will change the maximum cache to 25mb.
    Note:If you want to edit Chrome to change the directory and cache size, it would look like this: --disk-cache-dir="R:\TempFiles\Chrome Cache --disk-cache-size=1 --media-cache-size=1"

Some quick benches I did on my system: Warning: Spoiler! (Click to show)
368

501

615

403
Sean's Sandy!
(15 items)
 
Terrorbyte
(15 items)
 
Le Papa's
(10 items)
 
Reply
Sean's Sandy!
(15 items)
 
Terrorbyte
(15 items)
 
Le Papa's
(10 items)
 
Reply
post #2 of 287
Awesome. was thinking about doing this. need to make use of this 16gb of ram.
Yeyo
(16 items)
 
lolfolding
(7 photos)
CPUMotherboardGraphicsRAM
Syrillian Owned i7 2600k ASRock Z68 Extreme 4 Gen 3 EVGA GTX 670FTW Gskill Sniper Low Voltage Series 1.25v 16gb 
Hard DriveOptical DriveCoolingOS
Intel G2 80GB- OCZ 60GB- 1TB Asus BD Combo Megashadow Deluxe Edition  Win8 gon hate 
MonitorKeyboardPowerCase
Insignia 40" LED G15 Seasonic X750 Gold Sleeved Red 500R 
Audio
Asus Xonar DGX 
  hide details  
Reply
Yeyo
(16 items)
 
lolfolding
(7 photos)
CPUMotherboardGraphicsRAM
Syrillian Owned i7 2600k ASRock Z68 Extreme 4 Gen 3 EVGA GTX 670FTW Gskill Sniper Low Voltage Series 1.25v 16gb 
Hard DriveOptical DriveCoolingOS
Intel G2 80GB- OCZ 60GB- 1TB Asus BD Combo Megashadow Deluxe Edition  Win8 gon hate 
MonitorKeyboardPowerCase
Insignia 40" LED G15 Seasonic X750 Gold Sleeved Red 500R 
Audio
Asus Xonar DGX 
  hide details  
Reply
post #3 of 287
Nice guide! I second the Dataram suggestion. It may be worth including a link to this detailed compilation of RAMDisk Benchmarks.
Main Rig
(20 items)
 
   
CPUMotherboardGraphicsRAM
Phenom II 1090T @3.8GHz, CPU-NB @3.0GHz Asus M5A99X EVO Sapphire HD 7950 Corsair Vengeance 16GB 
Hard DriveHard DriveHard DriveOptical Drive
Crucial M4 128GB 2 x Samsung F3 1TB (RAID 0) Seagate Barracuda 3TB Asus DVD-RW 
CoolingCoolingOSMonitor
CPU: Noctua NH-D14 GPU: Corsair H60 Windows 8 Pro Viewsonic VX2770SMH-LED 
MonitorKeyboardPowerCase
Samsung 943BWX Ducky YOTD (MX Brown) Lepa G700-MA Fractal Design Define R3 
MouseMouse PadAudioAudio
Roccat Savu Steelseries 9HD Beyerdynamic DT 880 Asus Xonar DG 
CPUMotherboardGraphicsRAM
AMD A6-3500 Asrock A75M HD 6530D Samsung 4GB DDR3 1600  
Hard DriveHard DriveHard DriveOptical Drive
Intel 320 80GB Samsung Spinpoint F4 2TB WD Caviar Green 3TB Sony BD-Rom 
CoolingOSMonitorKeyboard
Noctua NH-C12P SE14 Win 7 Professional 64-bit Samsung LN46C600 Lenovo N5902 
PowerCaseOther
Corsair CX430 Antec Veris Fusion Hauppage WinTV DCR-2650 
CPUMotherboardGraphicsRAM
AMD Phenom II X3 B55 Gigabyte GA-MA785GM-US2H MSI HD 5750 G.Skill 4GB DDR2 
Hard DriveOptical DriveCoolingMonitor
Samsung F3 1TB LG DVD-RW CM Hyper 212 Plus Dell U2312HM 
KeyboardPowerCaseMouse
Pink KBT Race (MX Blue) Corsair CX400 Corsair 500R Razer Abyssus 
Mouse Pad
Modware Radiance 
  hide details  
Reply
Main Rig
(20 items)
 
   
CPUMotherboardGraphicsRAM
Phenom II 1090T @3.8GHz, CPU-NB @3.0GHz Asus M5A99X EVO Sapphire HD 7950 Corsair Vengeance 16GB 
Hard DriveHard DriveHard DriveOptical Drive
Crucial M4 128GB 2 x Samsung F3 1TB (RAID 0) Seagate Barracuda 3TB Asus DVD-RW 
CoolingCoolingOSMonitor
CPU: Noctua NH-D14 GPU: Corsair H60 Windows 8 Pro Viewsonic VX2770SMH-LED 
MonitorKeyboardPowerCase
Samsung 943BWX Ducky YOTD (MX Brown) Lepa G700-MA Fractal Design Define R3 
MouseMouse PadAudioAudio
Roccat Savu Steelseries 9HD Beyerdynamic DT 880 Asus Xonar DG 
CPUMotherboardGraphicsRAM
AMD A6-3500 Asrock A75M HD 6530D Samsung 4GB DDR3 1600  
Hard DriveHard DriveHard DriveOptical Drive
Intel 320 80GB Samsung Spinpoint F4 2TB WD Caviar Green 3TB Sony BD-Rom 
CoolingOSMonitorKeyboard
Noctua NH-C12P SE14 Win 7 Professional 64-bit Samsung LN46C600 Lenovo N5902 
PowerCaseOther
Corsair CX430 Antec Veris Fusion Hauppage WinTV DCR-2650 
CPUMotherboardGraphicsRAM
AMD Phenom II X3 B55 Gigabyte GA-MA785GM-US2H MSI HD 5750 G.Skill 4GB DDR2 
Hard DriveOptical DriveCoolingMonitor
Samsung F3 1TB LG DVD-RW CM Hyper 212 Plus Dell U2312HM 
KeyboardPowerCaseMouse
Pink KBT Race (MX Blue) Corsair CX400 Corsair 500R Razer Abyssus 
Mouse Pad
Modware Radiance 
  hide details  
Reply
post #4 of 287
Would a 1gb ramdisk be enough for use just as a browser cache?
Edited by foilfence - 3/12/12 at 12:38am
    
CPUMotherboardGraphicsGraphics
2600k @ 4.6Ghz Biostar TP67XE Powercolor 6870x2 Sapphire 6870 
RAMHard DriveHard DriveHard Drive
4 x 4GB Patriot Viper Xtreme @ 1600 CL8 Intel X-25M 80Gb Hitachi Deskstar 1Tb Seagate 1Tb 
CoolingCoolingMonitorPower
Cogage Arrow 2x Thermalright TY-140 Yamakasi 2703 2560x1440 Seasonic S12D 850w 
Case
Aerocool VS-9 Ghetto Mod 
  hide details  
Reply
    
CPUMotherboardGraphicsGraphics
2600k @ 4.6Ghz Biostar TP67XE Powercolor 6870x2 Sapphire 6870 
RAMHard DriveHard DriveHard Drive
4 x 4GB Patriot Viper Xtreme @ 1600 CL8 Intel X-25M 80Gb Hitachi Deskstar 1Tb Seagate 1Tb 
CoolingCoolingMonitorPower
Cogage Arrow 2x Thermalright TY-140 Yamakasi 2703 2560x1440 Seasonic S12D 850w 
Case
Aerocool VS-9 Ghetto Mod 
  hide details  
Reply
post #5 of 287
Thread Starter 
Quote:
Originally Posted by Lazloisdavrock View Post

Awesome. was thinking about doing this. need to make use of this 16gb of ram.
biggrin.gif
Quote:
Originally Posted by ChaoticKinesis View Post

Nice guide! I second the Dataram suggestion. It may be worth including a link to this detailed compilation of RAMDisk Benchmarks.

Cool, thanks.
Quote:
Originally Posted by foilfence View Post

Would a 1gb ramdisk be enough for use just as a browser cache?

Yea it should be fine
Sean's Sandy!
(15 items)
 
Terrorbyte
(15 items)
 
Le Papa's
(10 items)
 
Reply
Sean's Sandy!
(15 items)
 
Terrorbyte
(15 items)
 
Le Papa's
(10 items)
 
Reply
post #6 of 287
Ayt thanks. Not sure if i can afford to play around with ramdisks given that I only have 8gb. Just gonna give it a shot.
    
CPUMotherboardGraphicsGraphics
2600k @ 4.6Ghz Biostar TP67XE Powercolor 6870x2 Sapphire 6870 
RAMHard DriveHard DriveHard Drive
4 x 4GB Patriot Viper Xtreme @ 1600 CL8 Intel X-25M 80Gb Hitachi Deskstar 1Tb Seagate 1Tb 
CoolingCoolingMonitorPower
Cogage Arrow 2x Thermalright TY-140 Yamakasi 2703 2560x1440 Seasonic S12D 850w 
Case
Aerocool VS-9 Ghetto Mod 
  hide details  
Reply
    
CPUMotherboardGraphicsGraphics
2600k @ 4.6Ghz Biostar TP67XE Powercolor 6870x2 Sapphire 6870 
RAMHard DriveHard DriveHard Drive
4 x 4GB Patriot Viper Xtreme @ 1600 CL8 Intel X-25M 80Gb Hitachi Deskstar 1Tb Seagate 1Tb 
CoolingCoolingMonitorPower
Cogage Arrow 2x Thermalright TY-140 Yamakasi 2703 2560x1440 Seasonic S12D 850w 
Case
Aerocool VS-9 Ghetto Mod 
  hide details  
Reply
post #7 of 287
425


378
Citra ♥
(15 items)
 
Big Mac
(10 items)
 
 
CPUMotherboardGraphicsRAM
[Intel] Core i7 2600K [Asus] P8Z68-V Pro [Gainward] Geforce 9800 GTX+ [Corsair] Vengeance 16GB @ 1600 
Hard DriveHard DriveCoolingOS
[Kingston] HyperX 120GB SSD [Intel] 520 series 60GB [Corsair] H80 [Canonical] Ubuntu 12.10 
MonitorKeyboardPowerCase
[BenQ] XL2420T [Corsair] Vengeance K60 Performance [OCZ] ZX 850W [CM] Storm Enforcer 
MouseAudioOther
[Razer] Mamba 4G 2012 [Beats] urBeats [NZXT] 24/8/6 pin extensions 
CPUMotherboardGraphicsRAM
[Intel] Core i5-3210M [Apple] Proprietary [Intel] HD 4000 [Hynix] H5TC2G83CFR DDR3L 8GB 
Hard DriveOSMonitorKeyboard
[Samsung] 128GB SSD [Apple] OS X 10.8.2 ML 13" 2560x1600 Retina [Apple] Backlit Keyboard 
CaseMouse Pad
[Apple] Unibody [Apple] Trackpad 
  hide details  
Reply
Citra ♥
(15 items)
 
Big Mac
(10 items)
 
 
CPUMotherboardGraphicsRAM
[Intel] Core i7 2600K [Asus] P8Z68-V Pro [Gainward] Geforce 9800 GTX+ [Corsair] Vengeance 16GB @ 1600 
Hard DriveHard DriveCoolingOS
[Kingston] HyperX 120GB SSD [Intel] 520 series 60GB [Corsair] H80 [Canonical] Ubuntu 12.10 
MonitorKeyboardPowerCase
[BenQ] XL2420T [Corsair] Vengeance K60 Performance [OCZ] ZX 850W [CM] Storm Enforcer 
MouseAudioOther
[Razer] Mamba 4G 2012 [Beats] urBeats [NZXT] 24/8/6 pin extensions 
CPUMotherboardGraphicsRAM
[Intel] Core i5-3210M [Apple] Proprietary [Intel] HD 4000 [Hynix] H5TC2G83CFR DDR3L 8GB 
Hard DriveOSMonitorKeyboard
[Samsung] 128GB SSD [Apple] OS X 10.8.2 ML 13" 2560x1600 Retina [Apple] Backlit Keyboard 
CaseMouse Pad
[Apple] Unibody [Apple] Trackpad 
  hide details  
Reply
post #8 of 287
^^ lol

wheeeee!!!

378


By the way.nice guide Sean thumb.gif
Slinky
(14 items)
 
  
CPUMotherboardGraphicsRAM
i7-2600k@4.7GHz HT on (1.364v) ASUS P8Z68-V Pro Inno3D Geforce GTX 570 Corsair XMS3 (2x4Gb) 2000MHz CL9@2133 11.11.11.27 
Hard DriveCoolingOSMonitor
OCZ Agility 3 120Gb + x2 1Tb RAID0 Corsair H80 Windows 7 Ultimate x64 BenQ 24" Samsung 19" 
PowerCase
OCZ GameXstream 850W Antec 300 
  hide details  
Reply
Slinky
(14 items)
 
  
CPUMotherboardGraphicsRAM
i7-2600k@4.7GHz HT on (1.364v) ASUS P8Z68-V Pro Inno3D Geforce GTX 570 Corsair XMS3 (2x4Gb) 2000MHz CL9@2133 11.11.11.27 
Hard DriveCoolingOSMonitor
OCZ Agility 3 120Gb + x2 1Tb RAID0 Corsair H80 Windows 7 Ultimate x64 BenQ 24" Samsung 19" 
PowerCase
OCZ GameXstream 850W Antec 300 
  hide details  
Reply
post #9 of 287
Thanks for doing a guide about this, now we have something to link next time someone says "you don't need more than 8gb" in a thread.

Subed for when I finally put my SB-E rig with 16gb of ram together.
i7 3820
(16 items)
 
  
CPUMotherboardGraphicsGraphics
i7 3820 AsRock X79 Extreme6 Sapphire 6950 2gb Sapphire 6950 2gb 
RAMHard DriveOptical DriveCooling
G.SKILL Ripjaws X Series 16GB (4 x 4GB)  Crucial M4 128gb LG HD-DVD/Blu-Ray Combo Drive Corsair H80 
OSMonitorKeyboardPower
Windows 7 Pro 64bit Samsung XL2370 Cooler Master Quick Fire (cherry blues) Corsair TX850M 
CaseMouseMouse PadAudio
Fractal Define R3 SS Xai SS 4HD Asus Xonar Essence ST 
  hide details  
Reply
i7 3820
(16 items)
 
  
CPUMotherboardGraphicsGraphics
i7 3820 AsRock X79 Extreme6 Sapphire 6950 2gb Sapphire 6950 2gb 
RAMHard DriveOptical DriveCooling
G.SKILL Ripjaws X Series 16GB (4 x 4GB)  Crucial M4 128gb LG HD-DVD/Blu-Ray Combo Drive Corsair H80 
OSMonitorKeyboardPower
Windows 7 Pro 64bit Samsung XL2370 Cooler Master Quick Fire (cherry blues) Corsair TX850M 
CaseMouseMouse PadAudio
Fractal Define R3 SS Xai SS 4HD Asus Xonar Essence ST 
  hide details  
Reply
post #10 of 287
Hi Sean, I think you should read my reply on this thread (and also page p.6):

http://www.overclock.net/t/1193401/why-it-is-bad-to-store-the-page-file-on-a-ram-disk/60

And modify your guide accordingly thumb.gif
Thanks for the guide.
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Hard Drives & Storage
Overclock.net › Forums › Components › Hard Drives & Storage › How to: Set up and Utilize RAM Disks