From owner-freebsd-hackers Tue May 13 06:32:17 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id GAA20097 for hackers-outgoing; Tue, 13 May 1997 06:32:17 -0700 (PDT) Received: from dan.emsphone.com (dan@dan.emsphone.com [199.67.51.101]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id GAA20092 for ; Tue, 13 May 1997 06:32:15 -0700 (PDT) Received: (from dan@localhost) by dan.emsphone.com (8.8.2/8.8.2) id IAA15902; Tue, 13 May 1997 08:32:06 -0500 (CDT) Message-ID: <19970513083206.46734@dan.emsphone.com> Date: Tue, 13 May 1997 08:32:06 -0500 From: Dan Nelson To: Warner Losh Cc: hackers@FreeBSD.ORG Subject: IDE probe slowness; Was: Re: if_de.c ???? References: <19970513000817.01299@hydrogen.nike.efn.org> <199705130422.NAA13937@genesis.atrad.adelaide.edu.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.67e In-Reply-To: ; from "Warner Losh" on Tue, May 13, 1997 at 01:15:42AM -0600 X-OS: FreeBSD 2.2.1-RELEASE Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk In the last episode (May 13), Warner Losh said: > > Yup. However, 90% of the time to get to that point is probing device > and timeouts on my machine (2 scsi busses and 2 IDE controllers). I > haven't commented some of them out yet. > > Warner Not to get too off-topic, but if you're tired of the long delays in the IDE probe, a quick fix is to adjust the TIMEOUT define at the top of /sys/i386/isa/wd.c . It is 10000 by default, but I'm using 2000 on a couple of machines without problems. My IDE bus has one ATAPI disk, and during the probe, wdwait() waits for the entire timeout period 3 times (which I think comes to 30 secods). With TIMEOUT at 2000, I only wait 6 seconds. I haven't looked at any IDE specs, but I'm sure the delay is this high to accomodate older IDE disks. The SCSI wait is easier to change; options SCSI_DELAY in the kernel config file. I use SCSI_DELAY=1 with no ill effects. -Dan Nelson dnelson@emsphone.com