mfs/mdconfig under RELENG_5: malloc vs swap-backed

Dmitry Morozovsky marck at rinet.ru
Mon Aug 1 17:43:58 GMT 2005


On Mon, 1 Aug 2005, Giorgos Keramidas wrote:

GK> On 2005-08-01 20:50, Dmitry Morozovsky <marck at 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 at freebsd.org guys too :-)

Hmm. 

marck at 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 at rinet.ru ***
------------------------------------------------------------------------


More information about the freebsd-hackers mailing list