Fedora Linux Support Community & Resources Center
Old 19th October 2006, 12:37 AM
axel Offline
Registered User
Join Date: Apr 2005
Location: Thessaloniki, Greece
Posts: 290
/tmp and tmpfs

I have read that if you use tmpfs as /tmp filesystem you get a very good boost of your system since you use your RAM and not your HDD for storing temp files. What kind of files are stored under /tmp?

If this is true how can I make /tmp tmpfs and if i don't see any speed up how can i change it back to normal?
Reply With Quote
Old 19th October 2006, 01:01 AM
nick.stumpos Offline
Registered User
Join Date: Feb 2005
Location: Lansing, Mi
Age: 32
Posts: 2,222
tp start
mount tmpfs /tmp -t tmpfs -o size=64m
to stop
umount tmpfs /tmp
As always
Love, Life, Loyalty, Wisdom, Knowledge, And Understanding
FC6: Common Questions answered
Reply With Quote
Old 19th October 2006, 02:32 AM
Posts: n/a
Yeah, but I seriously doubt there is any performance increase.

Sometime type the "free" command or run 'gkrellm' and you'll see that the 40 gazillion bytes of DRAM you bought because the Windows crowd think it is necessary are all in use, *BUT* than nearly all of it is used as disk buffer/cache buffers. I have only 768MB of mem on my laptop right now, but 606MB is used as "disk cache buffers" and I have a dozen services and several firefoxen and gnome terms up.

Here is the point - the /tmp directory hold a lot of files that are very important and accessed very often, like the AF_LOCAL socket files and the intermediate products of the gcc compiles and so on. It also contains a lot of cruft that you haven't accessed since the day you installed. The disk buffer/cache system is a lot smarter about keeping the most recently/often used blocks in memory than the tmpfs file system is.

It's usually a better bet to use your excess memory for disk buffer cache than to use it for tmpfs. The exception is when you have a deeply embedded system with no writable file system and a few fixed applications.
Reply With Quote
Old 20th October 2006, 10:38 AM
axel Offline
Registered User
Join Date: Apr 2005
Location: Thessaloniki, Greece
Posts: 290
Thanks both for your answers. Since it is very easy to enable and disable tmpfs for /tmp maybe i'll give it a try.
Reply With Quote

or tmp, tmpfs

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
remounting tmpfs RiotingPacifist Using Fedora 1 5th December 2009 12:55 AM
SELinux preventing access to tmpfs Milena Using Fedora 0 19th July 2009 11:49 PM

Current GMT-time: 19:43 (Monday, 21-08-2017)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat