techPowerUp! Forums

Go Back   techPowerUp! Forums > Hardware > System Builder's Advice

Reply
 
Thread Tools
Old Nov 5, 2009, 09:45 PM   #1
lemonadesoda
Eligible for custom title
 
lemonadesoda's Avatar
 
Join Date: Aug 2006
Posts: 5,337 (2.17/day)
Thanks: 749
Thanked 960 Times in 710 Posts

System Specs

[expert][tip] Using a RAMdisk to speed up your HDD - and/or reduce SSD trashing

This thread is for discussion of RAMdisks and RAMdrives (software and/or hardware devices). I used to be pretty cynical about this stuff. More gimmick than use. But with my recent purchase of a SSD for a netbook, and an inability to "move" temp files to a second HDD, I started looking into RAMdisks as a way to manage the write-thrashing issue. Here are my results, and also the discovery that a RAMdisk can even speed up browsing on a netbook that already has a SSD!

Definitions
A RAMdisk is a virtual disk that exists in RAM memory rather than as physical media. A RAMdisk is typically set up in available system RAM. More here

A RAMdrive is like a RAMdisk other than it uses dedicated RAM on separate hardware rather than using an allocation of available system RAM. An example here

RAMdisks/drives can be fully volatile. When the PC is turned off, the power is lost, and the data is lost.

RAMdisks/drives can be battery backed. When the PC is turned off, the data is retained, so long as the battery has charge. Some devices are designed to draw a small about of memory from the PSU standby power so that the battery is always being charged.

RAMdisks/drives can also page-off the data to physical media, like HDD on shutdown. A software utility creates an image, saves it, before shutting off. It then reloads this image when the computer boots.

Why use a RAMdisk/drive?
Memory is much faster than HDD. Obviously. It also turns out to be a lot faster than flash memory (as used by SSDs). It means, with judicious use, you can get significant speedups over a HDD, even over a SSD. In fact, initial testing on my side, has shown that a RAMdisk can be up to 10x faster than a SSD, and 100x faster than a HDD in some situations. Your milage will vary.

There is another significant benefit of using a RAMdisk if you have a SSD. Write thrashing. No matter how big the SSD cache, or the cleverness of wear-leveling algorithmns, if you CAN reduce the number of (unnecessary) writes, you will improve the half-life of your SSD, and in fact will get significant speed ups due to the way SSDs work... requiring large block erase and write cycles.

Another benefit of a RAMdisk WITHOUT backup, is that when you power down the PC the data is gone. Forever. No need to run system utility cleanups to wipe temp or confidential data.

Only for desktops? Only for massive RAM workstations?
No. I currently got myself drawn into using a RAMdisk on my netbook. The netbook was upgraded to SSD and 2GB. I was a little worried about the heavy write-thrashing due to all the internet surfing (tens of thousands of gifs, jpgs and cookies each day), and the antivirus running in the background and scanning and logging tens of times per second.

I have a 256MB RAMdisk on my netbook. Tiny. But about the right size for a days work of use. Give what Windows Task Manager says about memory use, I could probably up this to 512MB on my 2GB machine without a loss of performance hitting the pagefile. I would certainly have it at 512MB if the netbook had 4GB. But there's Atom for you... memory limited on intel chipset.

Surely no speed gains compared to SSD!
I kid you not. The netbook was a lot snappier upgrading from HDD to SSD. But it is faster still with the RAMdisk.

OK, what are my options?
I have looked into free RAMdisk solutions. Over the last couple of days, i have used:
  1. Gavotte http://www.techsnack.net/gavotte-ram...irtual-hardisk
  2. Dataram http://memory.dataram.com/products-a...ftware/ramdisk
  3. Romex http://www.romexsoftware.com/

I found the gavotte first. It's a utility based directly off the MS code provided on their tech site. What "mr. gavotte" did, was write an installer and management utility for it, rather than having to use registry hacks. How to install it? Check the link I provided above.

The gavotte ramdisk worked well. And it was fast.

I then tried the dataram product. The version is currently in "release candidate" edition, so is likely to be improved soon. I found the dataram product to be faster than the gavotte, especially with random 4K reads/writes. AND dataram had a PAE option, so that you can use more than 4GB even on 32bit OS. If, e.g., you system has 8GB of RAM (like my xeon workstation) but you use a 32bit OS, the RAMdisk can be placed in the "upper 4GB" which then doesnt affect available system RAM. NEAT. Only it bluescreen with me when I tried it. So the dataram product is faster, but not as stable as the gavotte?

