Re: /tmp in memory vs on disk



Alexander J. Maidak <ajmaidak@xxxxxxxxx> wrote:
At my site we put /tmp on a disk slice. I've learned that its a more
common for Solaris to be set up with /tmp as a memory resident
filesystem. For what reasons might we be better off putting /tmp in
memory?

The workload associated with /tmp often is for a lot of file creation,
small amount of data transferred, and file deletion. Compilers are
rather famous for doing a lot of that.

On UFS, the metadata operations are synchronous, so you will have to
wait for seeks (possibly to different parts of the disk) before you can
continue. On tmpfs, the operations are *significantly* faster. Also,
since the data within /tmp is (hopefully!) not important, or at least
easily recreated, then it's appropriate for backing in memory which will
be lost in a crash.

By using UFS, you lose some amount of performance in /tmp, but also free
some swap space for other use. I would generally not recommend moving
to UFS /tmp unless you have a specific reason to do so.

--
Darren Dunham ddunham@xxxxxxxx
Senior Technical Consultant TAOS http://www.taos.com/
Got some Dr Pepper? San Francisco, CA bay area
< This line left intentionally blank to confuse you. >
.



Relevant Pages

  • Re: xmalloc string functions
    ... a bit over three quarters of the memory, Lotus Notes, another email ... I have good reasons for using multiple email clients ... propagating the error conditions back to the caller. ... event processing against oom exceptions either. ...
    (comp.lang.c)
  • Re: xmalloc string functions
    ... I, on the other hand, can be running three VMs eating up a bit over three quarters of the memory, Lotus Notes, another email client (yes, I have good reasons for using multiple email clients simultaneously) and several other applications. ... propagating the error conditions back to the caller. ... Linux and several versions of Windows. ...
    (comp.lang.c)
  • RE: Ufs dead-locks on freebsd 6.2
    ... Ufs dead-locks on freebsd 6.2 ... vnode 0xccd47984: tag ufs, type VDIR ... You checked the memory of the machine. ... stuck in one of the lock states. ...
    (freebsd-performance)
  • Re: A solution for the allocation failures problem
    ... It is not possible to check EVERY malloc result within complex software. ... possible for software quality reasons. ... a memory exhaustion situation arises, ... you provoke allocation failures that don't need to happen. ...
    (comp.lang.c)
  • Re: Future Risc
    ... |> Any architecture with hw support for decimal fp is pretty CISCy indeed. ... For various reasons, I have restarted my ... simplified the code - I could do the same with the rounding, ...
    (comp.arch)