From owner-freebsd-current@FreeBSD.ORG Thu Mar 29 20:07:08 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D83BA1065674 for ; Thu, 29 Mar 2012 20:07:08 +0000 (UTC) (envelope-from ohartman@zedat.fu-berlin.de) Received: from outpost1.zedat.fu-berlin.de (outpost1.zedat.fu-berlin.de [130.133.4.66]) by mx1.freebsd.org (Postfix) with ESMTP id 8BC228FC15 for ; Thu, 29 Mar 2012 20:07:08 +0000 (UTC) Received: from inpost2.zedat.fu-berlin.de ([130.133.4.69]) by outpost1.zedat.fu-berlin.de (Exim 4.69) with esmtp (envelope-from ) id <1SDLch-0008Vt-Oj>; Thu, 29 Mar 2012 22:07:07 +0200 Received: from e178040105.adsl.alicedsl.de ([85.178.40.105] helo=thor.walstatt.dyndns.org) by inpost2.zedat.fu-berlin.de (Exim 4.69) with esmtpsa (envelope-from ) id <1SDLch-0007sq-Jc>; Thu, 29 Mar 2012 22:07:07 +0200 Message-ID: <4F74C0E5.6050102@zedat.fu-berlin.de> Date: Thu, 29 Mar 2012 22:07:01 +0200 From: "O. Hartmann" User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:10.0.3) Gecko/20120314 Thunderbird/10.0.3 MIME-Version: 1.0 To: Eric van Gyzen References: <4F746F1E.6090702@mail.zedat.fu-berlin.de> <4F74BCE8.2030802@vangyzen.net> In-Reply-To: <4F74BCE8.2030802@vangyzen.net> X-Enigmail-Version: 1.4 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigD717AD7D324E3EC10C8FD7D5" X-Originating-IP: 85.178.40.105 Cc: Current FreeBSD Subject: Re: Using TMPFS for /tmp and /var/run? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Mar 2012 20:07:08 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigD717AD7D324E3EC10C8FD7D5 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: quoted-printable Am 03/29/12 21:50, schrieb Eric van Gyzen: > On 03/29/12 09:18, O. Hartmann wrote: >> I was wondering if there are some objections using TMPFS for /tmp and >> /var/run. >=20 > For /tmp, what exactly do you mean? >=20 > If you want to use tmpfs instead of md/mdmfs when tmpmfs=3D"YES" in > rc.conf, I have no opinion. Aren't MDMFS backed filesystems of static size? And haven't they to be created first before they can be used? Using TMPFS seems toi be a more convenient way to me - dynamical (?), using a fstab entry for convenience= =2E >=20 > However, if you always want to use tmpfs instead of stable storage, > please do not. Some people expect /tmp to be persistent. This is why > /etc/defaults/rc.conf has clear_tmp_enable=3D"NO". Changing this would= > break the POLA. >=20 > Cheers, >=20 > Eric I have set clear_tmp_enable=3D"YES". I treat /tmp as it is: temporary. No one should change the default setting. Well, SSDs become more and more popular, even for heavy duty servers. Still facing the waer-off problemacy with NAND flash memory, I'd would feel better have the main memory used by the volatile filesystems like /var/run and /tmp which get rewritten quite often. --------------enigD717AD7D324E3EC10C8FD7D5 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iQEcBAEBAgAGBQJPdMDrAAoJEOgBcD7A/5N87jEH/0fTUGQV+1NYQrvlYaftHVnK u5HCtCGEayr6wnPzXo2zIJIsg6fNUGxGu/obIMsv6YU5Zpwcw/P7IlowgYeW1suq 3BoHnUa6N5pYbr/94CQKZWZBEeYnUH+BOxNwyYY9meCQnyZFySiIxFwodETXBMZj 1cZB8nSiFFzwByR/10Ewh3dIqvni69kgutAMu67olKn4lLDqDd7yFZEkl89rIOoN l3ssV8oVCAqzYKys6o0P4OMqb3EYXNwVt6m5QnMvY2+IimHk5x+OLPAuWx0AF6T8 qRzI36/K3otGHHp8ZKOszuWN7bQKlgxJnhk4K+1W9lrs0QasBicr4sesgs29BeA= =E5/w -----END PGP SIGNATURE----- --------------enigD717AD7D324E3EC10C8FD7D5--