From owner-freebsd-hackers@FreeBSD.ORG Thu Mar 24 09:54:06 2011 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 5B1771065672 for ; Thu, 24 Mar 2011 09:54:06 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [IPv6:2a01:170:102f::2]) by mx1.freebsd.org (Postfix) with ESMTP id D46BE8FC08 for ; Thu, 24 Mar 2011 09:54:05 +0000 (UTC) Received: from lurza.secnetix.de (localhost [127.0.0.1]) by lurza.secnetix.de (8.14.3/8.14.3) with ESMTP id p2O9rnJe047841; Thu, 24 Mar 2011 10:54:04 +0100 (CET) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.14.3/8.14.3/Submit) id p2O9rnAi047839; Thu, 24 Mar 2011 10:53:49 +0100 (CET) (envelope-from olli) From: Oliver Fromme Message-Id: <201103240953.p2O9rnAi047839@lurza.secnetix.de> To: inyaoo@gmail.com (Pan Tsu) Date: Thu, 24 Mar 2011 10:53:49 +0100 (CET) In-Reply-To: <868vw4hpo3.fsf@gmail.com> X-Mailer: ELM [version 2.5 PL8] MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.3.5 (lurza.secnetix.de [127.0.0.1]); Thu, 24 Mar 2011 10:54:04 +0100 (CET) Cc: freebsd-hackers@freebsd.org Subject: Re: Is BOOTWAIT still used? (Was: kernel memory checks on boot vs. boot time) 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: Thu, 24 Mar 2011 09:54:06 -0000 Pan Tsu wrote: > Oliver Fromme writes: > > [...] > > To be honest, I don't think that loader takes so much time. > > When you set autoboot_delay="-1" and beastie_disable="YES", > > the time spent in loader is negligible. (I'm assuming that > > you also set BOOTWAIT=0 in make.conf, so boot2 doesn't wait > > for a keypress either. I think the default is to wait 3 > > seconds.) > > Is BOOTWAIT still used? A quick grep in sys/boot shows nothing. You're right, unfortunately. boot0 still has a configurable timeout which is 10 seconds by default. It can be configured via BOOT_BOOT0_TICKS in make conf (default is 182 because the BIOS ticks run at 18.2 Hz). However, the 3 seconds delay is hardcoded in boot2.c: if (!keyhit(3*SECOND)) { load(); I have no idea why it isn't configurable anymore. Is there a reason for that? I'll write a patch unless anybody objects. > Digging history, BOOTWAIT never made its way from sys/i386/boot > to sys/boot/i386 and was removed in r58284 around 11y ago. 11 years ago?!? Time to either update the documentation or -- better yet -- bring the feature back, I would say. Being able to shave 3 seconds off the boot time of a HTPC (among others) is not negligible. Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd "I have stopped reading Stephen King novels. Now I just read C code instead." -- Richard A. O'Keefe