Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 May 2006 23:46:17 +0300
From:      Giorgos Keramidas <keramida@ceid.upatras.gr>
To:        Kris Kennaway <kris@obsecurity.org>
Cc:        current@freebsd.org
Subject:   Re: md /tmp and async mounts
Message-ID:  <20060524204617.GA13701@gothmog.pc>
In-Reply-To: <20060524203747.GA88742@xor.obsecurity.org>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2006-05-24 16:37, Kris Kennaway <kris@obsecurity.org> wrote:
> On Wed, May 24, 2006 at 11:36:45PM +0300, Giorgos Keramidas wrote:
> > On 2006-05-23 15:41, Kris Kennaway <kris@obsecurity.org> 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 :)




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060524204617.GA13701>