I then found romex ramdisk. The website looks a bit cheap and cheesy, but the Free Edition of the software works very well and seems to be the fastest product of all three.

If you try more than one of the above RAMdisks, be SURE TO UNINSTALL/REMOVE the older version (and reboot) before installing the other product.

Where to install it?
On my netbook, I have installed 256MB (of 2GB) RAMdisk as a Z: drive. On my workstation, I have installed a 512MB (of 4GB) RAMdisk as a Z: drive. I would like to use PAE, but this is not available on gavotte, unstable on dataram, and a pay-for only option with romex. All programs have an option to automatically create a \TEMP folder. Select this, so that you can then use it for system TEMP files. See later how to do this.

What do you do with it?
You point all temp directories to it. e.g. internet temps, and windows temps. How?

IE > Tools > Internet options > Settings > General tab / Temporary internet files > Settings > Move folder > browse to z:

Rightclick My Computer > Properties > Environment Variables > then change as many user and system temps as you want to Z:

What kind of speedups can you expect?

BEFORE


With a SSD


With a RAMdisk


Yes, just sit back a minute and reflect on those figures. Now go to ccleaner and analyse... and look at those tens or hundreds of thousands of temp files. Wouldnt they fit better in the RAMdisk?

Put the pagefile in the RAMdisk?
General answer: No. Don't reduce your memory footprint to then put the pagefile in there. You are stealing with one hand to give to the other.

Specific answer: If you have COPIOUS amounts of unused memory, esp. if you are running 32bit OS with PAE, then yes, put the pagefile there. It is much faster to hit memory than a HDD or SSD. But keep the general answer in mind.

Summary
I think that many TPU members would benefit from setting up a small RAMdisk for their temp files. It will cost you 256-512MB of system memory, but I am sure you will "feel" the benefits.

Other software? Other setups? Your experience?
Please use the thread to discuss any other RAMdisk you might have sued or tested. Especially some of the commercial expensive ones. Link away. However, please add some feedback on why you would recommend an alternative over the suggestions above. Also, share your before-and-after results.

I am curious to see the performance results of some of our i7 friends running DDR3.
lemonadesoda is offline  
Reply With Quote
Old Nov 5, 2009, 09:49 PM   #2
AthlonX2
Better Than You
 
AthlonX2's Avatar
 
Join Date: Sep 2006
Location: Toledo,Ohio
Posts: 5,449 (2.24/day)
Thanks: 729
Thanked 1,572 Times in 994 Posts

System Specs

ill give it a shot and post my results
AthlonX2 is offline  
Reply With Quote
Old Nov 5, 2009, 09:53 PM   #3
LittleLizard
2000 Posts
 
LittleLizard's Avatar
 
Join Date: Nov 2008
Location: Latin America, Uruguay
Posts: 3,380 (2.06/day)
Thanks: 339
Thanked 584 Times in 516 Posts

System Specs

that could be useful as i have a p4 with 2gb of memory and no way to use them all. also my ide hdd is fuckinly slow. i think ill try it

EDIT: now that im thinking, i will lose the information in there as soon as i turn of the pc (i turn off a power strip for saving energy). so is only for temp files and if its that, how i configure it to use specifically for , for example the firefox cache)?
__________________


"oh no, i make a very good person. I eat poop and sleep just like everyone else.
My sense of humour just happens to fall under the DnD category of Chaotic Evil." - Mussels
"I was expecting a line of EVGA FTW condoms or something like that." - DrPepper
"I like my sex like my basketball, one on one, and with as little dribbling as possible" - Robert-The-Rambler

Last edited by LittleLizard; Nov 5, 2009 at 10:00 PM.
LittleLizard is offline  
Reply With Quote
Old Nov 5, 2009, 10:09 PM   #4
lemonadesoda
Eligible for custom title
 
lemonadesoda's Avatar
 
Join Date: Aug 2006
Posts: 5,337 (2.17/day)
Thanks: 749
Thanked 960 Times in 710 Posts

System Specs

Change temp files in firefox (from google)

I believe there are add-ins to do this easily, but manually:

1./ go to the URL: about:config
2./ enter the dragons lair (!)
3./ Right-click somewhere in the list and select New > String, call it browser.cache.disk.parent_directory
4./ Enter the value z:\temp
lemonadesoda is offline  
Reply With Quote
The Following 3 Users Say Thank You to lemonadesoda For This Useful Post:
Old Nov 5, 2009, 10:12 PM   #5
AthlonX2
Better Than You
 
