From owner-freebsd-current@FreeBSD.ORG Sat Nov 13 10:34:40 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E28A716A4CE; Sat, 13 Nov 2004 10:34:40 +0000 (GMT) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 44EA143D2F; Sat, 13 Nov 2004 10:34:38 +0000 (GMT) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.13.1/8.13.1) with ESMTP id iADAYY14026250; Sat, 13 Nov 2004 11:34:34 +0100 (CET) (envelope-from phk@critter.freebsd.dk) To: =?ISO-8859-1?Q?S=F8ren_Schmidt?= From: "Poul-Henning Kamp" In-Reply-To: Your message of "Sat, 13 Nov 2004 11:29:19 +0100." <4195E1FF.5090906@DeepCore.dk> Date: Sat, 13 Nov 2004 11:34:34 +0100 Message-ID: <26249.1100342074@critter.freebsd.dk> Sender: phk@critter.freebsd.dk cc: Garance A Drosihn cc: Zoltan Frombach cc: freebsd-current@freebsd.org cc: Robert Watson Subject: Re: 5.3-RELEASE: WARNING - WRITE_DMA interrupt timout X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 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: Sat, 13 Nov 2004 10:34:41 -0000 In message <4195E1FF.5090906@DeepCore.dk>, =?ISO-8859-1?Q?S=F8ren_Schmidt?= wri tes: >>>Timeout is 5 secs, which is a pretty long time in this context IMHO.. >> >> Five seconds counted from when ? > >Now thats the nasty part :) >ATA starts the timeout when the request is issued to the device, so >theoretically the disk could take 4.9999 secs to complete the request >and then the timeout fires before the taskqueue gets its chance at it, >but IMHO thats pretty unlikely... I find that far more likely than kernel threads being stalled for that long. ATA disks doing bad-block stuff takes several seconds on some of the disks I've had my hands on. >Anyhow, I can just remove the warning from ATA if that makes anyone >happy, since its just a warning and ATA doesn't do anything with it at all. >However, IMNHO this points at a problem somewhere that we should better >understand and fix instead. I would prefer you reset the timer to five seconds in your interrupt routine so we can see exactly on which side of that the time is spent. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence.