Friday, September 25, 2009

Experimenting with RAM disk on Ubuntu/Mint

Intro
I read little tweak article regarding use of Linux on laptops with SSD disks. One of the suggestions was to move /tmp folder onto RAM disk. So, I am here trying to do that on a "regular" desktop PC (Dell Vostro 220s).

Configuration
  • In console run:
    sudo gedit /etc/fstab
  • Add the following line to the /etc/fstab file:
    tmpfs /tmp tmpfs defaults,noatime,mode=1777 0 0
  • Restart your PC for changes to take effect
  • Check your new /tmp with the following command:
    df -h
You should see a new tmpfs partition (RAM disk).

Firefox Configuration
Tell Firefox to use newly created /tmp folder for temporary files
  • In th address field enter about:config
  • Click yes to proceed
  • Create new String property named "browser.cache.disk.parent_directory"
  • Enter "/tmp" as field value (no quote signs)
Comments
This probably only makes sense if you have lots of RAM. In this case there is 3GB RAM, which is pretty good for running Linux desktop.

No comments: