My Dell Mini Forum

Go Back   MyDellMini Forum > Dell Mini 9 Forums > Dell Mini 9 Hardware and Upgrades
Reload this Page Ram drive improves performance significantly
Connect with Facebook
Reply
 
LinkBack (1) Thread Tools Display Modes
  (#21) Old
Senior Member
 
Posts: 135
Join Date: Jan 2009
Default 08-12-2009, 03:22 AM

i actually just started using a ramdrive myself. have a 768mb one, and i actually pointed windows xp to use 512mb of that for pagefile. i know it sounds counter intuitive as the page file is spost to be "ram on hard drive if ram runs out" BUT alot of programs load stuff to the pagefile REGARDLESS of ram availability. as well as temp and tmp folders and FF cache, this has made things amazing. add in Flashfire for a ssd buffer on ram and its been awesome.
Reply With Quote
  (#22) Old
Senior Member
 
Posts: 126
Join Date: Jul 2009
Default 08-12-2009, 03:55 PM

Nothing loads to the pagefile.

You are just wasting ram and forcing the use of the pagefile as far as windows is concerned. I'm not sure if window's ram drives work the same as tmpfs in linux land but if they do, and it should, then ram drives are "Potential" capacities. Meaning, you can create a 1GB ram drive, but it wont use 1GB of ram unless you move 1GB of files onto it. By putting the pagefile on your ramdisk, you have removed however large your pagefile is from your usable ram pool. This would then increase the potential of the pagefile being used.

Not only is it slower to access data from swap located in ram rather than just directly in non-swapped ram like it would be if the pagefile wasn't taking up ram space, but you are removing potential space for temporary / cache files that you now either have to let write to disk or force you to increase the size of the ramdisk and further limit the usable ram in your system.

The pagefile will get stuff written to it even if you're not using all your ram because often cached data is re-retrieved faster from a single point (pagefile) than from random places on the disk. Also, pushing un-used apps to swap during idle time is less costly than having to push them there during high contention times. But these are preventive measures you dont need if you dont care about re-retrieving cache data from disk or if you never come close to using all of your ram (2GB is really hard to fill up under normal use).

So, get rid of the pagefile altogether, it's not needed if you have 2GB of ram. You can keep the ramdrive at 700+MB (assuming this is a potential capacity and it only takes up as much ram as needed as you write data to it). Make it the windows Temp dir (not that anything really uses it) and see if you can't make windows use it for it's windows updates downloads, as well as your download dir and cache for your web browser. Basically, anything you dont care about losing during a reboot.

If ram drives are pre-allocated and actually take up ram for however large they are in windows, then i suggest making them only as big as necessary and only put data that gets frequently written to it to minimize writes to your ssd. possibly use a cheap usb thumb drive for the downloads dir in that case.
Reply With Quote
  (#23) Old
Junior Member
 
Posts: 7
Join Date: Mar 2009
Default Great little tweak.. - 08-14-2009, 01:42 PM

Just did this and saw a noticeable performance improvement web brwosing. Thanks to the OP for posting this.


Mi Mini: Cherry Red: 64GB Runcore: 2GB RAM: XP PRO
Reply With Quote
  (#24) Old
Junior Member
 
Posts: 1
Join Date: Nov 2009
Default 11-23-2009, 09:54 PM

Thanks for the instructions! This is the first thing I've tried that actually felt like a speedup.

Quote:
Originally Posted by ubiquityman View Post
2. Create a 256-512MB RAM DRIVE (I used drive letter B
Follow the directions here. Search for "Gavotte Ramdisk"
Free Ramdisk for Windows Vista, XP, 2000 and 2003 Server My Digital Life
Note that for me I had to specify via the radio button "Fixed media" and not "RAM drive" or it didn't work [works fine with fixed media setting, though].
-r
Reply With Quote
  (#25) Old
Senior Member
 
Posts: 151
Join Date: Oct 2008
Default 11-24-2009, 05:09 PM

I just tried this with Opera and noticed some improvement. FYI, to access the setting to change the cache path in Opera, type opera:config in the browser window and scroll down to User Prefs. Click the little triangle to expand the menu and you can then change the "cache directory4" to the letter of your new ramdrive, e.g., R:\ . Be sure to scoll to the bottom and click save before exiting.
Reply With Quote
  (#26) Old
Senior Member
 
Posts: 188
Join Date: Mar 2009
Default 11-25-2009, 01:28 AM

Microsoft has free RAM drive source code that works on everything from Windows 2000 up to Windows 7 (all x32).

I did not compile this code, but have used this on Windows XP and Windows 7 without any issues. The code has been modified to support slightly larger RAM disks then the MS sample.

Just make sure you run it as administrator on Windows 7.

Thanks,
Brian
Attached Files
File Type: zip ramdisk.zip (150.4 KB, 20 views)
Reply With Quote
  (#27) Old
Senior Member
 
Posts: 188
Join Date: Mar 2009
Default 11-28-2009, 05:20 PM

Quote:
Originally Posted by safemode View Post
Nothing loads to the pagefile.

You are just wasting ram and forcing the use of the pagefile as far as windows is concerned. I'm not sure if window's ram drives work the same as tmpfs in linux land but if they do, and it should, then ram drives are "Potential" capacities. Meaning, you can create a 1GB ram drive, but it wont use 1GB of ram unless you move 1GB of files onto it. By putting the pagefile on your ramdisk, you have removed however large your pagefile is from your usable ram pool. This would then increase the potential of the pagefile being used.

Not only is it slower to access data from swap located in ram rather than just directly in non-swapped ram like it would be if the pagefile wasn't taking up ram space, but you are removing potential space for temporary / cache files that you now either have to let write to disk or force you to increase the size of the ramdisk and further limit the usable ram in your system.

The pagefile will get stuff written to it even if you're not using all your ram because often cached data is re-retrieved faster from a single point (pagefile) than from random places on the disk. Also, pushing un-used apps to swap during idle time is less costly than having to push them there during high contention times. But these are preventive measures you dont need if you dont care about re-retrieving cache data from disk or if you never come close to using all of your ram (2GB is really hard to fill up under normal use).

So, get rid of the pagefile altogether, it's not needed if you have 2GB of ram. You can keep the ramdrive at 700+MB (assuming this is a potential capacity and it only takes up as much ram as needed as you write data to it). Make it the windows Temp dir (not that anything really uses it) and see if you can't make windows use it for it's windows updates downloads, as well as your download dir and cache for your web browser. Basically, anything you dont care about losing during a reboot.

If ram drives are pre-allocated and actually take up ram for however large they are in windows, then i suggest making them only as big as necessary and only put data that gets frequently written to it to minimize writes to your ssd. possibly use a cheap usb thumb drive for the downloads dir in that case.
Almost every RAM drive on Windows, that I have seen, is not Dynamic storage, it is Static. Meaning if you want a 512 MB Ram drive, it allocates 512 MB of your memory whether you are using it all or not.

I have 2 GB of RAM, and use a 512MB Ram drive. I have the IE cache which is set at 250 MB in IE and some other random temp stuff on there.

I just hate moving TMP and TEMP to a RAM drive, because sometimes if you try to DL a file larger than the free space on the RAM drive Windows gets super pissed. I have not tried this on Windows 7 yet to see how it handles it though. It might be better.
Reply With Quote
  (#28) Old
Junior Member
 
Posts: 1
Join Date: May 2009
Default Need help editing TMP and TEMP variables - 02-07-2010, 12:55 AM

For some reason I can't change the TMP and TEMP variables from "C:" to "B:". When I click on "Edit variables" only the string after "C:" comes up and I can't get to delete the C and insert B. Any suggestions? Thanks.



;53578]If you have 2GB of ram, I recommend the following performance optimizations for Windows XP:

1. Disable Virtual Memory (swap drive)
Control Panel -> System -> Advanced tab -> Performance [Settings] -> Advanced tab -> Virtual Memory [Change]
Select "No Paging file"

2. Create a 256-512MB RAM DRIVE (I used drive letter B
Follow the directions here. Search for "Gavotte Ramdisk"
Free Ramdisk for Windows Vista, XP, 2000 and 2003 Server My Digital Life

3. Set the TEMP and TMP environment variables to B:\
Control Panel -> System -> Advanced tab -> [Environment Variables]
Edit Variables TEMP and TMP.
(I point both to B:\ since my ramdrive is B: )

4. Set the Internet Explorer (or Firefox Cache) to the RAMdrive
Internet Explorer -> Tools -> Options -> Browsing History [Settings]
Click the [Move Folder] button, and assign the temp folder to your ramdrive.
Change the disk space to be slightly less than the capacity of the RAM drive.
(Firefox is a bit more involved, requires editing of one of the config files)

After doing all that my Mini 9 felt noticeably faster.[/QUOTE]
Reply With Quote
  (#29) Old
Junior Member
 
Posts: 25
Join Date: Oct 2009
Default 02-07-2010, 08:11 AM

I'd really like to try this! However the beginner I am,Could someone explain how to change my drive letter in environmental varibles from C:\ to R:\ ? and is it changed in the user or system varibles?
THANKS in advance
Reply With Quote
  (#30) Old
Super Moderator
 
holmes4's Avatar
 
Posts: 3,720
Join Date: Nov 2008
Location: New Hampshire
Default 02-07-2010, 01:38 PM

I don't think you can change the drive letter of the boot device. It is recorded in so many places that is an invitation to problems. Why do you want to do that?

If you were to try, you would do it through the Disk Management tool available by right clicking on My Computer and selecting Manage.


Steve
Mini 9|2GB RAM|64GB RunCore|Intel 5300|Windows 7/Snow Leopard
Reply With Quote
Reply

Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On


LinkBacks (?)
LinkBack to this Thread: http://www.mydellmini.com/forum/dell-mini-9-hardware-upgrades/6382-ram-drive-improves-performance-significantly.html
Posted By For Type Date
dubno's linux Bookmarks on Delicious This thread Refback 10-04-2009 01:15 PM

UMPC Topsites
Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
Copyright © 2008-2010 MyDellMini.com. Hosted on a CatN vCluster.