Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 May 2010 10:57:29 -0700
From:      Dave Hayes <dave@jetcafe.org>
To:        Clifton Royston <cliftonr@lava.net>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: Locking a file backed mdconfig into memory 
Message-ID:  <201005281757.o4SHvTwq020905@hugeraid.jetcafe.org>
In-Reply-To: <20100528043006.GA18560@lava.net> 
References:  <201005272348.o4RNmgWh014243@hugeraid.jetcafe.org>  <20100528043006.GA18560@lava.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Clifton Royston <cliftonr@lava.net> writes:
> It sounds like what you really want is to load the contents of the
> specified file as a memory system?  That's not part of mdconfig's
> repertoire, to the best of my recollection.  

So if, in /etc/loader.conf, I do this:

 rootfs_load="YES"
 rootfs_type="mfs_root"
 rootfs_name="/mfsboot"
 vfs.root.mountfrom="ufs:md0"

and /mfsboot comes from a bootable DVD, am I to assume that this mount
is under the same constraint? Specifically, this constraint is that the
/mfsboot file (and hence the DVD) will be read repeatedly if the system
is under memory pressure.

> If that's what you want, you need to use a different tool; the purpose
> of mdconfig is to provide scratch disk.  The backing store is to
> specify a region its contents can be swapped out to if the system is
> under memory pressure (which certainly won't work with a DVD)

Heh. Certainly I am using tools for purposes which may not match the
original intention. If I wanted to run the rootfs on a memory device
which did -not- swap to the backing store of /mfsboot, how would I go 
about doing that?
-- 
Dave Hayes - Consultant - Altadena CA, USA - dave@jetcafe.org 
>>> The opinions expressed above are entirely my own <<<

Faith (n): The quality by which we believe what we would
otherwise think was false.





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