HowTo: Speed Up Linux in Two Easy Steps

You might want to read this first before you do this.
Open this file using a text editor in super user mode

#sudo [insert text editor name] /etc/sysctl.conf

Append or write at the end of the document this:

vm.swappiness=1
vm.vfs_cache_pressure=50