Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Aug 2000 17:34:12 -0400
From:      "Allen Pulsifer" <pulsifer@mediaone.net>
To:        "Matt Dillon" <dillon@earth.backplane.com>
Cc:        <freebsd-hackers@FreeBSD.ORG>
Subject:   RE: what to do about /tmp
Message-ID:  <NBBBJNDFEKPEHPFCLNLHMEIDHNAA.pulsifer@mediaone.net>
In-Reply-To: <200008151705.KAA29836@earth.backplane.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Matt,

I noticed /tmp and /var/tmp are used slightly differently, for example, the
contents of /tmp are not expected to survive a reboot, while /var/tmp is
used for files you might need after a crash, like vi recovery files.

It makes sense to me to mount /tmp using MFS.  The symantics of /tmp and VM
are very close: its a bunch of data that you would like to keep in RAM if
possible, but can be pushed out to disk if needed.  And you don't care about
metadata, file system consistency and whether it survives a crash.

One advantage of mounting /tmp with MFS is that you don't have use up another
disk partition.  Performance-wise, I would think data moves something
like this:

/tmp on MFS:
   application data --> kernel VM --> paged to disk

/tmp on FFS:
   application data --> kernel file buffer --> flushed to disk

Is that basically correct?  What makes MFS less efficient than FFS?
What would be the implications of creating a 512 MB swap partition
and mounting an MFS /tmp?

Thanks,

Allen



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?NBBBJNDFEKPEHPFCLNLHMEIDHNAA.pulsifer>