From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 13 23:01:33 2012 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E44E01065670 for ; Wed, 13 Jun 2012 23:01:33 +0000 (UTC) (envelope-from cattelan@thebarn.com) Received: from x.digitalelves.com (x.digitalelves.com [209.98.77.55]) by mx1.freebsd.org (Postfix) with ESMTP id 846B38FC0A for ; Wed, 13 Jun 2012 23:01:33 +0000 (UTC) Received: from macpro00.x.thebarn.com (c-66-41-26-220.hsd1.mn.comcast.net [66.41.26.220]) (authenticated bits=0) by x.digitalelves.com (8.14.5/8.14.5) with ESMTP id q5DMnuod078780 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO) for ; Wed, 13 Jun 2012 17:49:57 -0500 (CDT) (envelope-from cattelan@thebarn.com) Message-ID: <4FD91913.20607@thebarn.com> Date: Wed, 13 Jun 2012 17:49:55 -0500 From: Russell Cattelan User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 MIME-Version: 1.0 To: freebsd-hackers@freebsd.org References: <20336.1339571779@critter.freebsd.dk> In-Reply-To: <20336.1339571779@critter.freebsd.dk> X-Enigmail-Version: 1.4.1 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigB838464551549E703833768C" X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: FreeBSD Boot Times 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: Wed, 13 Jun 2012 23:01:34 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigB838464551549E703833768C Content-Type: multipart/mixed; boundary="------------050802040009090709000206" This is a multi-part message in MIME format. --------------050802040009090709000206 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 6/13/12 2:16 AM, Poul-Henning Kamp wrote: > In message , Wojci > ech Puchar writes: >=20 > One of the major slowdowns is that we do all the device drivers > serially & synchronously. Yes definitely. I have been looking into how to potentially defer or parallelize device_attach'es. Defer is turning out to be hard enough since each system is has different requirements to reach a state where it can run /sbin/init. I've started with the John Baldwin's multipass work and have a system stops probing/attaching devices and allows the boot to continue on. The remaining passes I'm triggering from userspace once the system is up.= This is all very crude at this point and has been an some work just to understand how the kernel startup code all links together. Note systemd looks interesting from from a demand based startup scheme much like apples launchd. (note systemd uses linux process groups so porting it would take some effort) Ideally it would be nice to get to the point where many devices are only attached once there is a demand for it. Say network interfaces for example: attach it once the init scripts need to config it and then hopefully in an async fashion. Unfortunately that will require locking a bit more fine grain than the current "Giant" lock. -Russell >=20 --------------050802040009090709000206-- --------------enigB838464551549E703833768C Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk/ZGRMACgkQNRmM+OaGhBhdWACfdiYT9Jn+xELa3qOnK8FNm20Y lX0An1l2IuHPa50ZGNORnqL/f3E6XcFW =OSKA -----END PGP SIGNATURE----- --------------enigB838464551549E703833768C--