From owner-freebsd-fs@FreeBSD.ORG Sun Jun 9 12:00:36 2013 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 386FEEA for ; Sun, 9 Jun 2013 12:00:36 +0000 (UTC) (envelope-from loic.blot@unix-experience.fr) Received: from smtp.smtpout.orange.fr (smtp03.smtpout.orange.fr [80.12.242.125]) by mx1.freebsd.org (Postfix) with ESMTP id ADB9115EB for ; Sun, 9 Jun 2013 12:00:34 +0000 (UTC) Received: from [10.42.69.5] ([82.120.202.131]) by mwinf5d06 with ME id mBsx1l0082qcW6A03Bsx5c; Sun, 09 Jun 2013 13:52:57 +0200 Message-ID: <1370779193.2018.10.camel@Nerz-PC> Subject: Re: /tmp: change default to mdmfs and/or tmpfs? From: =?ISO-8859-1?Q?Lo=EFc?= BLOT To: freebsd-fs@freebsd.org Date: Sun, 09 Jun 2013 13:59:53 +0200 In-Reply-To: References: Organization: UNIX Experience Fr Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-S1znKLqXGdPP+SXnlk4B" X-Mailer: Evolution 3.8.3 Mime-Version: 1.0 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: loic.blot@unix-experience.fr List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Jun 2013 12:00:36 -0000 --=-S1znKLqXGdPP+SXnlk4B Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello Dmitry, I agree with you. /tmp is a temporary filesystem. On machines (both servers and clients), i think /tmp must be like Linux, cleared at reboot because it's a temporary FS. The Linux point i don't agree is size of /tmp (on Linux: ram-memory/2). This formula is quite good for system with lower than 2Gb of RAM but i think 2Go is sufficient to system with more RAM (we could control this a install of in the fstab after ?). --=20 Best regards, Lo=C3=AFc BLOT,=20 UNIX systems, security and network expert http://www.unix-experience.fr Le dimanche 09 juin 2013 =C3=A0 15:45 +0400, Dmitry Morozovsky a =C3=A9crit= : > Dear colleagues, >=20 > what do you think about stop using precious disk or even SSD resources fo= r=20 > /tmp? >=20 > For last several (well, maybe over 10?) years I constantly use md (swap-b= acked)=20 > for /tmp, usually 128M in size, which is enough for most of our server ne= eds. =20 > Some require more, but none more than 512M. Regarding the options, we us= e > tmpmfs_flags=3D"-S -n -o async -b 4096 -f 512" >=20 > Given more and more fixes/improvements committed to tmpfs, switching /tmp= to it=20 > would be even better idea. >=20 > You thoughts? Thank you! >=20 >=20 --=-S1znKLqXGdPP+SXnlk4B Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.20 (GNU/Linux) iF4EABEIAAYFAlG0bjkACgkQh290DZyz8uaPGQEApIRm/z1EYj4jJvdWHGnn2X+j hLQTsdMMktHhYm2t0e8BANHRRbEGr1coZpLYnCJnzIS7YkFOLHhMvsMoSYVqlDlZ =Esvp -----END PGP SIGNATURE----- --=-S1znKLqXGdPP+SXnlk4B--