From owner-freebsd-current@FreeBSD.ORG Mon Jun 13 06:51:50 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 22602106566B; Mon, 13 Jun 2011 06:51:50 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from kabab.cs.huji.ac.il (kabab.cs.huji.ac.il [132.65.16.84]) by mx1.freebsd.org (Postfix) with ESMTP id CE4F18FC0C; Mon, 13 Jun 2011 06:51:49 +0000 (UTC) Received: from pampa.cs.huji.ac.il ([132.65.80.32]) by kabab.cs.huji.ac.il with esmtp id 1QW0VI-000Ohl-K4; Mon, 13 Jun 2011 09:20:04 +0300 X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.2 To: Doug Barton In-reply-to: <4DF50AA1.9080607@FreeBSD.org> References: <4DF3E98B.40108@FreeBSD.org> <20110612085649.GA11503@DataIX.net> <4DF50AA1.9080607@FreeBSD.org> Comments: In-reply-to Doug Barton message dated "Sun, 12 Jun 2011 11:51:13 -0700." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 13 Jun 2011 09:20:04 +0300 From: Daniel Braniss Message-ID: Cc: jhell@DataIX.net, 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: Mon, 13 Jun 2011 06:51:50 -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. > Doug's solution is what we have been using for a very long time! the loader.conf solution is not practical when it's shared among many hosts -like here where most of the hosts are dataless-, so, moving the not essential ones to rc.conf was the obvious solution. my .5 danny