AthlonX2's Avatar
 
Join Date: Sep 2006
Location: Toledo,Ohio
Posts: 5,449 (2.24/day)
Thanks: 729
Thanked 1,572 Times in 994 Posts

System Specs

no ramdisk

ramdisk
AthlonX2 is offline  
Reply With Quote
Old Nov 5, 2009, 10:13 PM   #6
THRiLL KiLL
500 Posts
 
THRiLL KiLL's Avatar
 
Join Date: Oct 2009
Location: Seattle
Posts: 612 (0.47/day)
Thanks: 88
Thanked 131 Times in 115 Posts
Send a message via MSN to THRiLL KiLL

System Specs

ack the days of dos come back to haunt us!.. (im showing my age)

great writeup =) you should list the most common locations for stuff like the temp folder for windows, firefox and ect.

on a sidenote. when is the ramdisk created? on boot-up or afterlog in? if its on boot-up we can point the windows page file to this =)
THRiLL KiLL is offline  
Reply With Quote
Old Nov 5, 2009, 10:15 PM   #7
AthlonX2
Better Than You
 
AthlonX2's Avatar
 
Join Date: Sep 2006
Location: Toledo,Ohio
Posts: 5,449 (2.24/day)
Thanks: 729
Thanked 1,572 Times in 994 Posts

System Specs

i believe its on bootup,or windows would throw a fit because there is no temp folder
AthlonX2 is offline  
Reply With Quote
Old Nov 5, 2009, 10:21 PM   #8
lemonadesoda
Eligible for custom title
 
lemonadesoda's Avatar
 
Join Date: Aug 2006
Posts: 5,337 (2.17/day)
Thanks: 749
Thanked 960 Times in 710 Posts

System Specs

Quote:
Originally Posted by AthlonX2 View Post
I bet you ran that ramdisk bench twice, just to check Did you smile, or did you just drop your jaw a little? Mine did.
Now set your internet temps and system temps to the z: drive and report back with your "user experience". You can "afford to spend" 512MB of your 4GB on the ramdisk IMO.
lemonadesoda is offline  
Reply With Quote
Old Nov 5, 2009, 10:24 PM   #9
AthlonX2
Better Than You
 
AthlonX2's Avatar
 
Join Date: Sep 2006
Location: Toledo,Ohio
Posts: 5,449 (2.24/day)
Thanks: 729
Thanked 1,572 Times in 994 Posts

System Specs

did that,one major thing i notice is while browsing the net,going back and forth from webpages they load alot faster,im assuming because windows is accesing from the ramdisk,im curious to see what would happen if someone ran there pagefile from this
AthlonX2 is offline  
Reply With Quote
Old Nov 5, 2009, 10:30 PM   #10
THRiLL KiLL
500 Posts
 
THRiLL KiLL's Avatar
 
Join Date: Oct 2009
Location: Seattle
Posts: 612 (0.47/day)
Thanks: 88
Thanked 131 Times in 115 Posts
Send a message via MSN to THRiLL KiLL

System Specs

ill have to check it out =)

i know if there is no swap file, you cant log into windows =) (you will get to the log in screen, and then it will kick you back out to the login screen when u try yo log in)
THRiLL KiLL is offline  
Reply With Quote
Old Nov 5, 2009, 10:35 PM   #11
KieranD
Eligible for custom title
 
KieranD's Avatar
 
Join Date: Aug 2007
Location: Glasgow, Scotland
Posts: 5,460 (2.59/day)
Thanks: 1,640
Thanked 821 Times in 712 Posts
Send a message via MSN to KieranD

System Specs

Quote:
Originally Posted by AthlonX2 View Post
did that,one major thing i notice is while browsing the net,going back and forth from webpages they load alot faster,im assuming because windows is accesing from the ramdisk,im curious to see what would happen if someone ran there pagefile from this
wouldnt that be just like disabling your pagefile and running it just off the ram instead?

i know that like 8gb and high amounts of ram you can afford to have only a minute pagefile
KieranD is offline  
Reply With Quote
Old Nov 5, 2009, 11:11 PM   #12
Cuzza
500 Posts
 
Cuzza's Avatar
 
Join Date: Jul 2007
Location: New Zealand
Posts: 932 (0.43/day)
Thanks: 136
Thanked 213 Times in 166 Posts

System Specs

