Related Items  

Linux and Windows IT Support  


Windows, Apple and Linux IT support and services.

For Software and Web Development.

Mount /tmp as ramdisk


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

Comments (2)
tmpfs is not ramdisk
2 Saturday, 19 April 2014 18:24
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
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:
  The word for verification. Lowercase letters only with no spaces.
Word verification:
yvComment v.1.24.0
Copyright © 1999 - 2022 Virtual Helpme | Managed IT Solutions Specialized for Your Business | Original Template: Allrounder