From owner-freebsd-current Thu Feb 6 20:29:28 2003 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 CCBE737B401 for ; Thu, 6 Feb 2003 20:29:26 -0800 (PST) Received: from cain.gsoft.com.au (genesi.lnk.telstra.net [139.130.136.161]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7138D43FA3 for ; Thu, 6 Feb 2003 20:29:18 -0800 (PST) (envelope-from doconnor@gsoft.com.au) Received: from [127.0.0.1] (localhost [127.0.0.1]) by cain.gsoft.com.au (8.12.4/8.12.6) with ESMTP id h173jhJF058961; Fri, 7 Feb 2003 14:15:44 +1030 (CST) (envelope-from doconnor@gsoft.com.au) X-Authentication-Warning: cain.gsoft.com.au: Host localhost [127.0.0.1] claimed to be [127.0.0.1] Subject: Re: ATA code is buggy and slower From: "Daniel O'Connor" To: Dong Lin Cc: current@FreeBSD.ORG In-Reply-To: <3E43248F.2030303@plan9.bell-labs.com> References: <3E43248F.2030303@plan9.bell-labs.com> Content-Type: text/plain Organization: Message-Id: <1044589542.7212.5.camel@chowder.gsoft.com.au> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.0 Date: 07 Feb 2003 14:15:43 +1030 Content-Transfer-Encoding: 7bit X-Spam-Score: -1.3 () CARRIAGE_RETURNS,IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_01_02 X-Scanned-By: MIMEDefang 2.16 (www . roaringpenguin . com / mimedefang) Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, 2003-02-07 at 13:44, Dong Lin wrote: > My 5.0R kernel complains about "READ timeout" and "resetting" when I try > to dd the disk. But everything *works* if I boot the same equipment with > 4.5R and 4.7R. It seems that the error can occur on any sector I pick as > long as I keep reading it inside a loop, a sign of timing problems. > > The 5.0 ATA code is so different that I am not sure where to start. If > someone can show me a way to run the 4.7 ATA code under 5.0, I am > willing to debug it. > > My equipment: Promise ATA66 controller(0x4d38105a r01), WDC WD400BB > ATA/100, ATA66 cable. > > Also, my simple dd measurements show that performance is going down: > > dd if=/dev/ad4 of=/dev/null bs=8m > 4.5R: 49 MB/s > 4.7R: 39 MB/s > 5.0R: does not finish You might get more help if you sent a more complete problem description.. eg dmesg output for a start. I'm pretty sure the 5.x code is almost identical to the 4.x stuff bar extra locking calls. My Quantum fireball drive gets 35Mb/sec under both 4.5 and 4.7.. I have a WD800BB on a 4.7 box and it does 48.7 Mb/sec. -- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 9A8C 569F 685A D928 5140 AE4B 319B 41F4 5D17 FDD5 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message