MalwareTips.com
Current time: 05-23-2013, 06:06 PM
Hello,is this your first visit?! If NOT use this login panel!
Nick:  
Password:     
If YES, you should join
our amazing community!
Create an account!
Follow us
Facebook MalwareTips.com Twitter MalwareTips.com Google Plus  MalwareTips.com
  • Portal
    Home
  • News
    Headlines
  • Forums
    Community
  • Tutorials
    How-to's
  • Malware Help
    Assistance
    • Removal assistance
    • Malware removal guides
    • Security wizard
  • Reviews
    Products review
    • Video reviews
    • Written reviews
  • Giveaways
    Free stuff
    • Giveaways and promo
    • Discounts
    • Desktop enhancements
  • Malware Hub
    Virus Pipe
    • Virus Exchange
    • Virus List
  • Blogs
    Research

User Control Panel View New Posts View Today's Posts House Rules

MalwareTips.com / Daily News & Tips / How-To Articles, Tips and Guides / Tweak & Secure Windows v
1 2 3 4 Next »
/ Speed up Chrome & Firefox by using a RAM disk
Poll: Will you be giving RAMDisk a try?
Yes
No
I would if I had the RAM to spare.
[Show Results]
 
Pages (3): 1 2 3 Next »
Tweet
Post Reply 
Threaded Mode | Linear Mode
Speed up Chrome & Firefox by using a RAM disk
06-21-2012, 06:31 PM
Post: #1
MrXidus Offline
COMMUNITY MODERATOR
Posts: 1,842
Joined: Apr 2011
Kudos 1688
Thumbs Up Speed up Chrome & Firefox by using a RAM disk
[Image: lOLJ3.png]

Moving your browser's cache to a RAM disk

It’s no secret that Google’s Chrome browser is fast. Really fast. But with a little help from our friend the RAM disk, we can make it even faster. If you’ve never used a RAM disk before, you’ve been missing out on a potential speed increase, especially those of you on laptops who often have slower hard drives than their desktop counterparts, but plenty of RAM.

What’s a RAM disk?

As the name suggests, a RAM disk is a virtual disk drive mapped to a specific amount of RAM. As RAM is considerably faster than hard drives, we move our browser’s cache to the RAM disk and greatly increase cache read and write times. *However, this comes at a flaw: RAM, by nature, is volatile and is flashed whenever the PC is turned off or rebooted. Your login information will be lost every time you reboot your PC. While this is better on a security standpoint, it does tend to get annoying to constantly have to login to the same sites over and over. You also lose a little bit of RAM, but in most cases, the difference will be negligible or downright invisible.

*Note: That this can now be avoided thanks to the Load & Save feature now implemented in RAMDisk. Instructions on how to do so below under "Configuring the volatile RAMDisk so it becomes non-volatile".

Download and Configure RAMDisk

We’ll be using the RAM Disk application by Dataram. It’s free and works on Windows XP X86 to Windows 7 X64. It’s also very simple to configure. Keep in mind that the free version will have an ad when launched, but does not have pop-ups.

Download and install as prompted.

Configuration

  1. Launch the RAMDisk Configuration Utility application from the Start Menu, under Dataram RAMDisk.
  2. In the Disk Size box, enter 200MB. (Note I am just using 200MB for this guide, The amount you wish to use depends on how much RAM your PC has to spare. I have 8GB RAM so I made my RAMDisk 2GB)
  3. In the filesystem options, select FAT16. (unless you’re creating a very large RAMDisk >4GB)
  4. In the boot system options, leave the default as Windows.
  5. Hit the Start RAMDisk button and wait.


It’ll take a minute or two to create the disk. Once it’s done, a new drive will appear in My Computer.

My RAMDisk:

[Image: S3YPn.png]

[Image: tGT7i.png]

Configuring your browser

Google Chrome

Chrome, unfortunately, does not currently have an easy-access GUI to change advanced settings. We’ll need to use switches. Right-click your Chrome shortcut and select Properties from the menu. We need to add the following switches to our shortcut.

Change the cache’s directory, where the G: drive should be changed to reflect the location of your RAM disk. [Example Image]
Code:
--disk-cache-dir="G:/"

Change the cache size. In bytes; the example below is 200MB.
Code:
--disk-cache-size=209715200

Here’s an example of a complete shortcut.
Code:
C:\Users\MrXidus\AppData\Local\Google\Chrome\Application\chrome.exe --disk-cache-dir="G:/" --disk-cache-size=209715200

Mozilla Firefox

Firefox settings can be changed from the configuration panel (about:config) where a few settings will need to be changed.

Change the cache’s directory, where the G: drive should be changed to reflect the location of your RAM disk. If the key doesn’t exist, create a new String.

Key / Value

Code:
browser.cache.disk.parent_directory

Code:
G:\

Change the cache size. In bytes; the example below is 200MB.

Key / Value

Code:
browser.cache.disk.capacity

Code:
209715200

Opera

  1. Open a new tab in Opera.
  2. Paste this into the URL bar, and press enter: opera:config#UserPrefs|CacheDirectory4
  3. This will take you to the configuration page, to change your cache directory.
  4. Now create a folder on your RAMDisk, called “operacache”.
  5. Enter the path to your “operacache” folder, on your RAMDisk, in the “Cache Directory4″ settings.
  6. Remember to hit Save at the bottom of the “User prefs” settings list!


Configuring the volatile RAMDisk so it becomes non-volatile

The way the RAMDisk is set up for now, it will delete all files on the RAMDisk when it is stopped (volatile).

If you want the files to be stored, you can click on the Load and Save tab, where we can set the content of the disk, to be loaded and stored at startup and shutdown, to an image file.

If you now check “Save Disk Image on shutdown”, give it a filename, and press “Save disk image now”, then it will create the image of your RAMDisk. The image will be the same size as your RAMDisk.

Then, check the box, “Load Disk Image at Startup”, specify you image file, and optionally give your disk a label, “Ramdisk” or something describing.

Then go to File -> Save settings.

[Image: HKMWQ.png]

Tips By MrXidus:

Once you have completed the steps above, Within your selected browser, Browse your most visited websites, Once they have been cached, You'll then notice the speed improvement in loading times next time you visit the page! Smile

If you don't wish for a website to be cached, (Such as visiting it for one time only and want to save space by not caching the website).
Browse the site using Chromes Incognito Mode or Firefox Private Browsing as these disable the caching of temp files, cookies etc.

You can use CrystalDiskMark to test the read and write speeds of your RAMDisk compared to your regular HDD.
My result here.

Source: Thanks to SteelFrog for the original guide. I have built upon this but do not claim or endorse this work. I am simply sharing knowledge.

Acer Aspire V3-771G | Windows 8 Pro | 64-bit
Intel Core i7-3632QM 3.2Ghz | 16GB DDR3 RAM | 1TB HDD | NVIDIA GT730M 4GB GPU | 17.3" @ 1920 x 1080
Windows Defender | Windows Firewall | UAC | Windows SmartScreen | Malwarebytes | RollbackRX | RAMDisk
Find all posts by this user
Quote this message in a reply
 Kudos from: Jack(+5) , ZeroDay(+2) , HeffeD(+2) , WinAndLinuxTutorials(+3) , Gnosis(+3) , treefrog'(+2)
06-21-2012, 07:25 PM
Post: #2
ChromiumHF Offline
Regular Member (Level 2)
Posts: 21
Joined: Dec 2011
Kudos 3
RE: Speed up Chrome & Firefox by using a RAM disk
Hay MrXidus thanks for the tutorial!

How do you calculate GB to bytes? or MB to bytes? I also configured my RAMDISK to 2GB but you haven't listed how many bytes are in 2GB.
Find all posts by this user
Quote this message in a reply
 Kudos from: WinAndLinuxTutorials(+3)
06-21-2012, 07:30 PM
Post: #3
MrXidus Offline
COMMUNITY MODERATOR
Posts: 1,842
Joined: Apr 2011
Kudos 1688
RE: Speed up Chrome & Firefox by using a RAM disk
(06-21-2012 07:25 PM)ChromiumHF wrote:  Hay MrXidus thanks for the tutorial!

How do you calculate GB to bytes? or MB to bytes? I also configured my RAMDISK to 2GB but you haven't listed how many bytes are in 2GB.

1 GB = 1073741824 bytes
2 GB = 2147483648 bytes

There are free online conversion calculators on Google. Smile

Acer Aspire V3-771G | Windows 8 Pro | 64-bit
Intel Core i7-3632QM 3.2Ghz | 16GB DDR3 RAM | 1TB HDD | NVIDIA GT730M 4GB GPU | 17.3" @ 1920 x 1080
Windows Defender | Windows Firewall | UAC | Windows SmartScreen | Malwarebytes | RollbackRX | RAMDisk
Find all posts by this user
Quote this message in a reply
06-21-2012, 07:38 PM
Post: #4
ChromiumHF Offline
Regular Member (Level 2)
Posts: 21
Joined: Dec 2011
Kudos 3
RE: Speed up Chrome & Firefox by using a RAM disk
(06-21-2012 07:30 PM)MrXidus wrote:  
(06-21-2012 07:25 PM)ChromiumHF wrote:  Hay MrXidus thanks for the tutorial!

