From owner-freebsd-hackers@FreeBSD.ORG Mon Aug 1 17:43:58 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6A62416A41F for ; Mon, 1 Aug 2005 17:43:58 +0000 (GMT) (envelope-from marck@rinet.ru) Received: from woozle.rinet.ru (woozle.rinet.ru [195.54.192.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id BFCBE43D46 for ; Mon, 1 Aug 2005 17:43:57 +0000 (GMT) (envelope-from marck@rinet.ru) Received: from localhost (localhost [127.0.0.1]) by woozle.rinet.ru (8.13.3/8.13.3) with ESMTP id j71Hhs5f045847; Mon, 1 Aug 2005 21:43:54 +0400 (MSD) (envelope-from marck@rinet.ru) Date: Mon, 1 Aug 2005 21:43:54 +0400 (MSD) From: Dmitry Morozovsky To: Giorgos Keramidas In-Reply-To: <20050801170236.GA767@beatrix.daedalusnetworks.priv> Message-ID: <20050801214150.S43677@woozle.rinet.ru> 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> X-NCC-RegID: ru.rinet MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (woozle.rinet.ru [0.0.0.0]); Mon, 01 Aug 2005 21:43:54 +0400 (MSD) Cc: freebsd-hackers@freebsd.org, ticso@cicely.de, =?iso-8859-7?Q?Jo=E3o?= Carlos Mendes Luis Subject: Re: mfs/mdconfig under RELENG_5: malloc vs swap-backed X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Aug 2005 17:43:58 -0000 On Mon, 1 Aug 2005, Giorgos Keramidas wrote: GK> On 2005-08-01 20:50, Dmitry Morozovsky 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 *** ------------------------------------------------------------------------