From owner-freebsd-stable@FreeBSD.ORG Fri Oct 21 10:30:24 2011 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1EE281065670 for ; Fri, 21 Oct 2011 10:30:24 +0000 (UTC) (envelope-from peter.maloney@brockmann-consult.de) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.17.8]) by mx1.freebsd.org (Postfix) with ESMTP id B6BA28FC19 for ; Fri, 21 Oct 2011 10:30:23 +0000 (UTC) Received: from [10.3.0.26] ([141.4.215.32]) by mrelayeu.kundenserver.de (node=mreu2) with ESMTP (Nemesis) id 0MJ0M1-1RJ86v0BBp-0034lk; Fri, 21 Oct 2011 12:17:48 +0200 Message-ID: <4EA146D2.8070809@brockmann-consult.de> Date: Fri, 21 Oct 2011 12:17:54 +0200 From: Peter Maloney User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.18) Gecko/20110617 Thunderbird/3.1.11 MIME-Version: 1.0 To: freebsd-stable@freebsd.org References: <441A588158B143D28A1B062A61FCDA43@multiplay.co.uk> In-Reply-To: <441A588158B143D28A1B062A61FCDA43@multiplay.co.uk> X-Enigmail-Version: 1.1.2 X-Provags-ID: V02:K0:bFGqDmnL8rBEHedZbtHiV3UaLzO9Qw4wUEy5GPxPudn GfOVhn0FYT7hz81Wd75tDevrsSfKwCTaMQ7fF8x9KEAS/MIwD5 E21GLfga4sLS6Bs4ve7NfpNc6wEPXTFM/5JGbzdiuxPODEtSNS PTg0rD1/50tOpm4wJdhXqSnGKV6FKIN7cNIrR+ejr7LIWFXoTP TvY9+pgujyTkVRHbACYi+o5i1zmCFL6PNr/JZBvi0JtITFd1JC OP4wlm5N6i9oCQeMblWHDSsHkP2pukp8IlHQK016gd5rYvbXKD i9+29VJM68CUQ7Lxfz54EDH4IR56lShigBdBrOKwp3WfcF7VyF 32szp4U7Qb6ds17m5WS3u/V9n/sVjvIuxBngeMLTM Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: zfs parition probing causing long delay at BTX loader X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Oct 2011 10:30:24 -0000 On 10/20/2011 07:23 PM, Steven Hartland wrote: > Installing a new machine here which has 10+ disks > we're seeing BTX loader take 50+ seconds to enumerate > the disks. I am running 8-STABLE. On my system with 22 disks, it took much longer than a minute (maybe 5 minutes... not sure, but overall boot was about 7 minutes). While this time is passing, I can watch the leds on the disks blink in order, many times in a loop. My IO card is a LSI SATA/SAS 9211-8i 6Gb/s. After I upgraded the firmware to version 11, it seems to take much less time, but I didn't time it. And watching the LEDs last time I rebooted, I don't notice them all blinking the same way. Instead, all were solid for a second or two after the long wait, and then only the root disks. So if you have the same card, I suggest you update the firmware. (I updated for stability rather than boot speed, and it seemed stable until it froze today, after 2 weeks) > After doing some digging I found the following thread > on the forums which hinted that r198420 maybe the > cause. > http://forums.freebsd.org/showthread.php?t=12705 > > A quick change to zfs.c reverting the change to > support 128 partitions back to 4 and BTX completes > instantly like it used to. > > svn commit which introduced this delay is:- > http://svnweb.freebsd.org/base?view=revision&revision=198420 > > the specific file in that changeset:- > http://svnweb.freebsd.org/base/head/sys/boot/zfs/zfs.c?r1=198420&r2=198419&pathrev=198420 > > > So the questions are:- > > 1. Can this be optimised so it doesn't have to test all > of the possible 128 GPT partitions? > > 2. If a optimisation isn't possible or is too complex to > achieve would it be better to have the partitions defined > as an option which can be increased if needed as I suspect > 99.99% if not 100% of users won't be making use of more > than 4 partitions even with GPT, such as what the attached > patch against 8.2-RELEASE achieves. > > Regards > Steve > > ================================================ > This e.mail is private and confidential between Multiplay (UK) Ltd. > and the person or entity to whom it is addressed. In the event of > misdirection, the recipient is prohibited from using, copying, > printing or otherwise disseminating it or any information contained in > it. > In the event of misdirection, illegible or incomplete transmission > please telephone +44 845 868 1337 > or return the E.mail to postmaster@multiplay.co.uk. > > > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" -- -------------------------------------------- Peter Maloney Brockmann Consult Max-Planck-Str. 2 21502 Geesthacht Germany Tel: +49 4152 889 300 Fax: +49 4152 889 333 E-mail: peter.maloney@brockmann-consult.de Internet: http://www.brockmann-consult.de --------------------------------------------