From owner-freebsd-current@FreeBSD.ORG Thu Jun 1 23:57:42 2006 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 02CF816A6FD for ; Thu, 1 Jun 2006 23:57:42 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id A01F943D48 for ; Thu, 1 Jun 2006 23:57:41 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (elvis.mu.org [192.203.228.196]) by elvis.mu.org (Postfix) with ESMTP id 8F8031A4E87; Thu, 1 Jun 2006 16:57:41 -0700 (PDT) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 1EB48514E7; Thu, 1 Jun 2006 19:57:41 -0400 (EDT) Date: Thu, 1 Jun 2006 19:57:41 -0400 From: Kris Kennaway To: Giorgos Keramidas Message-ID: <20060601235740.GA39491@xor.obsecurity.org> References: <20060522231437.GC1446@odin.ac.hmc.edu> <20060523133037.GA2908@gothmog.pc> <20060523143013.GA11472@ci0.org> <20060523194106.GA46634@xor.obsecurity.org> <20060524203645.GB13500@gothmog.pc> <20060524203747.GA88742@xor.obsecurity.org> <20060524204617.GA13701@gothmog.pc> <20060601002024.GA1453@gothmog.pc> <20060601210655.GA36389@xor.obsecurity.org> <20060601213527.GA53422@gothmog.pc> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="XsQoSWH+UP9D9v3l" Content-Disposition: inline In-Reply-To: <20060601213527.GA53422@gothmog.pc> User-Agent: Mutt/1.4.2.1i Cc: freebsd-current@freebsd.org, Kris Kennaway Subject: Re: md /tmp and async mounts 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, 01 Jun 2006 23:57:43 -0000 --XsQoSWH+UP9D9v3l Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jun 02, 2006 at 12:35:27AM +0300, Giorgos Keramidas wrote: > On 2006-06-01 17:06, Kris Kennaway wrote: > > On Thu, Jun 01, 2006 at 03:20:24AM +0300, Giorgos Keramidas wrote: > > > > [diff snipped] > > > > Thanks for the patch. > > > > > This doesn't make 'async' the default for all mdmfs mounts. > > > > > > Making async the default for mdmfs-based filesystems would > > > require a fair bit of changes to mdmfs, which would have to grow > > > mount-option parsing capabilities for the `optarg' of the -o > > > option and make sure that async is always added, unless mdmfs is > > > called explicitly with `noasync' in its -o option. > > > > > > Having said this, if this is considered a change we should make, > > > I can prepare a patch for mdmfs too. > > > > I think it should be the default. I think we should also avoid using > > -M (malloc backing for md) in favour of swap backing because of the > > panic problems - this is too easy to trigger by accident and it makes > > FreeBSD look bad since it looks like a bug. >=20 > Ok, I'll prepare a patch that enables async and disables -M. We should > also document the fact that tmpmfs=3D"YES" and varmfs=3D"YES" in rc.conf = may > require the presence of at least one swap device by default, and point > the users to -M with a warning if they run FreeBSD without a swap device > but still want to use tmpmfs or varmfs :) Actually I thought about this and don't think it's the case. swap backing doesn't use swap unless you have memory pressure, and if you have memory pressure and no swap your system is going to explode regardless. Kris --XsQoSWH+UP9D9v3l Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (FreeBSD) iD8DBQFEf370Wry0BWjoQKURArXwAKCW25AzcD+8qA5LgpwtRvxDu08qEQCfapOC p0PeNVkwcx3gWUU3gwd9u+8= =cxh0 -----END PGP SIGNATURE----- --XsQoSWH+UP9D9v3l--