I started looking around for information after reading about putting your Firefox cache onto a ram disk to improve speed. After a couple of hours I have found the following for Windows, Linux and MacOsX.
Windows : I tried several different home brew options and noted that most of the solutions were based off of the W2k resource kit drivers which means no vista support. Finally I found DataRAM , grab the top download (Dataram RAMDisk Beta - Windows Vista, XP, Server) which is in public beta at the moment, its free and supports up to 4gb disks which is probably overkill for most users but allows for the intriguing possibility of loading a game into the RAMdisk to increase level load times etc.
The best feature of Dataram is the ability to save and load disk images, this allows you to save the content of the ramdisk and load it again on startup. There is also a auto save option which I havn't tested but could be very handy.
The best way to create the image, I have found, is in the settings tab set the size ( Dataram wont let you set more then half your RAM as a disk for obvious reasons ), select either FAT16, FAT32 or unformatted if you want an NTFS disk (You will have to go through the Computer Management tool found in the Administrator Tools menu once the driver is running and you will see an unformatted disk, format it as NTFS.)
Now go to the Load and Save tab and select Save image at shutdown, enter the location and file name to be used and select Save Image now. Copy the File name to the Load image settings section and select Load disk image at startup. Now stop the RAMdisk, depending on your OS you may have to actually restart windows to unload the driver.
If you had to restart the OS go back into the Dataram app and manually select Start. Once the driver is running it will automatically resume on OS startup.
Now you have a persistent RAM disk, awesome.
Linux : Here is a good article on RAM disk creation for kernel 2.4 and greater. When I get my Linux/Hackintosh box set-up i'll do some investigation into making a persistent image.
MacOsX : Here is a cool little GUI utility for creating RAM disks for OsX 10.4 and later, again no persistence yet, see previous comment.
While testing FireFox, I first just copied the entire FireFox folder from Program files\Mozilla Firefox onto the RAM disk and pointed the FireFox cache at it, this improved the load, shutdown and page load speed, I have since just left the cache on the RAMdisk as I leave my laptop turned on all the time anyway.
To change the Firefox cache location, do the following :
Type about:config into the firefox address bar, you will get a warning about dragons (!). If your brave enough to continue you will then see a list of all the inbuilt preferences inside FF. First we change the location of the cache, put browser.cache.disk.parent_directory into the search bar, double click the found entry and change the setting to your newly created RAMdisk, in my case G:\
I set my ram disk at 55mb, so now I want to make sure the cache doesn't exceed that size. To do this we have to create a new entry as its normally hidden, right click anywhere in the about:config page and select New, then Integer, copy and paste this browser.cache.memory.capacity
Now I give it a value of 50000 for 50mb.
My settings now look like this :

That's it, close the about:config page and restart FireFox, check the RAMdisk and it will now have a Cache folder.
0 comments:
Post a Comment