From owner-freebsd-hackers@FreeBSD.ORG Mon Aug 1 17:02:43 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 1C94A16A41F for ; Mon, 1 Aug 2005 17:02:43 +0000 (GMT) (envelope-from keramida@linux.gr) Received: from kane.otenet.gr (kane.otenet.gr [195.170.0.95]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4966143D45 for ; Mon, 1 Aug 2005 17:02:40 +0000 (GMT) (envelope-from keramida@linux.gr) Received: from beatrix.daedalusnetworks.priv (aris.bedc.ondsl.gr [62.103.39.226]) by kane.otenet.gr (8.13.4/8.13.4/Debian-1) with SMTP id j71H2abR010802; Mon, 1 Aug 2005 20:02:36 +0300 Received: from beatrix.daedalusnetworks.priv (localhost [127.0.0.1]) by beatrix.daedalusnetworks.priv (8.13.3+Sun/8.13.3) with ESMTP id j71H2aL3000790; Mon, 1 Aug 2005 20:02:36 +0300 (EEST) Received: (from keramida@localhost) by beatrix.daedalusnetworks.priv (8.13.3+Sun/8.13.3/Submit) id j71H2ae5000789; Mon, 1 Aug 2005 20:02:36 +0300 (EEST) Date: Mon, 1 Aug 2005 20:02:36 +0300 From: Giorgos Keramidas To: Dmitry Morozovsky Message-ID: <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> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050801204935.D43677@woozle.rinet.ru> 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:02:43 -0000 On 2005-08-01 20:50, Dmitry Morozovsky wrote: >On Mon, 1 Aug 2005, Jo?o Carlos Mendes Luis wrote: >>>> can anyone please point me why mdconfig method for tmpmfs is >>>> malloc-backed instead of swap-backed, and it is hardcoded into >>>> rc.subr? >>>> Are swap-backed file systems so inefficient? If no, why not move -M to >>>> /etc/defaultc/rc.conf so admin can override this behaviour? >>> >>> Diskless systems may not have swap - the default is required as is. >>> Don't know about beeing hardcoded. >> >> It is hardcoded at /etc/rc.subr: >> >> # Provide a function for normalizing the mounting of memory >> # filesystems. This should allow the rest of the code here to remain >> # as close as possible between 5-current and 4-stable. >> # $1 = size >> # $2 = mount point >> # $3 = (optional) extra mdmfs flags >> mount_md() { >> if [ -n "$3" ]; then >> flags="$3" >> fi >> /sbin/mdmfs $flags -s $1 -M md $2 >> } >> >> 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. Yes, I like the change. I'm not an src-committer, so it is just an informed opinion by someone who eats shell scripts for breakfast, so feel free to ask the freebsd-rc@freebsd.org guys too :-) - Giorgos