From owner-freebsd-hackers@FreeBSD.ORG Mon Feb 20 15:12:50 2012 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EAA371065673; Mon, 20 Feb 2012 15:12:50 +0000 (UTC) (envelope-from tevans.uk@googlemail.com) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id 8EB298FC08; Mon, 20 Feb 2012 15:12:50 +0000 (UTC) Received: by vbbfa15 with SMTP id fa15so5199425vbb.13 for ; Mon, 20 Feb 2012 07:12:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=WnIYKptjHmQzoEjBKDIVbjrqyNgyRayoTDJRCF/cMgc=; b=Ff1sv250t4oTQysut6uIav/3QkpUQrftzh2AX3gi+Tfb9ZXST8f2aGTVCZDTsdieeC p+N5p2/BHPNN4r8wOPAfVlLzVnfnOkNqsXaNRT06OPuhPZ/UbnB/k+Oh5NstNOH/Mlnk GdIUHcuwGfnjrz2cdxO8b6XdaWZ8IFU7X/yos= MIME-Version: 1.0 Received: by 10.52.26.197 with SMTP id n5mr8039007vdg.81.1329749049803; Mon, 20 Feb 2012 06:44:09 -0800 (PST) Received: by 10.52.91.210 with HTTP; Mon, 20 Feb 2012 06:44:09 -0800 (PST) In-Reply-To: <4F3EFB70.5000102@FreeBSD.org> References: <4F3E8225.9030501@FreeBSD.org> <4F3E8C26.3080900@FreeBSD.org> <4F3EA5F2.9070804@gmail.com> <4F3EAE5F.6070903@gmail.com> <20120217.220802.988.2@DOMY-PC> <4F3EDEBC.7040703@gmail.com> <4F3EFB70.5000102@FreeBSD.org> Date: Mon, 20 Feb 2012 14:44:09 +0000 Message-ID: From: Tom Evans To: Doug Barton Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: hackers@freebsd.org Subject: Re: 8 to 9: Kernel modularization -- did it change? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Feb 2012 15:12:51 -0000 On Sat, Feb 18, 2012 at 1:14 AM, Doug Barton wrote: > Because loading modules through loader.conf is > veeeeeerrrrryyyyyy sssssllllloooooowwwwww I added an rc.d script called > kld that will load the specified modules after disks are mounted. This > is at least an order of magnitude faster. Come off it, loading modules from loader.conf takes seconds off disk, out of the 2+ minute total boot up. There may be benefit on slow media, but in the general case I see no benefit (which might explain why not many people are bothering to change their working configs to save <2s on bootup). wrt to sound drivers no longer being built as modules, I wonder why this change has been made. I don't recall a mass of people complaining that they couldn't load drivers, or adding 'sound_enable=3D"YES"' to loader.conf being particularly onerous. As has been pointed out, this change makes it hard to load/unload the snd_hda code, which is useful to wire the outputs to the appropriate pins. I suppose if we have to "boot, test, change, reboot, test change, reboot=E2=80=A6" ad infinitum to do this in future, saving 2s on bo= ot would be *super* useful. Whatever happened to POLA? This change surprised me, wasn't mentioned in /usr/src/UPDATING, and I still don't understand what benefits this change is supposed to bring. Cheers Tom