January 6, 2014

Place Chromium Cache Into RAM

Most modern browsers are heavily using cache to speedup navigation. To limit Chromium Web Browser from writing its cache to a physical disk, one can move the cache into RAM.
As a result, your navigation speed will be increased and the cache should be considered temporary and will not be saved after a reboot.

Open a Terminal and edit the file /etc/fstab :

sudo nano /etc/fstab

Add the following line :
cache-chromium /home/<user>/.cache/chromium tmpfs defaults,noatime,mode=1777 0 0

Replace <user> with your username.

Hit Ctrl+O , Enter and then Ctrl+X

Assuming Chromium is not running :

rm -r ~/.cache/chromium  ( remove chromium's cache )
mkdir ~/.cache/chromium ( create an empty cache )

To mount all file systems in /etc/fstab after adding the new line, run:

sudo mount -a

Links :

No comments:

Post a Comment