Speed up Firefox by moving cache into RAM in Ubuntu

By default Firefox puts its cache in the home partition.We can speed up Firefox and reduce disk writes by moving this cache into RAM if we have 2GB RAM or more.

1. Edit /etc/fstab,open terminal (Ctrl+alt+t or) from Applications->Accessories menu and type:

sudo gedit /etc/fstab

Add following into this file and close it:

tmpfs /tmp tmpfs noexec,defaults,noatime 0 0
 tmpfs /var/tmp tmpfs noexec,defaults,noatime 0 0

2. Edit /etc/sysctl.conf:

sudo gedit /etc/sysctl.conf

add this line and save it:


3. Type about:config in firefox address bar and click(I'll be careful,I promise!.) Right click on blank area and create a new string value called browser.cache.disk.parent_directory, set its value to /tmp

Now, reboot the system and experience the performance.

Similar Posts

Privacy in searching internet

Latest Firefox 9.0 PPA for ubuntu 11.10 & 11.04 available in ‘Mozilla Security’

Alternatives for Unity in Precise Pangolin 12.04 LTS

Please share your views.

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.