From owner-freebsd-hackers@FreeBSD.ORG Mon Jun 11 22:59:29 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 B4DFE1065670 for ; Mon, 11 Jun 2012 22:59:29 +0000 (UTC) (envelope-from nonesuch@longcount.org) Received: from mail-qc0-f182.google.com (mail-qc0-f182.google.com [209.85.216.182]) by mx1.freebsd.org (Postfix) with ESMTP id 65F508FC15 for ; Mon, 11 Jun 2012 22:59:29 +0000 (UTC) Received: by qcsg15 with SMTP id g15so2814832qcs.13 for ; Mon, 11 Jun 2012 15:59:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=references:in-reply-to:mime-version:content-transfer-encoding :content-type:message-id:cc:x-mailer:from:subject:date:to :x-gm-message-state; bh=BZDFO4wmbpnVL20GAvtd54c/c527wsvC0X3I0alSiUo=; b=G2CNhL241ouVSO6zG49gq7jf7Dql5RU2bXEp+FyZO3yEchKwQQZv041VzsrJBVSP+p P8Mx+i2LQinzer1uYUNPAnMhgTs5RrOXWe4LCeXk0AeoMiNYui8zFOh6NkBrjvfUpsUE NPzk3B69UmjJi6mGSvEH4h+eSTqNrDX+OpNiD4ejAZOzCUEiRXoAddXKVzpsOjR8eLMG 9DKmbIVpDkce4MjoIMAJdPdIGg3GYVN6JC1295uYWb6+xWQzY+5i2RUmfrRtvwKpQWmP apmYQuytJAWdVNnbye7miMohJTvO8eAiwlmt07q8T1OVNUyEG+x2T/OkPSJk41CTCwC4 5ptw== Received: by 10.229.134.212 with SMTP id k20mr1108539qct.83.1339455568821; Mon, 11 Jun 2012 15:59:28 -0700 (PDT) Received: from [97.233.14.14] (14.sub-97-233-14.myvzw.com. [97.233.14.14]) by mx.google.com with ESMTPS id gy9sm31402232qab.22.2012.06.11.15.59.26 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 11 Jun 2012 15:59:27 -0700 (PDT) References: <4FD66F7E.2060404@brandonfa.lk> In-Reply-To: <4FD66F7E.2060404@brandonfa.lk> Mime-Version: 1.0 (1.0) Message-Id: <972AB73F-A761-47E2-A8A3-42C85FDBEE72@longcount.org> X-Mailer: iPhone Mail (9B206) From: Mark Saad Date: Mon, 11 Jun 2012 18:59:21 -0400 To: Brandon Falk X-Gm-Message-State: ALoCoQn/LOVB93qAIkRSfkjgWz5JyPy8+IAhUoolvwSqr1DUN77W6EdFB6hfZUEonSYcS8/LRFcX Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: "freebsd-hackers@freebsd.org" 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: Mon, 11 Jun 2012 22:59:29 -0000 On Jun 11, 2012, at 6:21 PM, Brandon Falk wrote: > Greetings, >=20 > I was just wondering what it is that FreeBSD does that makes it take so lo= ng to boot. Booting into Ubuntu minimal or my own custom Linux distro, liter= ally takes 0.5-2 seconds to boot up to shell, where FreeBSD takes about 10-2= 0 seconds. I'm not sure if anything could be parallelized in the boot proces= s, but Linux somehow manages to do it. The Ubuntu install I do pretty much c= onsists of a shell and developers tools, but it still has a generic kernel. T= here must be some sort of polling done in the FreeBSD boot process that coul= d be parallelized or eliminated. >=20 > Anyone have any suggestions? >=20 > Note: This isn't really an issue, moreso a curiosity. >=20 > -Brandon > _____________________________________________ In amd64 builds the system checks it's ram twice . Early in the boot phase u= sing a slower method , and latter using a faster SMAP method. In 9.0-RELEASE= you can disable the early men check via a loader tunable , here is a snip i= t from the release notes on 9.0 . It should also be mfc'd to 7, and 8 stable= .=20 [amd64, i386, pc98] A loader(8) tunable hw.memtest.tests has been added. Thi= s controls whether to perform memory testing at boot time or not. The defaul= t value is 1 (perform a memory test).[r224516] The next it is switch to a modular kernel this speeds up boot times be omit= ting kernel items you do not need, you can also do this via with a static ke= rnel by removing / disabling unused options . Look at the Archives for ha ha= ckers there is a ton of info on this.=20 Most of the rest of the boot up time is via init / rc'ng starting an config= uring things . Right now this is not parallel-ized out the box . Pc-bsd has s= omething called fastboot ? I am am not sure how it works but it improves loa= d time in their setups . See http://lists.pcbsd.org/pipermail/testing/2012-J= anuary/006358.html Other then that, there are some other things being developed check the Free= BSD wiki for a rc.ng management daemon frs or fsr ?=20 --- Mark saad | mark.saad@longcount.org