Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 09 Aug 2004 15:00:59 -0400
From:      Gary Mulder <gmulder@infotechfl.com>
To:        cpghost@cordula.ws, roland Mathieu <roland.mathieu@free.fr>
Cc:        questions@freebsd.org
Subject:   Re: A question about /tmp
Message-ID:  <4.2.0.58.20040809145427.01092be8@mail.infotechfl.com>
In-Reply-To: <20040809085011.GA7374@bsdbox.farid-hajji.net>
References:  <20040809083250.GA12445@lycurgue.localnet> <20040809083250.GA12445@lycurgue.localnet>

next in thread | previous in thread | raw e-mail | index | archive | help
Of course having /tmp -> /var/tmp means that you have no valid /tmp in 
single user mode where /var is not mounted. That is unless you created 
/var/tmp in single user mode, but that would mean /var would be mounted 
over the root partition's /var/tmp dir in multi-user mode, which can be 
non-intuitive to say the least.

The net result of not having a valid /tmp is that some commands issued in 
single-user mode may fail non-obviously as they might (reasonably?) assume 
/tmp is available.

Gary

At 04:50 AM 8/9/2004 , cpghost@cordula.ws wrote:
>On Mon, Aug 09, 2004 at 10:32:50AM +0200, roland Mathieu wrote:
> >
> > Hello,
> >
> > I want to install FreeBSD with a small root partition. It's
> > possible to use a different partition for /tmp, but /tmp can also be a
> > symbolic link pointing, for example, /var/tmp. Is it a good idea ? If not
> > what sort of problem will I encounter ?
>
>There's nothing wrong with a symlink. I have /tmp -> /var/tmp on
>all my servers and never noticed the difference to a dedicated
>/tmp partition. Theoretically, you'd experience a small performance
>hit, but only if you open(2) many /tmp files very very often.
>Even with a make buildworld, or a portupgrade -aRrkf, I didn't
>notice any difference in speed. Of course, YMMV.
>
>-cpghost.

--
Gary Mulder   <mailto:gary.mulder@infotechfl.com>
Info Tech, Inc.
5700 SW 34th Street, Suite 1235 Phone: (352) 381-4400
Gainesville, FL 32608 Fax: (352) 381-4444



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