Locking a file backed mdconfig into memory
Dave Hayes
dave at jetcafe.org
Fri May 28 17:57:30 UTC 2010
Clifton Royston <cliftonr at 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 at 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.
More information about the freebsd-stable
mailing list