How do you calculate GB to bytes? or MB to bytes? I also configured my RAMDISK to 2GB but you haven't listed how many bytes are in 2GB.

1 GB = 1073741824 bytes
2 GB = 2147483648 bytes

There are free online conversion calculators on Google. Smile

Thanks for the fast reply! - can you please link the online converter which you use? Smile
Find all posts by this user
Quote this message in a reply
06-21-2012, 07:41 PM
Post: #5
MrXidus Offline
COMMUNITY MODERATOR
Posts: 1,842
Joined: Apr 2011
Kudos 1688
RE: Speed up Chrome & Firefox by using a RAM disk
(06-21-2012 07:38 PM)ChromiumHF wrote:  Thanks for the fast reply! - can you please link the online converter which you use? Smile

Sure. Smile

http://www.t1shopper.com/tools/calculate/

Acer Aspire V3-771G | Windows 8 Pro | 64-bit
Intel Core i7-3632QM 3.2Ghz | 16GB DDR3 RAM | 1TB HDD | NVIDIA GT730M 4GB GPU | 17.3" @ 1920 x 1080
Windows Defender | Windows Firewall | UAC | Windows SmartScreen | Malwarebytes | RollbackRX | RAMDisk
Find all posts by this user
Quote this message in a reply
06-21-2012, 07:44 PM
Post: #6
ChromiumHF Offline
Regular Member (Level 2)
Posts: 21
Joined: Dec 2011
Kudos 3
RE: Speed up Chrome & Firefox by using a RAM disk
(06-21-2012 07:41 PM)MrXidus wrote:  
(06-21-2012 07:38 PM)ChromiumHF wrote:  Thanks for the fast reply! - can you please link the online converter which you use? Smile

Sure. Smile

http://www.t1shopper.com/tools/calculate/

Thanks! Wink
Find all posts by this user
Quote this message in a reply
06-21-2012, 08:29 PM
Post: #7
pcjunklist Offline
Advanced Member (Level 5)
Posts: 496
Joined: Dec 2011
Kudos 251
RE: Speed up Chrome & Firefox by using a RAM disk
trouble is most people are still using 2-4gb of ram and can't really afford to lose any for a ramdisk. Now I tend to over ram machines because it's so cheap here in the US, I mean 16gb (4gb x 4 1600mhz) a month ago was about $80 and I picked up 32gb (8gb x 4, 1333mhz) for $200.

[Image: images?q=tbn:ANd9GcSppA5-P4FDeuJuqmIQtps...7ge80dfiYa]
Find all posts by this user
Quote this message in a reply
 Kudos from: Jack(+1)
06-27-2012, 11:38 AM
Post: #8
AbdelwahaB Offline
New member (Level 1)
Posts: 7
Joined: Jun 2012
Kudos 3
RE: Speed up Chrome & Firefox by using a RAM disk
thnx Bro i feel i buy anew pc no lagg in flash videos ,But i have a qusetion my Ram Disk not appeared like when it was just created ! should i worry about that ?
Find all posts by this user
Quote this message in a reply
06-27-2012, 02:50 PM
Post: #9
jamescv7 Offline
Silver Member (Level 6)
Posts: 5,932
Joined: Mar 2011
Kudos 943
RE: Speed up Chrome & Firefox by using a RAM disk
Make sure that contribute the RAM itself equally since the other portion will use on other task and could take it a bit slowdown performance if happens.

[Image: 2841f33fc6c2ddd879a680ae1a4c167a.gif]

[Image: 2a7dbdb01a9aad0a501ca25c64b7f822.gif]
Find all posts by this user
Quote this message in a reply
06-27-2012, 07:57 PM
Post: #10
woomera Offline
Known Member (Level 3)
Posts: 265
Joined: Jan 2012
Kudos 80
RE: Speed up Chrome & Firefox by using a RAM disk
loosing login sessions everytime i close the browser is a real downside for me so i wont be using this but thanks for sharing.

[Image: sig.png]
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Pages (3): 1 2 3 Next »
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
Information How to Speed Up a Slow Computer Brian 3 1,108 06-05-2012 08:45 PM
Last Post: WinAndLinuxTutorials

  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread


User(s) browsing this thread: 1 Guest(s)

 


Proudly powered by MyBB.
Copyright - MalwareTips.com © 2012. All rights reserved. | Webdesign by End Soft Design
Contact Us | Privacy policy | Return to Top | Return to Content | Lite (Archive) Mode | RSS Syndication | Members List | Forum Team

MalwareTips.com is an independent website.All trademarks mentioned on this page are the property of their respective owners.