Wow... Installation was so easy (Gavotte). I've gone 256mb and moved all my temps there, everything is running sweetly. Hard to say if it's made any difference yet. Will have to do a couple of unscientific tests. Will post benchies soon.
__________________

My Sega Mod Project - - - - - - - My Macintosh Mod Project
“I don't want to get sued by any 9 fungered modders cause I gave them the idea. My wife concurs with me on that, too.” -Mark_Hardware
"For one believes he may eat all things, but he who is weak eats only vegetables." - Romans 14:2
Cuzza is offline  
Reply With Quote
Old Nov 5, 2009, 11:19 PM   #13
Cuzza
500 Posts
 
Cuzza's Avatar
 
Join Date: Jul 2007
Location: New Zealand
Posts: 932 (0.43/day)
Thanks: 136
Thanked 213 Times in 166 Posts

System Specs

This is on my Samsung NP-Q45 Notebook

SSD result (Super Talent 64gb - low end part):



RAMdisk result:

__________________

My Sega Mod Project - - - - - - - My Macintosh Mod Project
“I don't want to get sued by any 9 fungered modders cause I gave them the idea. My wife concurs with me on that, too.” -Mark_Hardware
"For one believes he may eat all things, but he who is weak eats only vegetables." - Romans 14:2
Cuzza is offline  
Reply With Quote
Old Nov 5, 2009, 11:19 PM   #14
AphexDreamer
Eligible for custom title
 
AphexDreamer's Avatar
 
Join Date: Jun 2007
Location: C:\Program Files (x86)\Aphexdreamer\
Posts: 5,614 (2.59/day)
Thanks: 812
Thanked 888 Times in 674 Posts

System Specs

WOW, I can't believe I never thought to search for this. Awesome.

I'd like to note that the free edition of Romex will not work on 64 bit systems.

EDIT: I'd also like to note that the Gavot isn't working for me on 64 bit. Looking for a 64 bit version.
__________________
Sent from my PC using chrome.
AphexDreamer is offline  
Reply With Quote
The Following User Says Thank You to AphexDreamer For This Useful Post:
Old Nov 5, 2009, 11:25 PM   #15
lemonadesoda
Eligible for custom title
 
lemonadesoda's Avatar
 
Join Date: Aug 2006
Posts: 5,337 (2.17/day)
Thanks: 749
Thanked 960 Times in 710 Posts

System Specs

^ try http://memory.dataram.com/products-a...wnload-ramdisk
lemonadesoda is offline  
Reply With Quote
The Following 3 Users Say Thank You to lemonadesoda For This Useful Post:
Old Nov 5, 2009, 11:33 PM   #16
AphexDreamer
Eligible for custom title
 
AphexDreamer's Avatar
 
Join Date: Jun 2007
Location: C:\Program Files (x86)\Aphexdreamer\
Posts: 5,614 (2.59/day)
Thanks: 812
Thanked 888 Times in 674 Posts

System Specs

Can someone show me what temp folders to move? Win 7 Also how would I just move it to the other drive?

Also it wouldn't be wise to install anything like game because I would just lose it on restart right?

Ok I figured it out.
__________________
Sent from my PC using chrome.

Last edited by AphexDreamer; Nov 5, 2009 at 11:39 PM.
AphexDreamer is offline  
Reply With Quote
Old Nov 5, 2009, 11:36 PM   #17
stevednmc
500 Posts
 
stevednmc's Avatar
 
Join Date: Jun 2009
Location: nebraska
Posts: 890 (0.63/day)
Thanks: 84
Thanked 85 Times in 80 Posts

System Specs

sticky!!!!!
stevednmc is offline  
Reply With Quote
Old Nov 5, 2009, 11:43 PM   #18
Polarman
1000 Posts
 
Polarman's Avatar
 
Join Date: Jun 2008
Location: Laval, Qc
Posts: 1,575 (0.88/day)
Thanks: 41
Thanked 300 Times in 199 Posts

System Specs

I've read about this long time ago but never really bothered. Maybe because ram was more expensive during those days.
__________________
http://forums.techpowerup.com/image.php?u=55205&type=sigpic&dateline=1220312009
Polarman is offline  
Reply With Quote
Old Nov 5, 2009, 11:45 PM   #19
Velvet Wafer
3500 Posts
 
Velvet Wafer's Avatar
 
Join Date: Jun 2009
Location: North of Germany
Posts: 3,846 (2.68/day)
Thanks: 2,286
Thanked 1,025 Times in 838 Posts
Send a message via ICQ to Velvet Wafer Send a message via MSN to Velvet Wafer

