From owner-freebsd-current@FreeBSD.ORG Fri Jul 18 14:25:46 2008 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 56985106564A; Fri, 18 Jul 2008 14:25:46 +0000 (UTC) (envelope-from das@FreeBSD.ORG) Received: from zim.MIT.EDU (ZIM.MIT.EDU [18.95.3.101]) by mx1.freebsd.org (Postfix) with ESMTP id 027AA8FC15; Fri, 18 Jul 2008 14:25:45 +0000 (UTC) (envelope-from das@FreeBSD.ORG) Received: from zim.MIT.EDU (localhost [127.0.0.1]) by zim.MIT.EDU (8.14.2/8.14.2) with ESMTP id m6IEQHDg032469; Fri, 18 Jul 2008 10:26:17 -0400 (EDT) (envelope-from das@FreeBSD.ORG) Received: (from das@localhost) by zim.MIT.EDU (8.14.2/8.14.2/Submit) id m6IEQGgn032468; Fri, 18 Jul 2008 10:26:16 -0400 (EDT) (envelope-from das@FreeBSD.ORG) Date: Fri, 18 Jul 2008 10:26:16 -0400 From: David Schultz To: Peter Jeremy Message-ID: <20080718142616.GA32265@zim.MIT.EDU> Mail-Followup-To: Peter Jeremy , Alexander Leidinger , Doug Barton , David Naylor , freebsd-current@FreeBSD.ORG References: <200807172056.08835.naylor.b.david@gmail.com> <487FCA89.2010308@FreeBSD.org> <20080718083725.97823be0tg13fn6s@webmail.leidinger.net> <20080718071806.GV62764@server.vk2pj.dyndns.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080718071806.GV62764@server.vk2pj.dyndns.org> Cc: Alexander Leidinger , Doug Barton , David Naylor , freebsd-current@FreeBSD.ORG Subject: Re: rc improvements (wanted?) 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: Fri, 18 Jul 2008 14:25:46 -0000 On Fri, Jul 18, 2008, Peter Jeremy wrote: > On 2008-Jul-18 08:37:25 +0200, Alexander Leidinger wrote: > >Are you aware that the parallel starting in Solaris 10 reduced the > >booting time by a nice percentage? > > Given that Solaris boots in geologic time, this probably wouldn't > be difficult. Solaris actually boots significantly faster than FreeBSD on my desktops, but that's not because of the parallel rc startup--- it's mainly for the completely orthogonal reason that the USB stack and the ata(4) driver in FreeBSD take an eternity to probe. So I suspect that people interested in making FreeBSD boot faster could find lots of low-hanging fruit even without touching rc. > Parallel starting is not guaranteed to be an improvement. Starting a > whole pile of processes that are I/O bound during initialisation > (think squid or some databases) may be worse than starting them one > at a time. Likewise, a whole pile of processes that are CPU bound > will just thrash the scheduler. (Though parallel starting of I/O and > CPU bound processes should be a win). Parallel service startup in Solaris does seem to save time (although this is on a dual core; I haven't tried a UP system). Keep in mind also that many rc scripts spend a few seconds waiting on the network, and that time could be better spent starting something else. That said, parallel startup doesn't make an enormous difference, and that wasn't the main reason Sun wrote SMF. The main motivation was to be able to automatically restart failed services and their dependencies, and provide better administrative tools. If you can find a way to decrease the boot time considerably, many people won't care, but I'm sure some will greatly appreciate it. There are two ways to cut downtime in half: make the system crash half as often, or make it recover twice as fast. The latter is probably an easier task. :)