From owner-svn-src-all@FreeBSD.ORG Sat Jun 11 20:55:16 2011 Return-Path: Delivered-To: svn-src-all@FreeBSD.org Received: from mx2.freebsd.org (mx2.freebsd.org [IPv6:2001:4f8:fff6::35]) by hub.freebsd.org (Postfix) with ESMTP id E769C106566B; Sat, 11 Jun 2011 20:55:16 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from [127.0.0.1] (hub.freebsd.org [IPv6:2001:4f8:fff6::36]) by mx2.freebsd.org (Postfix) with ESMTP id 03F9B14DAFC; Sat, 11 Jun 2011 20:55:15 +0000 (UTC) Message-ID: <4DF3D633.5060506@FreeBSD.org> Date: Sat, 11 Jun 2011 13:55:15 -0700 From: Doug Barton Organization: http://www.FreeBSD.org/ User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 MIME-Version: 1.0 To: Warner Losh References: <201106110908.p5B98kkE066709@svn.freebsd.org> <4DF3B12C.8020505@FreeBSD.org> <9583277B-6EC0-4B7F-9640-2B128A96C6B8@bsdimp.com> In-Reply-To: <9583277B-6EC0-4B7F-9640-2B128A96C6B8@bsdimp.com> X-Enigmail-Version: 1.1.1 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: svn-src-head@FreeBSD.org, svn-src-all@FreeBSD.org, src-committers@FreeBSD.org, Robert Watson , Joel Dahl Subject: Re: svn commit: r222980 - in head/sys: amd64/conf i386/conf X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Jun 2011 20:55:17 -0000 On 6/11/2011 1:02 PM, Warner Losh wrote: > > On Jun 11, 2011, at 12:17 PM, Doug Barton wrote: > >> On 6/11/2011 6:07 AM, Robert Watson wrote: >>> To me, this seems like the wrong direction. Over the last decade, we've >>> been trying to move away from conditional compilation of features to >>> having them be loadable as modules. >> >> FWIW, I agree. I'm wondering though, is there still a performance penalty for modules? My understanding in the past was that there is, although for most use cases it's in the statistical noise. Is that still true? > > At run time, I believe that's true. At load time, lots of modules can take a few seconds longer. I have 3 or 4 modules loaded via loader.conf at boot time. They take at least 2 seconds each. IMO loading everything via loader.conf would slow the boot so much as to be a non-starter. OTOH, I could imagine an rc.d script that depends on mountcritlocal that could load a list of modules. Unless I'm missing something that would be several times faster. Doug -- Nothin' ever doesn't change, but nothin' changes much. -- OK Go Breadth of IT experience, and depth of knowledge in the DNS. Yours for the right price. :) http://SupersetSolutions.com/