System Specs

now im using mozilla... i only have the system tweaks now... may someone put up a useable list, which apps can benefit from a RAM-drive?
__________________
CPU-Z validation sig pics temporarily blocked
Velvet Wafer is offline  
Reply With Quote
Old Nov 5, 2009, 11:55 PM   #20
lemonadesoda
Eligible for custom title
 
lemonadesoda's Avatar
 
Join Date: Aug 2006
Posts: 5,337 (2.17/day)
Thanks: 749
Thanked 960 Times in 710 Posts

System Specs

In addition to the IE temporary internet files change to z:, firefox configuration change, and the system and user changes in Environment Variables (all described above), I noticed an improvement with WinRAR, for instantaneous unzips:

lemonadesoda is offline  
Reply With Quote
Old Nov 6, 2009, 12:00 AM   #21
AphexDreamer
Eligible for custom title
 
AphexDreamer's Avatar
 
Join Date: Jun 2007
Location: C:\Program Files (x86)\Aphexdreamer\
Posts: 5,614 (2.59/day)
Thanks: 812
Thanked 888 Times in 674 Posts

System Specs

you can use this to make the RAMdrive use Readyboost. I don't know if it would help at all but since Readyboost is supposed to accommodate temp files and such it might help.
__________________
Sent from my PC using chrome.
AphexDreamer is offline  
Reply With Quote
Old Nov 6, 2009, 12:04 AM   #22
Wrigleyvillain
3500 Posts
 
Wrigleyvillain's Avatar
 
Join Date: Oct 2007
Location: Chicago
Posts: 4,499 (2.20/day)
Thanks: 1,524
Thanked 1,574 Times in 1,117 Posts

System Specs

Yeah I recently threw in a 2x1GB set along with my usual 2x2GB to play with a RAM disk. The 4GB kit is 1066 running at 1081 at 2.12v and the 2Gb kit can do 1200 with 2.2 so all I did in BIOS was bump the NB volts a little. A quick Google before and now my own experience tells me mismatched DIMMs for 6GB works just fine but you sure never hear of anyone doing it...
Wrigleyvillain is offline  
Reply With Quote
Old Nov 6, 2009, 12:04 AM   #23
Velvet Wafer
3500 Posts
 
Velvet Wafer's Avatar
 
Join Date: Jun 2009
Location: North of Germany
Posts: 3,846 (2.68/day)
Thanks: 2,286
Thanked 1,025 Times in 838 Posts
Send a message via ICQ to Velvet Wafer Send a message via MSN to Velvet Wafer

System Specs

Quote:
Originally Posted by lemonadesoda View Post
firefox configuration change
How?^^
__________________
CPU-Z validation sig pics temporarily blocked
Velvet Wafer is offline  
Reply With Quote
Old Nov 6, 2009, 12:05 AM   #24
Wrigleyvillain
3500 Posts
 
Wrigleyvillain's Avatar
 
Join Date: Oct 2007
Location: Chicago
Posts: 4,499 (2.20/day)
Thanks: 1,524
Thanked 1,574 Times in 1,117 Posts

System Specs

^ Google "move Firefox cache"
Wrigleyvillain is offline  
Reply With Quote
Old Nov 6, 2009, 12:05 AM   #25
lemonadesoda
Eligible for custom title
 
lemonadesoda's Avatar
 
Join Date: Aug 2006
Posts: 5,337 (2.17/day)
Thanks: 749
Thanked 960 Times in 710 Posts

System Specs

POST #4, young man! I'm not much of a firefox user, but I tested it, and it works. See, here is the folder it creates:
lemonadesoda is offline  
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ASUS P7P55D Premium + Marvell SSD SATA 6Gb/s controller: ROCK YOUR HDD NOW sxs112.tw Storage 0 Oct 25, 2009 03:04 AM
A-DATA Presents the Killer Speed of 1TB SSD with XPG 2.5inch to 3.5inch SSD Converter btarunr News 36 Jun 9, 2009 10:02 PM
TMS Breaks Speed and Capacity Records with its SSD btarunr News 6 Jul 24, 2008 08:10 AM
using a raid setup and another hdd steveninspokane Storage 9 May 8, 2008 02:10 AM
program to reduce CPU fan speed ? Maju General Hardware 10 Dec 2, 2006 11:49 AM


All times are GMT. The time now is 06:27 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
no new posts