Mount /tmp as ramdisk
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 (2)
tmpfs is not ramdisk
2 Saturday, 19 April 2014 18:24
dany
tmpfs is not ramdisk. I was looking for the info, but this is misleading to readers. If I find it I will return to comment more constructive.
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