From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 13 14:19: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 9ADC11065695 for ; Wed, 13 Jun 2012 14:19:50 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) Received: from adsum.doit.wisc.edu (adsum.doit.wisc.edu [144.92.197.210]) by mx1.freebsd.org (Postfix) with ESMTP id 6A2408FC14 for ; Wed, 13 Jun 2012 14:19:50 +0000 (UTC) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; CHARSET=US-ASCII; format=flowed Received: from avs-daemon.smtpauth1.wiscmail.wisc.edu by smtpauth1.wiscmail.wisc.edu (Sun Java(tm) System Messaging Server 7u2-7.05 32bit (built Jul 30 2009)) id <0M5K00M0K7T1ZF00@smtpauth1.wiscmail.wisc.edu> for freebsd-hackers@freebsd.org; Wed, 13 Jun 2012 09:19:49 -0500 (CDT) Received: from comporellon.tachypleus.net ([unknown] [76.210.74.20]) by smtpauth1.wiscmail.wisc.edu (Sun Java(tm) System Messaging Server 7u2-7.05 32bit (built Jul 30 2009)) with ESMTPSA id <0M5K008497T0CN30@smtpauth1.wiscmail.wisc.edu> for freebsd-hackers@freebsd.org; Wed, 13 Jun 2012 09:19:48 -0500 (CDT) Date: Wed, 13 Jun 2012 09:19:47 -0500 From: Nathan Whitehorn In-reply-to: <4FD7CA24.6080405@gentoo.org> To: freebsd-hackers@freebsd.org Message-id: <4FD8A183.2020809@freebsd.org> X-Spam-Report: AuthenticatedSender=yes, SenderIP=76.210.74.20 X-Spam-PmxInfo: Server=avs-16, Version=5.6.1.2065439, Antispam-Engine: 2.7.2.376379, Antispam-Data: 2012.6.13.140916, SenderIP=76.210.74.20 References: <4FD66F7E.2060404@brandonfa.lk> <71dc991c8d1b4d2c91ff942fc5f8f340@HUBCAS2.cs.stonybrook.edu> <4FD7CA24.6080405@gentoo.org> User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:12.0) Gecko/20120521 Thunderbird/12.0.1 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 14:19:50 -0000 On 06/12/12 18:00, Richard Yao wrote: > On 06/11/12 18:51, Garrett Cooper wrote: >> On Mon, Jun 11, 2012 at 3:21 PM, Brandon Falk wrote: >>> Greetings, >>> >>> I was just wondering what it is that FreeBSD does that makes it take so long >>> to boot. Booting into Ubuntu minimal or my own custom Linux distro, >>> literally takes 0.5-2 seconds to boot up to shell, where FreeBSD takes about >>> 10-20 seconds. I'm not sure if anything could be parallelized in the boot >>> process, but Linux somehow manages to do it. The Ubuntu install I do pretty >>> much consists of a shell and developers tools, but it still has a generic >>> kernel. There must be some sort of polling done in the FreeBSD boot process >>> that could be parallelized or eliminated. >>> >>> Anyone have any suggestions? >>> >>> Note: This isn't really an issue, moreso a curiosity. >> The single process nature of rc is a big part of the problem, as >> is the single AP bootup of FreeBSD right before multiuser mode. There >> are a number of threads that discuss this (look for parallel rc bootup >> or something like that in the current, hacker, and rc archives -- the >> most recent discussion was probably 6~9 months ago). >> Given past experience, a big part of getting past the parallelized >> rc mess would be to make services fail/wait gracefully for all their >> resources to come up before proceeding. It's not easy, but it's >> possible with enough resources. >> HTH, >> -Garrett >> _______________________________________________ >> 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" > Gentoo FreeBSD shares OpenRC with Gentoo Linux. OpenRC is a BSD 2-clause > licensed System V init system replacement that supports parallel boot. > Its boot performance is competitive with systemd and Ubuntu's upstart. > > If FreeBSD's init system is serializing the boot process, it might be > worthwhile to consider importing OpenRC. > _______________________________________________ > 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" Please don't change any of the user-facing aspects of the RC system. One of the things that brought me (and many others I know) to FreeBSD, besides working sound, was having an rc.conf that was easy to configure instead of the nightmare that is System V init. -Nathan