From owner-freebsd-current@FreeBSD.ORG Thu Nov 1 15:59:09 2007 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D660416A41B for ; Thu, 1 Nov 2007 15:59:09 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from speedfactory.net (mail6.speedfactory.net [66.23.216.219]) by mx1.freebsd.org (Postfix) with ESMTP id 7B4B213C4B0 for ; Thu, 1 Nov 2007 15:59:09 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (unverified [66.23.211.162]) by speedfactory.net (SurgeMail 3.8p) with ESMTP id 217264636-1834499 for multiple; Thu, 01 Nov 2007 10:24:08 -0500 Received: from localhost.corp.yahoo.com (john@localhost [127.0.0.1]) (authenticated bits=0) by server.baldwin.cx (8.13.8/8.13.8) with ESMTP id lA1FNpff006973; Thu, 1 Nov 2007 11:23:54 -0400 (EDT) (envelope-from jhb@freebsd.org) From: John Baldwin To: Mike Pritchard Date: Thu, 1 Nov 2007 11:23:35 -0400 User-Agent: KMail/1.9.6 References: <862892.31020.qm@web27810.mail.ukl.yahoo.com> <20071101013748.GA1116@mail.mppsystems.com> In-Reply-To: <20071101013748.GA1116@mail.mppsystems.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200711011123.35870.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [127.0.0.1]); Thu, 01 Nov 2007 11:23:54 -0400 (EDT) X-Virus-Scanned: ClamAV 0.91.2/4658/Thu Nov 1 08:50:49 2007 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=4.2 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on server.baldwin.cx Cc: freebsd-current@freebsd.org, Red Neck Subject: Re: Loader broken in Head? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Nov 2007 15:59:09 -0000 On Wednesday 31 October 2007 09:37:48 pm Mike Pritchard wrote: > > On Friday 26 October 2007 08:03:21 pm Red Neck wrote: > > Hi, > > > > Within the last day (26/10/07) I've built and installed the sources > > from CVS > > Head only to find the stage 3 boot loader, /boot/loader, not working. > > I'm > > using a Mac Pro with 3 internal hard drives. On one hard disk I have > > FreeBSD amd64 installed, occupying the entire disk (MBR). Using the > sources > > from Head, loader just freezes after displaying its initial messages > with a > > constantly spinning cursor. To access the system I have to revert to > using > > an older loader such as 6.2 release's. I have attached my make and > kernel > > config. > > I was seeing a similar problem. Booting from a floppy disk twice would > probably be faster than booting off the hard disk. I had just done > a makeworld, and updated the boot blocks on the disk (it previously had > a pretty old install on it). But the system would eventually boot, and > not hang up. I noticed that Red Necks boot loader build date was the > same as the version I was having problems with. > > Fortunately, I have a 2nd HD in the machine with a 7.0 install, > and installed the boot blocks from that HD to the one I was having > problems with, and copied over /boot/loader from that HD. > No more problems. System boots as fast as ever. > > So yes, I think there is something wrong with the current loader. > > With the slow boot, once the system is up and running, the disks > are running at normal speeds (checked with iozone & bonnie). Did you get the latest loader? For example, do you have this fix which might result in significantly slower disk I/O since w/o it every disk I/O is attempted 3 times with 2 drive resets in between: jhb 2007-10-25 16:53:35 UTC FreeBSD src repository Modified files: sys/boot/i386/libi386 biosdisk.c Log: Break out of the I/O retry loop as soon as an I/O operation succeeds rather than always retrying operations three times. Submitted by: nyan Revision Changes Path 1.53 +2 -0 src/sys/boot/i386/libi386/biosdisk.c -- John Baldwin