Re: md /tmp and async mounts

From: Giorgos Keramidas <keramida_at_ceid.upatras.gr>
Date: Wed, 24 May 2006 23:46:17 +0300
On 2006-05-24 16:37, Kris Kennaway <kris_at_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_at_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 :)
Received on Wed May 24 2006 - 18:44:35 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:56 UTC