md /tmp and async mounts
Giorgos Keramidas
keramida at ceid.upatras.gr
Wed May 24 13:44:39 PDT 2006
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 :)
More information about the freebsd-current
mailing list