From owner-freebsd-questions Tue Jun 26 9: 0:55 2001 Delivered-To: freebsd-questions@freebsd.org Received: from gate.qubesoft.com (gate.qubesoft.com [212.113.16.243]) by hub.freebsd.org (Postfix) with ESMTP id EF31237B401 for ; Tue, 26 Jun 2001 09:00:48 -0700 (PDT) (envelope-from n_hibma@FreeBSD.ORG) Received: from bluebottle.qubesoft.com (bluebottle [192.168.1.2]) by gate.qubesoft.com (8.11.3/8.11.3) with ESMTP id f5QFx3l05952; Tue, 26 Jun 2001 16:59:04 +0100 (BST) (envelope-from n_hibma@FreeBSD.ORG) Received: from localhost (localhost [127.0.0.1]) by bluebottle.qubesoft.com (8.11.4/8.11.4) with ESMTP id f5QFx3W60445; Tue, 26 Jun 2001 16:59:03 +0100 (BST) (envelope-from n_hibma@FreeBSD.ORG) Date: Tue, 26 Jun 2001 16:59:03 +0100 (BST) From: X-X-Sender: To: David Larkin Cc: , Subject: Re: ad0: UDMA ICRC error reading fsbn 0 In-Reply-To: <3B38A2AE.B34979E7@DJL.co.uk> Message-ID: <20010626165825.H44767-100000@bluebottle> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Check your cables, and try switching to lower UDMA modes with sysctls (see man page for ad and ata). Nick On Tue, 26 Jun 2001, David Larkin wrote: > Hi, > I'm experiencing problems with a very slow hard disk. > > Nothing crashes but it works incredibly slow. > > I have 2 machines with AMD K6 450MHz processors, > and IDE disks. > > A - FreeBSD 4.3 > B - FreeBSD 3.4 > > When I run a 'real life application' on A it takes over an hour, > while on B the same process takes about a minute. When the > process runs on A I get about 1.0 % CPU usage, and the disk > access LED is permanently flashing, and the disk sounds very > busy. > > In order to eliminate as many things as possible I've written a > test program. > > #!/usr/local/bin/perl -w > for( $i=0 ; $i <= 10000 ; $i++ ) > { > open(OUT,">outputfile"); > print OUT "hello world"; > close OUT; > } > > on A this takes about 2 mins. > on B this takes about 13 secs. > > The problem seems to be related to an error message in dmesg > relating to UDMA66 & PIO mode. .... whatever that may be. > > I've searched through the archives and found a number of > similar postings, but unfortunately no advice on how to proceed. > > Any help would be appreciated. > > Dave. > > A dmesg (slow machine) > ------------- > > FreeBSD 4.3-RELEASE #0: Sat Apr 21 10:54:49 GMT 2001 > jkh@narf.osd.bsdi.com:/usr/src/sys/compile/GENERIC > Timecounter "i8254" frequency 1193182 Hz > CPU: AMD-K6(tm) 3D processor (451.03-MHz 586-class CPU) > Origin = "AuthenticAMD" Id = 0x58c Stepping = 12 > Features=0x8021bf > AMD Features=0x80000800 > ....... > ata0: at 0x1f0 irq 14 on atapci0 > ....... > ad0: 19541MB [39703/16/63] at ata0-master UDMA66 > Mounting root from ufs:/dev/ad0s1a > ad0: UDMA ICRC error reading fsbn 0 (ad0 bn 0; cn 0 tn 0 sn 0) retrying > ad0: UDMA ICRC error reading fsbn 0 (ad0 bn 0; cn 0 tn 0 sn 0) retrying > ad0: UDMA ICRC error reading fsbn 0 (ad0 bn 0; cn 0 tn 0 sn 0) retrying > ad0: UDMA ICRC error reading fsbn 0 (ad0 bn 0; cn 0 tn 0 sn 0) falling > back to PIO mode > > > B dmesg > ----------------- > FreeBSD 3.4-RELEASE #0: Mon Dec 20 06:54:39 GMT 1999 > jkh@time.cdrom.com:/usr/src/sys/compile/GENERIC > Timecounter "i8254" frequency 1193182 Hz > CPU: AMD-K6(tm) 3D processor (451.02-MHz 586-class CPU) > Origin = "AuthenticAMD" Id = 0x58c Stepping = 12 > Features=0x8021bf > AMD Features=0x80000800 > > ......... > > wdc0 at 0x1f0-0x1f7 irq 14 on isa > wdc0: unit 0 (wd0): > wd0: 19541MB (40020624 sectors), 39703 cyls, 16 heads, 63 S/T, 512 B/S > wdc0: unit 1 (wd1): > > ......... > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message