From owner-freebsd-current@FreeBSD.ORG Sun Jun 12 08:56:56 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 580F3106564A; Sun, 12 Jun 2011 08:56:56 +0000 (UTC) (envelope-from jhellenthal@gmail.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id 01E0F8FC12; Sun, 12 Jun 2011 08:56:55 +0000 (UTC) Received: by iyj12 with SMTP id 12so4650244iyj.13 for ; Sun, 12 Jun 2011 01:56:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:sender:date:from:to:cc:subject:message-id :reply-to:references:mime-version:content-type:content-disposition :in-reply-to:x-openpgp-key-id:x-openpgp-key-fingerprint :x-openpgp-key-url; bh=WiloXzf6LuOz2luZ+dSyRveKsE2eL+SB2OjSonukkjs=; b=fg/GSBDFgNagbaDm+EPESEIqNxnPE5p+9EGx5qTD/vMFKrgc5PTjsFFnk7ecqVzwiM D3HH9LwbZj9+wHFj2I9wxgtasNdu/82VSJdHJ8lBf0/OWZB4yiqyIojIpSUmN+lLR92N 5lYiR1AZEImKTMPcwZ9vTahvmfG5ef+C44fp4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:date:from:to:cc:subject:message-id:reply-to:references :mime-version:content-type:content-disposition:in-reply-to :x-openpgp-key-id:x-openpgp-key-fingerprint:x-openpgp-key-url; b=GwER7q3T6ocIJKqB1uDrM+EcJ85p96TH6R1Rwyjm50Bfb/Y+6LJKYTCJmKmqN3f/BE rBqZok8XKkzQ2urjPaxrBZozEz/AvnKMSNklqLiIPMzhjUB8sUmbjTGE738UsFdVF4qA R0gfgESkCjPGLfi+F3XoJj6Z9kZImMSr9kSbE= Received: by 10.231.16.3 with SMTP id m3mr4217468iba.195.1307869015164; Sun, 12 Jun 2011 01:56:55 -0700 (PDT) Received: from DataIX.net ([99.181.139.216]) by mx.google.com with ESMTPS id x13sm2213886ibh.67.2011.06.12.01.56.53 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 12 Jun 2011 01:56:53 -0700 (PDT) Sender: "J. Hellenthal" Received: from DataIX.net (localhost [127.0.0.1]) by DataIX.net (8.14.4/8.14.4) with ESMTP id p5C8uo4L012380 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 12 Jun 2011 04:56:51 -0400 (EDT) (envelope-from jhell@DataIX.net) Received: (from jhell@localhost) by DataIX.net (8.14.4/8.14.4/Submit) id p5C8une8012379; Sun, 12 Jun 2011 04:56:49 -0400 (EDT) (envelope-from jhell@DataIX.net) Date: Sun, 12 Jun 2011 04:56:49 -0400 From: Jason Hellenthal To: Doug Barton Message-ID: <20110612085649.GA11503@DataIX.net> References: <4DF3E98B.40108@FreeBSD.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="zYM0uCDKw75PZbzx" Content-Disposition: inline In-Reply-To: <4DF3E98B.40108@FreeBSD.org> X-OpenPGP-Key-Id: 0x89D8547E X-OpenPGP-Key-Fingerprint: 85EF E26B 07BB 3777 76BE B12A 9057 8789 89D8 547E X-OpenPGP-Key-URL: http://bit.ly/0x89D8547E 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 Reply-To: jhell@DataIX.net 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 08:56:56 -0000 --zYM0uCDKw75PZbzx Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Jun 11, 2011 at 03:17:47PM -0700, Doug Barton wrote: > Howdy, >=20 > Per discussion on -arch and the svn list about improving boot time and=20 > stripping down the kernel to just that-which-cannot-be-modularized I=20 > created the attached script to kldload modules that don't need to be in= =20 > loader.conf. It cut quite a bit of time off my boot, so hopefully it=20 > will be useful to others as well. >=20 > To use it just put everything that is being _load'ed in loader.conf into= =20 > kld_list in rc.conf[.local]. For example, mine has: >=20 > kld_list=3D'umass coretemp ichwd linux nvidia if_wpi' >=20 > If there is agreement that this is a good direction to go I'll be happy= =20 > to commit this along with the relevant /etc/defaults/rc.conf and=20 > rc.conf.5 changes. >=20 umass for one I could see how it would speed up your boot since you would not have to probe for USB devices to possibly mount root from but not a big show stopper for those who don't need that so this would come in handy in that case but could also be handled by devd more elequently. coretemp ichwd linux nvidia if_wpi: I can't really see how this would speed up booting at all since the same initialization is going to be done after root is mounted or before root is mounted. Whats the difference here ? 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. So all in all this would be just subverting what loader.conf already does quite nicely... just loads. Is there some other motivation besides boot times ? that is inspiring the move from loader.conf to rc.onf[.local] ? And then sticking to the semantics of the rest of the rc system not to put a color on this but [following]. kldload_enable=3D"YES" kldload_list=3D"mod1 mod2 mod3 mod4 mod5" kldload_flags=3D"" Seems to make sense if it has to happen. *shrug* --zYM0uCDKw75PZbzx Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (FreeBSD) Comment: http://bit.ly/0x89D8547E iQEcBAEBAgAGBQJN9H9RAAoJEJBXh4mJ2FR+vhgH/2TfJYkonF1HPSBCHji29YfY /AKB+AwzLUUwhu1HhoDKX53VcUs7+ERySQ6RqPIOY2T/4po/KLXdkQXpWsxSHVKe H8KJnQdGXQ55XR4IvhRWrlR9q+Odd+yz141GWZYU1pparNX/BNSczEM37kB9cpUX BOhcSUACuPYaGaGQNhHbYMgbCOIy9W6iDOMRsjiQyvC0JBqnHW8RlYHNS1TYxViN 19wW0My48acojY+850XrKsUvEQ3GpKvxdmPvYvFCDdLhohLwkKFVSk37WEF7O7jq x5ECGPkHdIZFkG/2Qi4h3EQO1fSl653Of4vXW8bjHa8IP0WAS5fCuSCudvHvxnE= =takR -----END PGP SIGNATURE----- --zYM0uCDKw75PZbzx--