From owner-freebsd-questions Wed Mar 14 20:21: 2 2001 Delivered-To: freebsd-questions@freebsd.org Received: from guru.mired.org (okc-65-26-235-186.mmcable.com [65.26.235.186]) by hub.freebsd.org (Postfix) with SMTP id 4C75537B719 for ; Wed, 14 Mar 2001 20:21:00 -0800 (PST) (envelope-from mwm@mired.org) Received: (qmail 34554 invoked by uid 100); 15 Mar 2001 04:20:59 -0000 From: Mike Meyer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15024.17195.640192.568585@guru.mired.org> Date: Wed, 14 Mar 2001 22:20:59 -0600 To: z thompson Cc: questions@freebsd.org Subject: Re: Mounting MFS? In-Reply-To: <158264@toto.iv> X-Mailer: VM 6.89 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`;h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG z thompson types: > 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? Well, what I like is that using mfs causes /tmp to be cleaned out across reboots, whichi I think is a good thing in general. You should also see more throughput, because both sync and async writes can complete without actually writing to the disk. You could try mounting /tmp in async mode, but if you're going to create a file system for /tmp, might as well add it to swap. http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message