From owner-freebsd-current Thu Feb 6 19:14:26 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 2AD1337B401 for ; Thu, 6 Feb 2003 19:14:25 -0800 (PST) Received: from nycsmtp2out.rdc-nyc.rr.com (nycsmtp2out.rdc-nyc.rr.com [24.29.99.223]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7772C43F75 for ; Thu, 6 Feb 2003 19:14:24 -0800 (PST) (envelope-from dong@plan9.bell-labs.com) Received: from plan9.bell-labs.com (24-90-169-7.nj.rr.com [24.90.169.7]) by nycsmtp2out.rdc-nyc.rr.com (8.12.1/Road Runner SMTP Server 1.0) with ESMTP id h1738xUK007056 for ; Thu, 6 Feb 2003 22:08:59 -0500 (EST) Message-ID: <3E43248F.2030303@plan9.bell-labs.com> Date: Thu, 06 Feb 2003 22:14:23 -0500 From: Dong Lin User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.1) Gecko/20030104 X-Accept-Language: en-us, en MIME-Version: 1.0 To: current@FreeBSD.ORG Subject: ATA code is buggy and slower Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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 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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message