From owner-freebsd-questions Thu Mar 15 8:12:12 2001 Delivered-To: freebsd-questions@freebsd.org Received: from pc89225.stofanet.dk (pc89225.stofanet.dk [212.10.22.225]) by hub.freebsd.org (Postfix) with SMTP id 6B4D837B718 for ; Thu, 15 Mar 2001 08:12:05 -0800 (PST) (envelope-from morten@hotpost.dk) Received: (qmail 91363 invoked by uid 1000); 15 Mar 2001 16:12:07 -0000 From: morten@hotpost.dk Date: Thu, 15 Mar 2001 17:12:07 +0100 To: freebsd-questions@freebsd.org Subject: Re: Mounting MFS? Message-ID: <20010315171207.A76291@hotpost.dk> Mail-Followup-To: freebsd-questions@freebsd.org References: <01031420414701.00912@Nero> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <01031420414701.00912@Nero>; from cublai@earthlink.net on Wed, Mar 14, 2001 at 08:24:50PM -0700 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG The cacophony of voices in my head Inform me that z thompson said: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Could someone shed some light on what the advantages are of mounting an > MFS RAM disk on /tmp? I was thumbing through the kernel chapter in "The > Complete FreeBSD" where Lehey talks about mounting your swap partition as a MFS > on /tmp. Specifically he says that this will be "useful if you have a lot of > swap space that you want to take advantage of[...]" What I don't understand is > how or why your swap space will be more useful mounted as a mfs as opposed to > not? It's faster than normal ufs, and you don't care if you loose all data in a crash on that partition. I have no numbers on FreeBSD, but a make build on OpenBSD (same as make world on FreeBSD) is about 10% faster with /tmp as mfs and not ffs (ufs in FreeBSD). I use this line in /etc/fstab: /dev/ad2s1b /tmp mfs rw,async,nodev,nosuid,-s=108000 0 0 It seems make's in /usr/src needs to run executables out of /tmp, so don't mount it noexec as I did first. It's nice, I've experienced no drawbacks from it in neither Free nor OpenBSD, but I've only run FreeBSD for about a week now ... Hope that answered your question Morten To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message