From owner-svn-src-all@FreeBSD.ORG Sat Jul 2 18:33:29 2011 Return-Path: Delivered-To: svn-src-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BC000106564A; Sat, 2 Jul 2011 18:33:28 +0000 (UTC) (envelope-from uqs@spoerlein.net) Received: from acme.spoerlein.net (acme.spoerlein.net [IPv6:2a01:4f8:131:23c2::1]) by mx1.freebsd.org (Postfix) with ESMTP id 323288FC12; Sat, 2 Jul 2011 18:33:28 +0000 (UTC) Received: from localhost (acme.spoerlein.net [IPv6:2a01:4f8:131:23c2::1]) by acme.spoerlein.net (8.14.4/8.14.4) with ESMTP id p62IXLsQ018189 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Sat, 2 Jul 2011 20:33:21 +0200 (CEST) (envelope-from uqs@spoerlein.net) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=spoerlein.net; s=dkim200908; t=1309631602; bh=H7kGlo6/Vjp0rClWEtRLXfK1X4/++5g4XKcboPc//V8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:In-Reply-To; b=HdWNSXIa37mCIqT0XUSzcRhMaTzQa8cJoMicMRjDRjA6KyFjTvFdCMO15dEXOrat9 /6g1ZWGh9xM6ocwlldQbdpG696KHpEOHKXfszATGvW7OtRYMmeURyvVVfs5G6ZT33e OJTCrCJSE3DCsPCd6Yzz4sLSILZfCW8PLv+YkBB8= Date: Sat, 2 Jul 2011 20:33:21 +0200 From: Ulrich =?utf-8?B?U3DDtnJsZWlu?= To: Doug Barton Message-ID: <20110702183320.GB8485@acme.spoerlein.net> Mail-Followup-To: Ulrich =?utf-8?B?U3DDtnJsZWlu?= , Doug Barton , Warner Losh , Robert Watson , Joel Dahl , src-committers@FreeBSD.org, svn-src-all@FreeBSD.org, svn-src-head@FreeBSD.org References: <201106110908.p5B98kkE066709@svn.freebsd.org> <4DF3B12C.8020505@FreeBSD.org> <9583277B-6EC0-4B7F-9640-2B128A96C6B8@bsdimp.com> <4DF3D633.5060506@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4DF3D633.5060506@FreeBSD.org> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: src-committers@FreeBSD.org, svn-src-all@FreeBSD.org, Robert Watson , Joel Dahl , svn-src-head@FreeBSD.org, Warner Losh 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, 02 Jul 2011 18:33:29 -0000 On Sat, 11.06.2011 at 13:55:15 -0700, Doug Barton wrote: > 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. I suspect this is your BIOS' fault. I load 22 modules via loader.conf and the loader takes 2, at most 3, seconds to load them all (next to the kernel). This is true for all machines that I own/owned. As you can guess, I'm very much in favour of moving modules from GENERIC to loader.conf ... Uli