From owner-freebsd-arch@FreeBSD.ORG Sun Jun 12 02:20:18 2011 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3D9EB106564A for ; Sun, 12 Jun 2011 02:20:18 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-yi0-f54.google.com (mail-yi0-f54.google.com [209.85.218.54]) by mx1.freebsd.org (Postfix) with ESMTP id D46398FC12 for ; Sun, 12 Jun 2011 02:20:17 +0000 (UTC) Received: by yic13 with SMTP id 13so207053yic.13 for ; Sat, 11 Jun 2011 19:20:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=+m/DS11mm+GnelvDYchi7qR0YbHHxNtp3969DYPVjBg=; b=WOg7wLZYbmQZBZuCCFRLYPKVX01s0hPySS2JHA7gmeCt+7vH2cN4Gl76lOLULmEnsi HhwSFnnVJD7R5vijuFsGpxF7vipEBGrcdX9Wf2Kbu+IGo/wBjxaiRGQaAosfddljbCeJ G2jLlJ3l1ENKg1pR5LoGbNHgmmGGXzNE7A8As= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=OeBQv5zLJRDfFvChDX1EyUUVbmFa0qkfmze9+pf/RLMQnlCAZfHJN1T9NCdGuUE3BX vVsZPYztmCMIDlYSXWMClmGxBQJ15G2u6NIdBmC9wsZuOOXS+JTSZb/QDedkBBZ5QjSx q52OmXiVEZYzwRVDrNiXwakfqeTRTB5vaST6o= MIME-Version: 1.0 Received: by 10.150.13.15 with SMTP id 15mr4776904ybm.103.1307845216497; Sat, 11 Jun 2011 19:20:16 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.150.216.3 with HTTP; Sat, 11 Jun 2011 19:20:16 -0700 (PDT) In-Reply-To: <48A8C532-0972-49F8-BBA3-B0663E0D5067@bsdimp.com> References: <20110611171834.GA38142@zim.MIT.EDU> <20110611204326.GA51320@zim.MIT.EDU> <9349A935-F13D-4265-A59C-C1E9B35F2B73@bsdimp.com> <48A8C532-0972-49F8-BBA3-B0663E0D5067@bsdimp.com> Date: Sun, 12 Jun 2011 10:20:16 +0800 X-Google-Sender-Auth: con1sVBqtNCfAcNwzucOHH9XK8s Message-ID: From: Adrian Chadd To: Warner Losh Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: mdf@freebsd.org, "K. Macy" , freebsd-arch@freebsd.org Subject: Re: [RFC] shipping kernels with default modules? X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Jun 2011 02:20:18 -0000 On 12 June 2011 10:10, Warner Losh wrote: >>> Right now newbus uses Giant for all its locking. =A0That's the biggest = problem preventing parallel probe/attach. =A0Also, each and every bus calls= probe, then calls attach for each device in sequence. =A0Fixing that would= require changing all the bus drivers. >> >> >> Fair enough. That would only be worthwhile in the presence of a >> coordinated push to shorten boot / reset times. > > Agreed. =A0We could be a *LOT* faster if we stalled on first use rather t= han wait for all the stragglers. =A0No need to wait for network devices, or= that USB drive that's connected to the system until ifconfig or mount time= . =A0I think that has to be in the mix too. =A0But that dove-tails into som= ething like launchd where applications wait for the resources they use to f= inish initializing. How about first getting a modular GENERIC working for different platforms, with the relevant metadata to load in modules that are needed at loader time, or the relevant loader.conf snippet to emulate the GENERIC behaviour (and people can just comment out modules they don't need from that!). Then worry about why loading modules from loader takes so long (if it does, I've never benchmarked it!) Parallelising probe/attach where possible, which may be a good idea, seems like an orthogonal problem. Adrian