From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 13 00:17:16 2012 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 21535106564A for ; Wed, 13 Jun 2012 00:17:16 +0000 (UTC) (envelope-from bfalk_bsd@brandonfa.lk) Received: from mail-gg0-f182.google.com (mail-gg0-f182.google.com [209.85.161.182]) by mx1.freebsd.org (Postfix) with ESMTP id C14D68FC12 for ; Wed, 13 Jun 2012 00:17:15 +0000 (UTC) Received: by ggnm2 with SMTP id m2so4319ggn.13 for ; Tue, 12 Jun 2012 17:17:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brandonfa.lk; s=google; h=mime-version:x-originating-ip:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=Ew/wMNLz/IeyFDXJJVfqfFBmfc4fjbuikgiU6j53wsU=; b=StspDgtanK3dyQVOQFmcXJeR6mzKsvM8ajPVjiZl13YPv23grg5oQjs0wq1SY8PY7B LFgR9XzTVR16DzUcs/e1xC6I0GfkKr7/zQcG7kFdHmhLJpnrUtFTFrbtjgcNgGhXBB5W n1MD/cIADl5nJ6sHkdFtEaqpDj95o7z5JhIhk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-originating-ip:in-reply-to:references:date :message-id:subject:from:to:cc:content-type:x-gm-message-state; bh=Ew/wMNLz/IeyFDXJJVfqfFBmfc4fjbuikgiU6j53wsU=; b=VeRCKQgFrMCAbE+E9T2RKmDgOtt1+cqaljJs6U9d4eLKWYw9JYJepO5NhNRhr3F13A iFdAHVv9Gfe4E1npwlQJ18ZtZULaA3QZLxoNzFHbRsKRdRwwBIeQWHQ830I3xTgXu3KJ QEOmZTrjV/1NQLEPcuo4rMn4yZpzzHQ7oS8fX/RPpvm8k3NWs1YBb+mligYOo9JmF7a+ EFrk8Lmu2/GkUjMGzc2ThjwYWH0EcKz/lC+rQYIXv/FOx6G1hRozZmJvfvBDKCWp6rdN qAEnSNh/hepxbdNrfWP0BS0o2pQKpt1P9byBPQFapcdU6UtvI3QP3d9+U1Y+6CkHIVWf dA8w== MIME-Version: 1.0 Received: by 10.50.181.225 with SMTP id dz1mr9650791igc.2.1339546634774; Tue, 12 Jun 2012 17:17:14 -0700 (PDT) Received: by 10.231.49.7 with HTTP; Tue, 12 Jun 2012 17:17:14 -0700 (PDT) X-Originating-IP: [166.182.66.163] Received: by 10.231.49.7 with HTTP; Tue, 12 Jun 2012 17:17:14 -0700 (PDT) In-Reply-To: <201206120926.33947.hselasky@c2i.net> References: <4FD66F7E.2060404@brandonfa.lk> <4FD6E065.6040601@FreeBSD.org> <201206120926.33947.hselasky@c2i.net> Date: Tue, 12 Jun 2012 20:17:14 -0400 Message-ID: From: Brandon Falk To: Hans Petter Selasky X-Gm-Message-State: ALoCoQkzYwoVH6LP0Gg87qeKWgjq5WRNhnU49a6ryRm9rNUJy6o2udhcsSCNx8Fupl2HiyrJiDz7 Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-hackers@freebsd.org, Andriy Gapon 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 00:17:16 -0000 Ill do some profiling tonight and get back to you then. On Jun 12, 2012 3:27 AM, "Hans Petter Selasky" wrote: > On Tuesday 12 June 2012 08:23:33 Andriy Gapon wrote: > > on 12/06/2012 01:21 Brandon Falk said the following: > > > 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? > > > > Do you have a breakdown of the boot time between pre-loader, loader, > kernel > > and rc stages? > > > > > Note: This isn't really an issue, moreso a curiosity. > > > > Ditto. :-) > > BTW: Booting over USB is slow because many small chuncks of data is read > instead of a few big chunks when loading the kernel and modules at the > loader > time. > > --HPS >