From owner-freebsd-stable@freebsd.org Tue Jun 28 16:11:07 2016 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 74788B81F5D for ; Tue, 28 Jun 2016 16:11:07 +0000 (UTC) (envelope-from crest@rlwinm.de) Received: from smtp.rlwinm.de (smtp.rlwinm.de [148.251.233.239]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3F1022FA0 for ; Tue, 28 Jun 2016 16:11:06 +0000 (UTC) (envelope-from crest@rlwinm.de) Received: from vader9.bultmann.eu (unknown [87.253.189.132]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.rlwinm.de (Postfix) with ESMTPSA id 1397C7DD1 for ; Tue, 28 Jun 2016 18:10:59 +0200 (CEST) Subject: Re: FreeBSD 10.3 slow boot on Supermicro X11SSW-F To: freebsd-stable@freebsd.org References: <577282AA.5080803@quip.cz> From: Jan Bramkamp Message-ID: <6497c815-e996-92df-b00c-122aaba8b7ab@rlwinm.de> Date: Tue, 28 Jun 2016 18:10:58 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 MIME-Version: 1.0 In-Reply-To: <577282AA.5080803@quip.cz> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Jun 2016 16:11:07 -0000 On 28/06/16 15:59, Miroslav Lachman wrote: > I installed FreeBSD 10.3 on brand new machine Supermicro X11SSW-F. It > sits on top of 4x 1TB Samsung SSDs on ZFS RAIDZ2. > > The booting is painfully slow from BTX to menu to kernel loading. > Progress indicated by \ | / - characters is changing by speed of 1 > character per 2 seconds. > The whole boot process takes about 10 minutes. > > I found this blog post solving the same problem > http://smyck.net/2016/06/15/freebsd-slow-zfs-bootloader/ > > It seems there is some bug in loader in 10.3. If /boot/pmbr, > /boot/gptzfsboot and /boot/zfsloader are replaced by files from > 11-CURRENT snapshot (from > ftp://ftp.freebsd.org/pub/FreeBSD/snapshots/amd64/11.0-CURRENT/base.txz) > the booting speed is back to normal. > > Is it know problem? What was changed in loader between 10.3 and 11? The bootloader disk caching. The old code doesn't work (well) on modern UEFI implementations. You can get acceptable bootloader performance with the FreeBSD 10.3 EFI bootloader on such boards. Even the UEFI install images contain fallback BIOS bootcode and some boards prefer the old BIOS bootcode. On such boards you have to suffer through the slow boot process once to install FreeBSD.