From owner-freebsd-current@FreeBSD.ORG Sun Jun 12 18:51:15 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx2.freebsd.org (mx2.freebsd.org [IPv6:2001:4f8:fff6::35]) by hub.freebsd.org (Postfix) with ESMTP id 985341065673 for ; Sun, 12 Jun 2011 18:51:15 +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 924521536D1; Sun, 12 Jun 2011 18:51:12 +0000 (UTC) Message-ID: <4DF50AA1.9080607@FreeBSD.org> Date: Sun, 12 Jun 2011 11:51:13 -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: jhell@DataIX.net References: <4DF3E98B.40108@FreeBSD.org> <20110612085649.GA11503@DataIX.net> In-Reply-To: <20110612085649.GA11503@DataIX.net> X-Enigmail-Version: 1.1.1 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-current@freebsd.org Subject: Re: rc.d script to load kernel modules X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Jun 2011 18:51:15 -0000 On 6/12/2011 1:56 AM, Jason Hellenthal wrote: > Cutting modules out of the kernel in general does help speed up booting > but loading those same modules later in the boot process will just lead > you back to the same boot time. Loading modules via loader.conf is many times slower than doing it from disk after the system is partially booted. (As in, 2-3 seconds per module vs. nearly instantaneous for all 6.) I didn't offer my list as an example of what to do, I offered it as a syntax example. I would of course expect people to use appropriate discretion to load things in loader.conf that are necessary for boot. (Of course, the fact that people can easily get this wrong is a strike against the technique.) There is no point in having an _enable for this script because if the kld_list is empty, nothing happens. -- 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/