Date: Mon, 1 Aug 2005 20:50:29 +0400 (MSD) From: Dmitry Morozovsky <marck@rinet.ru> To: =?ISO-8859-1?Q?Jo=E3o_Carlos_Mendes_Luis?= <jonny@jonny.eng.br> Cc: freebsd-hackers@freebsd.org, ticso@cicely.de Subject: Re: mfs/mdconfig under RELENG_5: malloc vs swap-backed Message-ID: <20050801204935.D43677@woozle.rinet.ru> In-Reply-To: <42EE4F06.70502@jonny.eng.br> References: <20050729211719.C95340@woozle.rinet.ru> <20050729231544.GX26656@cicely12.cicely.de> <42EE4F06.70502@jonny.eng.br>
next in thread | previous in thread | raw e-mail | index | archive | help
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@rinet.ru ***
------------------------------------------------------------------------
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050801204935.D43677>
