If you watch a lot of youtube video's or run a lot of programs that cache to /tmp you will notice that it can be incredibly slow while multi-tasking because the other programs are using the disk too. As long as you have enough ram you can mount /tmp as to your ram. However, use at your own risk - programs that cache backup data to /tmp (Like firefox [although open office does not]) will not be able to restore your previous session after rebooting. If that is no problem then continue on reading.
Open your /etc/fstab as root in your favourite text editor (I will be using gedit because it is by far the most simple) by launching it from the terminal.
Add this line to the end.
sudo gedit /etc/fstab
You can change the size to whatever amount you want in megabytes but do not go over half of your ram. <Ctrl>+<s> and <Ctrl>+<q>
none /tmp tmpfs defaults,size=424m 0 0
Reboot, yes this is needed, you can mount -a but its pointless because then your xserver will crash because the display property will become unset.
Enjoy much faster website loads!
Also a tip for youtube users, the video is stores in /tmp so you dont need to use a flash down-loader to save a youtube video - just copy the file to your folder of choice after watching it.
The size parameter is optional as I have found out from experience so you might want to use this instead to save RAM!
none /tmp tmpfs defaults 0 0
Okay I just found out how to do this without rebooting but its not quite as simple. Continue from the last step before rebooting, exit everything, and <ctrl>+<F1>. Enter your username and password. Run these commands.
rm -fR /tmp/*
mount /tmp ##or mount -a
Do not use this trick if you use proprietary types of enterprise software, because they store files in /tmp for security reasons.