mfs/mdconfig under RELENG_5: malloc vs swap-backed
Dmitry Morozovsky
marck at rinet.ru
Mon Aug 1 16:50:44 GMT 2005
On Mon, 1 Aug 2005, Jo?o Carlos Mendes Luis wrote:
JCML> > > can anyone please point me why mdconfig method for tmpmfs is
JCML> > > malloc-backed instead of swap-backed, and it is hardcoded into
JCML> > > rc.subr?
JCML> > > Are swap-backed file systems so inefficient? If no, why not move -M to
JCML> > > /etc/defaultc/rc.conf so admin can override this behaviour?
JCML> >
JCML> >
JCML> > Diskless systems may not have swap - the default is required as is.
JCML> > Don't know about beeing hardcoded.
JCML>
JCML> It is hardcoded at /etc/rc.subr:
JCML>
JCML> # Provide a function for normalizing the mounting of memory
JCML> # filesystems. This should allow the rest of the code here to remain
JCML> # as close as possible between 5-current and 4-stable.
JCML> # $1 = size
JCML> # $2 = mount point
JCML> # $3 = (optional) extra mdmfs flags
JCML> mount_md() {
JCML> if [ -n "$3" ]; then
JCML> flags="$3"
JCML> fi
JCML> /sbin/mdmfs $flags -s $1 -M md $2
JCML> }
JCML>
JCML> I would prefer it to be configurable, too.
I did contacted keramida@ yesterday, and he seems to be happy with my proposed
patch. So, just wait for it to be committed.
Sincerely,
D.Marck [DM5020, MCK-RIPE, DM3-RIPN]
------------------------------------------------------------------------
*** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck at rinet.ru ***
------------------------------------------------------------------------
More information about the freebsd-hackers
mailing list