From owner-freebsd-hackers@FreeBSD.ORG Tue Jun 19 05:58:50 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 92950106566C; Tue, 19 Jun 2012 05:58:50 +0000 (UTC) (envelope-from fernando.apesteguia@gmail.com) Received: from mail-lb0-f182.google.com (mail-lb0-f182.google.com [209.85.217.182]) by mx1.freebsd.org (Postfix) with ESMTP id 9F7038FC1D; Tue, 19 Jun 2012 05:58:49 +0000 (UTC) Received: by lbon10 with SMTP id n10so6448449lbo.13 for ; Mon, 18 Jun 2012 22:58:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=5I+F+cMKgwOevUxTwqnS/atSegWWEej1xZLKFOVP5RE=; b=ozZFshP5XUygRwVs+VCyyxUNSFkhcjNU9qDukNp5DcdtrffVUvlDpg9pU43eDiziRU mQdGoV6IDap/6QbxOmfyUN2CsDLvqA/1bXfPNlkWuIKJTGwOZ4+Az28TOBT1O6mgWIKv VZ9Bp0ah7I9NThj69d6Bbc04sS14FuGgVuiCHAKiKgZN7xpSVhby23T6ZY+tUJGLfFiJ K63S9MjFbfXSZM6Z0Ss6mNK5FlL3l5hQkftAsXOlLCIl+ZCm2Zm2vOqWYQgm5aDHpVGJ PAE9bdOb0wBuxSB9/tP9djYhiV7az/NKCfeTmcJNb3OyM7qy2L30JYKPGZGqKhxgAcKP dIgg== MIME-Version: 1.0 Received: by 10.112.29.166 with SMTP id l6mr7621787lbh.68.1340085522809; Mon, 18 Jun 2012 22:58:42 -0700 (PDT) Received: by 10.152.24.131 with HTTP; Mon, 18 Jun 2012 22:58:42 -0700 (PDT) In-Reply-To: References: <20120615124849.GI96212@ass.kameli.org> <20120618081140.GK96212@ass.kameli.org> <4FDF6177.5050608@unsane.co.uk> <4FDF6586.9060501@gentoo.org> <4FDFB166.2040709@FreeBSD.org> Date: Tue, 19 Jun 2012 07:58:42 +0200 Message-ID: From: =?ISO-8859-1?Q?Fernando_Apestegu=EDa?= To: Wojciech Puchar Content-Type: text/plain; charset=ISO-8859-1 Cc: Doug Barton , "freebsd-hackers@freebsd.org" , Richard Yao , Vincent Hoffman , Nathan Whitehorn , Outback Dingo , openrc@gentoo.org, =?ISO-8859-1?Q?Atte_Peltom=E4ki?= Subject: Re: Replacing rc(8) (Was: 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: Tue, 19 Jun 2012 05:58:50 -0000 On Tue, Jun 19, 2012 at 6:39 AM, Wojciech Puchar wrote: >> replacing rc.d, since that's almost certainly not relevant to the >> original topic of improving the overall boot time. > > > indeed. > > >> >> If you analyze the boot process thoroughly you should see that out of >> the total time taken to boot, nearly 0 is spent by rc.d actually doing >> something. Almost all of the actual time is spent waiting for other >> stuff, either the kernel (primarily) or the services that the system is >> running actually starting up. >> > most of boot time consist of > > - delay in bootloader. setting autoboot_delay can partially delay it, delay > to zero can be achieved by patching first stage booter that too add delay > > - delay in kernel initialization. making custom kernel helps of course but > still it takes eg 10 seconds on my laptop. putting things that are not > needed instantly at boot - as module - may help. USB being prime example. > > - delay at rc.d scripts - there are some delays inserted. > > >> The latter item is the only place where making changes to rc.d is going >> to help, and only then by parellelizing, and even then you are not >> really going to gain much since most things at boot time are serial. > > > grep sleep /etc/rc.d/* usr/local/etc/rc.d/* > > >> >> So while talk of how to get your favorite boot-time manager into FreeBSD >> may be entertaining, it's not likely to be productive, and almost > > > it is unimportant as FreeBSD don't crash. Please, re-read already sent mails in this thread about that statement so we don't get stuck in a loop. > > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"