Mount /tmp as ramdisk Print E-mail
Linux

To increase performance on your linux box and decrease IO waits for applications that use /tmp, you can mount it as a ramdisk. The process is simple, just keep in mind that it gets cleared any time a system is rebooted.

Open fstab using whatever editor you prefer:

sudo vim /etc/fstab

Add the following line at the bottom:

none    /tmp    tmpfs    defaults    0    0

Save and exit.

If you have /tmp already mouted as a separate partition, comment it out in the fstab.

Reboot your system.

You can also optionally specify the size of the partition (the amount of RAM to use). This is not necessary and probably best to let your system manage the memory.

none    /tmp    tmpfs    defaults,size=512m    0    0

Last Updated on Tuesday, 13 July 2010 08:51
 
Comments (1)
Other blogging systems
1 Monday, 13 September 2010 12:55
Jessica
Nice blog theme, I especially like the comment system your using. I may try it on my designer clothing website.

Add your comment

Your name:
Subject:
Comment:
  The word for verification. Lowercase letters only with no spaces.
Word verification:
yvComment v.1.24.0