From owner-freebsd-questions@FreeBSD.ORG Sat Mar 5 01:26:07 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3BA101065670 for ; Sat, 5 Mar 2011 01:26:07 +0000 (UTC) (envelope-from ml@my.gd) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id D01598FC12 for ; Sat, 5 Mar 2011 01:26:05 +0000 (UTC) Received: by wyb32 with SMTP id 32so3085951wyb.13 for ; Fri, 04 Mar 2011 17:26:04 -0800 (PST) Received: by 10.216.7.8 with SMTP id 8mr57663weo.30.1299288364419; Fri, 04 Mar 2011 17:26:04 -0800 (PST) Received: from [192.168.0.20] (paris.c-mal.com [88.170.200.60]) by mx.google.com with ESMTPS id w25sm11378wbd.17.2011.03.04.17.26.02 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 04 Mar 2011 17:26:03 -0800 (PST) References: <4D716372.2050606@gmail.com> In-Reply-To: <4D716372.2050606@gmail.com> Mime-Version: 1.0 (iPhone Mail 8A293) Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Message-Id: <6248FEC4-FE1E-4FDE-A73F-495A9036F216@my.gd> X-Mailer: iPhone Mail (8A293) From: Damien Fleuriot Date: Sat, 5 Mar 2011 02:25:34 +0100 To: David Demelier Cc: "freebsd-questions@freebsd.org" Subject: Re: FreeBSD kernel init slower than linux X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Mar 2011 01:26:07 -0000 On 4 Mar 2011, at 23:10, David Demelier wrote: > Hello, >=20 > I know this is a awful subject, but I recently tried a Gentoo on my laptop= and I was surprised to see Linux booting about 2-3 times faster than FreeBS= D. >=20 > I don't talk about the init/rc script but only kernel initialisation. For l= inux kernel it's around 5-6 seconds vs 15-18 seconds for FreeBSD. >=20 > Why FreeBSD is so slower than Linux to boot the kernel? >=20 > Cheers, >=20 > --=20 > David Demelier > ______________________________ I'll drift a bit off topic here, just slightly. To be honest, I for one would muuuuuch rather have a bsd kernel that takes a= bit more time to boot, than a Linux one. Have you seen the rate at which debian publishes kernel updates ? We reboot some servers every week here, to apply this or that new kernel. Bsd takes longer, but over the course of a month we might reboot them once v= s thrice for Linux. Overall, and discounting all the upgrading hassle, who boots faster now ? 1x freebsd or 3x Linux ? ;) To accelerate boot time you may also recompile a custom kernel and remove su= pport for all the stuff you don't need, like all these outdated NIC drivers,= wifi, scsi if you run sata... I run kernels with support for just one sata raid controller, 3 NIC drivers,= remove support for all the USB stuff except the keyboard in case we need lo= cal console access, remove UFS ACL support (never used it, not sure I ever w= ill). Hell I even remove support for the parallel port... Dramatically speeds up the boot process.=