Saturday, February 12, 2011

Easy way I sped up Chromium browser

I love Google's Chromium browser, but it's slooow.

I sped it up significantly by creating a RAM disk and using that for caching (FYI: This applies to a Linux Desktop. Windows users, you'll have to look elsewhere):

- Create the mount point:
wrexallen@wrex-Qosmio-X505:$ sudo mkdir /var/ramdisk

- Add mountpoint to /etc/fstab:
none /var/ramdisk tmpfs mode=1777,size=512M 0 0

This mounts a memory filesystem in /var/ramdisk on boot. I use the size=512M parameter to limit how much it can grow.

- Mount the new RAM disk:
wrexallen@wrex-Qosmio-X505:$ sudo mount /var/ramdisk

Edit chromium application link by changing:

/opt/google/chrome/google-chrome %U


/opt/google/chrome/google-chrome %U --disk-cache-dir="/var/ramdisk"

Stop/restart chromium.

No comments: