From owner-freebsd-stable@FreeBSD.ORG Fri Aug 18 08:51:10 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2042C16A4DD for ; Fri, 18 Aug 2006 08:51:10 +0000 (UTC) (envelope-from horcicka@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.185]) by mx1.FreeBSD.org (Postfix) with ESMTP id 16EDA43D45 for ; Fri, 18 Aug 2006 08:51:08 +0000 (GMT) (envelope-from horcicka@gmail.com) Received: by nf-out-0910.google.com with SMTP id n29so1364933nfc for ; Fri, 18 Aug 2006 01:51:07 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=SlRwjZWrNkE6pLHSkygP4gMvLsO0w3YvGTujJ8MsSTvkR8BSkCWfALMWEFfEZ0Wfav96DSCRgqXIqUYM9VJs9fhxlpEAgs1Ax5U27DYriizLT4rom6QkZgSakmjvvEuRX+80eI7xLPi6XmuA4KokiEGKjZnki43da4otIapZumM= Received: by 10.49.8.15 with SMTP id l15mr3765226nfi; Fri, 18 Aug 2006 01:51:07 -0700 (PDT) Received: by 10.78.134.5 with HTTP; Fri, 18 Aug 2006 01:51:07 -0700 (PDT) Message-ID: <437bc1590608180151m1017a50cg31c7817d1aeb0dfe@mail.gmail.com> Date: Fri, 18 Aug 2006 10:51:07 +0200 From: "Martin Horcicka" Sender: horcicka@gmail.com To: "Dan Nelson" In-Reply-To: <20060818021643.GA74158@dan.emsphone.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <44E51C93.5090000@umn.edu> <20060818021643.GA74158@dan.emsphone.com> X-Google-Sender-Auth: dea42ae83fdc9488 Cc: freebsd-stable@freebsd.org, Alan Amesbury Subject: Re: FreeBSD boots too fast on Dell PE850 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, 18 Aug 2006 08:51:10 -0000 2006/8/18, Dan Nelson : > In the last episode (Aug 17), Alan Amesbury said: > > OK, booting *too* quickly is a somewhat unusual problem..... I have > > FreeBSD 6.1-RELEASE-p3 running on a Dell PowerEdge 850. For some > > reason, in the PowerEdge 850 Dell chose to replace the perfectly > > adequate em(4) adapters found on the PE750 with bge(4) hardware. > > FreeBSD identifies these adapters as BCM5750A1, but Dell says they're > > actually Broadcom 5721J adapters instead. See > > > > http://www.dell.com/downloads/global/products/pedge/en/850_specs.pdf > > > > for details. The switch to which the host is connected is a Cisco > > Catalyst 3750. How this relates to FreeBSD, however..... > > Have you enabled portfast on the Cisco? > > http://www.cisco.com/warp/public/473/12.html#c2k We have similar problems on various hardware and we also believe it's caused by the Spanning Tree Protocol procedure done during the switch port initialization. I don't like the idea of using portfast as it makes the switch less robust so I tried to delay the boot using an rc script as well: /etc/rc.d/slow_interface_startup: --- #!/bin/sh # PROVIDE: slow_interface_startup # REQUIRE: netif # BEFORE: NETWORKING slow_interface_startup_enable=${slow_interface_startup_enable:-NO} slow_interface_startup_duration=${slow_interface_startup_duration:-50} . /etc/rc.subr name=slow_interface_startup rcvar=`set_rcvar` start_cmd=slow_interface_startup_start stop_cmd=: slow_interface_startup_start() { echo -n "Waiting for interfaces to get ready" \ "($slow_interface_startup_duration seconds)" sleep "$slow_interface_startup_duration" echo } load_rc_config $name run_rc_command "$1" --- Then you can add to rc.conf: slow_interface_startup_enable="YES" And optionally also (in seconds): slow_interface_startup_duration="123" It's a little hack but it works as expected. Anyway, in some cases it does not help. The NIC is probably reset at some later point. I have not investigated it further yet. > Another thing to check is whether you have alias IPs. I believe the > bge driver has to reset the card every time you add or remove an IP. > I know the ti driver (whose chipset the broadcom chips are based on) > had that problem. Yes, but I believe that all such operations are done by the netif script. Martin