From owner-freebsd-current@FreeBSD.ORG Wed May 24 20:44:35 2006 Return-Path: X-Original-To: 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 4EA0916A93C for ; Wed, 24 May 2006 20:44:35 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from igloo.linux.gr (igloo.linux.gr [62.1.205.36]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6155543D46 for ; Wed, 24 May 2006 20:44:34 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from gothmog.pc (host5.bedc.ondsl.gr [62.103.39.229]) (authenticated bits=128) by igloo.linux.gr (8.13.6/8.13.6/Debian-1) with ESMTP id k4OKi5Ll008888 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 24 May 2006 23:44:10 +0300 Received: from gothmog.pc (gothmog [127.0.0.1]) by gothmog.pc (8.13.6/8.13.6) with ESMTP id k4OKkHtG013756; Wed, 24 May 2006 23:46:17 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from giorgos@localhost) by gothmog.pc (8.13.6/8.13.6/Submit) id k4OKkH5L013755; Wed, 24 May 2006 23:46:17 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Date: Wed, 24 May 2006 23:46:17 +0300 From: Giorgos Keramidas To: Kris Kennaway Message-ID: <20060524204617.GA13701@gothmog.pc> References: <20060522211223.GA3621@xor.obsecurity.org> <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> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060524203747.GA88742@xor.obsecurity.org> X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (score=-3.405, required 5, autolearn=not spam, ALL_TRUSTED -1.80, AWL 0.79, BAYES_00 -2.60, DNS_FROM_RFC_ABUSE 0.20) X-Hellug-MailScanner-From: keramida@ceid.upatras.gr X-Spam-Status: No Cc: current@freebsd.org 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: Wed, 24 May 2006 20:44:39 -0000 On 2006-05-24 16:37, Kris Kennaway wrote: > On Wed, May 24, 2006 at 11:36:45PM +0300, Giorgos Keramidas wrote: > > On 2006-05-23 15:41, Kris Kennaway wrote: > > > You are confusing mdconfig's -o async mode, used only for vnode > > > backing (not the case here anyway): > > > > > > [no]async > > > For vnode backed devices: avoid IO_SYNC for increased > > > performance but at the risk of deadlocking the entire > > > kernel. > > > > > > with mount's -o async mode, used at the filesystem layer on any > > > device. The latter does not have deadlocks. > > > > Hi Kris, > > > > so we can safely add async to `tmpmfs_flags' in /etc/defaults/rc.conf? > > I think so. Also whatever else uses mds (diskless booting, ...?) AFAIK, only /etc/rc.d/tmp and /etc/rc.d/var use the mount_md() function from `rc.subr'. I think `/etc/rc.initdiskless' includes a local version of mount_md() and uses that one. > > If that is so, do you want me to make the change, or do you want to do > > this? > > I don't have a good idea of what needs to be changed to do all of the > above, so if you're familiar with the code you might as well do it. I can certainly prepare a patch for /etc/rc.d/* files and their manpages. I'll post it for review then :)