Date: Mon, 1 Aug 2005 21:43:54 +0400 (MSD) From: Dmitry Morozovsky <marck@rinet.ru> To: Giorgos Keramidas <keramida@linux.gr> Cc: freebsd-hackers@freebsd.org, ticso@cicely.de, =?iso-8859-7?Q?Jo=E3o?= Carlos Mendes Luis <jonny@jonny.eng.br> Subject: Re: mfs/mdconfig under RELENG_5: malloc vs swap-backed Message-ID: <20050801214150.S43677@woozle.rinet.ru> In-Reply-To: <20050801170236.GA767@beatrix.daedalusnetworks.priv> References: <20050729211719.C95340@woozle.rinet.ru> <20050729231544.GX26656@cicely12.cicely.de> <42EE4F06.70502@jonny.eng.br> <20050801204935.D43677@woozle.rinet.ru> <20050801170236.GA767@beatrix.daedalusnetworks.priv>
index | next in thread | previous in thread | raw e-mail
On Mon, 1 Aug 2005, Giorgos Keramidas wrote:
GK> On 2005-08-01 20:50, Dmitry Morozovsky <marck@rinet.ru> wrote:
GK> >On Mon, 1 Aug 2005, Jo?o Carlos Mendes Luis wrote:
GK> >>>> can anyone please point me why mdconfig method for tmpmfs is
GK> >>>> malloc-backed instead of swap-backed, and it is hardcoded into
GK> >>>> rc.subr?
GK> >>>> Are swap-backed file systems so inefficient? If no, why not move -M to
GK> >>>> /etc/defaultc/rc.conf so admin can override this behaviour?
GK> >>>
GK> >>> Diskless systems may not have swap - the default is required as is.
GK> >>> Don't know about beeing hardcoded.
GK> >>
GK> >> It is hardcoded at /etc/rc.subr:
GK> >>
GK> >> # Provide a function for normalizing the mounting of memory
GK> >> # filesystems. This should allow the rest of the code here to remain
GK> >> # as close as possible between 5-current and 4-stable.
GK> >> # $1 = size
GK> >> # $2 = mount point
GK> >> # $3 = (optional) extra mdmfs flags
GK> >> mount_md() {
GK> >> if [ -n "$3" ]; then
GK> >> flags="$3"
GK> >> fi
GK> >> /sbin/mdmfs $flags -s $1 -M md $2
GK> >> }
GK> >>
GK> >> I would prefer it to be configurable, too.
GK> >
GK> > I did contacted keramida@ yesterday, and he seems to be happy with my
GK> > proposed patch. So, just wait for it to be committed.
GK>
GK> Yes, I like the change. I'm not an src-committer, so it is just an
GK> informed opinion by someone who eats shell scripts for breakfast, so
GK> feel free to ask the freebsd-rc@freebsd.org guys too :-)
Hmm.
marck@woozle:/lh/src.current> whodid etc/rc.subr
etc/rc.subr:
20 mtm
6 gordon
3 keramida
2 obrien
2 cperciva
1 schweikh
1 des
1 brooks
I supposed you can commit there, as you already did it 3 times, and I can't see
any Approved: lines in CVS logs ;-P
Sincerely,
D.Marck [DM5020, MCK-RIPE, DM3-RIPN]
------------------------------------------------------------------------
*** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck@rinet.ru ***
------------------------------------------------------------------------
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050801214150.S43677>
