Ram & swap, Was: [H-GEN] Linux & NTFS
James C. McPherson
James.McPherson at Sun.COM
Tue Dec 17 00:18:21 EST 2002
[ Humbug *General* list - semi-serious discussions about Humbug and ]
[ Unix-related topics. Posts from non-subscribed addresses will vanish. ]
On Tue, 17 Dec 2002 14:55:40 +1000 (EST) Robert Brockway <robert at timetraveller.org> wrote:
> On Tue, 17 Dec 2002 ben.carlyle at invensys.com wrote:
> > On the other hand, tempfs is pretty cool. The idea of tempfs is that you
> Hi Ben. I'm glad you mentioned tmpfs, since I was going to but managed to
> forget :) Using tmpfs is faster (temp files are kepin ram or swap), and
> saves disk space (since now /tmp & swap are on the same area of disk).
> One caveat for using tmpfs: /tmp & swap are now on the same area of disk.
> If /tmp fills and takes swap with it you might have an unhappy system.
> Solaris in particular seems to really dislike this. The solution is to
> limit the size of /tmp so it isn't as large as swap. Under Linux set the
> size= mount option on /tmp. Here is my /tmp line from /etc/fstab:
> swap /tmp tmpfs defaults,size=1024m 0 0
Good point - you can do similarly with Solaris. Oh, and you can still have
/tmp as a non-tmpfs filesystem - if you want to, but you have to know that
you want to change it. (Cue social work joke if necessary). For the sunray
server which I'm using at the moment we actually have a minimal /tmp and
all those pesky temporary files are in /var/tmp instead, along with netscape
/ mozilla cache directories. Seems to work well enough for this branch.
cheers,
James C. McPherson
--
Pacrim PTS Engineer 828 Pacific Highway
Gordon NSW
Sun Microsystems Australia 2072
--
* This is list (humbug) general handled by majordomo at lists.humbug.org.au .
* Postings to this list are only accepted from subscribed addresses of
* lists 'general' or 'general-post'. See http://www.humbug.org.au/
More information about the General
mailing list