From nobody@FreeBSD.org  Wed Sep 15 11:19:32 2004
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id E2DFE16A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 15 Sep 2004 11:19:32 +0000 (GMT)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id D84BC43D46
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 15 Sep 2004 11:19:32 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.12.11/8.12.11) with ESMTP id i8FBJWnL007355
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 15 Sep 2004 11:19:32 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.11/8.12.11/Submit) id i8FBJWZZ007354;
	Wed, 15 Sep 2004 11:19:32 GMT
	(envelope-from nobody)
Message-Id: <200409151119.i8FBJWZZ007354@www.freebsd.org>
Date: Wed, 15 Sep 2004 11:19:32 GMT
From: Bjrn Knig <bkoenig@cs.tu-berlin.de>
To: freebsd-gnats-submit@FreeBSD.org
Subject: disk write operations too slow (probably DMA problems with ICH2)
X-Send-Pr-Version: www-2.3

>Number:         71761
>Category:       kern
>Synopsis:       disk write operations too slow (probably DMA problems with ICH2) [5.3-BETA4]
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    sos
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Sep 15 11:20:20 GMT 2004
>Closed-Date:    Mon Oct 04 11:29:20 GMT 2004
>Last-Modified:  Mon Oct 04 11:29:20 GMT 2004
>Originator:     Bjrn Knig
>Release:        FreeBSD 5.3-BETA4
>Organization:
>Environment:
FreeBSD alpha.local 5.3-BETA4 FreeBSD 5.3-BETA4 #0: Mon Sep 13 15:39:18 UTC 2004     bkoenig@hoppel.local:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
    Disk write speed since 5.3 ist too low.
37 MB/s are expected (5.2.1). I get around 13 MB/s
with 5.3-BETA. atacontrol shows already UDMA100, but if
I set UDMA100 explicitly again, then I get 25 MB/s;
it's still too slow.

It's not a hardware failure, because with 5.2.1
it still works perfectly. Mainboard is an Asus
TUSL2-C (i815EP) with ICH2 controller.

>How-To-Repeat:
dd if=/dev/zero of=<filename> bs=4096 count=262144
writes 1G of data and shows the average throughput.

>Fix:
      
>Release-Note:
>Audit-Trail:

From: "Bjoern Koenig" <bkoenig@cs.tu-berlin.de>
To: <freebsd-gnats-submit@FreeBSD.org>
Cc:  
Subject: Re: i386/71761: disk write operations too slow (probably DMA problems with ICH2)
Date: Fri, 17 Sep 2004 03:54:41 +0200

 Looks like an ICH2-specific bug which appeared first since atapi_dma became
 "1" by default.
 
 Either set hw.ata.atapi_dma="0" in /boot/loader.conf or an appropriate
 atacontrol command line in /etc/rc.early to set mode UDMA5 to hard disk
 device.
 
 
Responsible-Changed-From-To: freebsd-i386->sos 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Fri Sep 24 05:42:15 GMT 2004 
Responsible-Changed-Why:  
Perhaps Soren can comment on this one. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=71761 
State-Changed-From-To: open->closed 
State-Changed-By: sos 
State-Changed-When: Mon Oct 4 11:27:49 GMT 2004 
State-Changed-Why:  
I have committed a number of fixes for ich* HW to -current that could  
cause this, at the very least I dont see any performance problems. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=71761 
>Unformatted:
