From owner-freebsd-current@FreeBSD.ORG Sun Sep 26 12:12:51 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 203DD16A4CF for ; Sun, 26 Sep 2004 12:12:51 +0000 (GMT) Received: from spider.deepcore.dk (cpe.atm2-0-53484.0x50a6c9a6.abnxx9.customer.tele.dk [80.166.201.166]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1770C43D45 for ; Sun, 26 Sep 2004 12:12:50 +0000 (GMT) (envelope-from sos@DeepCore.dk) Received: from [194.192.25.143] (laptop.deepcore.dk [194.192.25.143]) by spider.deepcore.dk (8.12.11/8.12.10) with ESMTP id i8QCCl06038958; Sun, 26 Sep 2004 14:12:47 +0200 (CEST) (envelope-from sos@DeepCore.dk) Message-ID: <4156B234.1090603@DeepCore.dk> Date: Sun, 26 Sep 2004 14:12:36 +0200 From: =?ISO-8859-1?Q?S=F8ren_Schmidt?= User-Agent: Mozilla Thunderbird 0.7.2 (X11/20040802) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Michael Nottebrock References: <20040926044943.I40616-100000@mxb.saturn-tech.com> <200409261332.23227.michaelnottebrock@gmx.net> In-Reply-To: <200409261332.23227.michaelnottebrock@gmx.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable cc: freebsd-current@freebsd.org cc: Jeremy Chadwick Subject: Re: ATA disk performance (ICH2 controller), some tests andcomparison with Linux 2.6.5 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: Sun, 26 Sep 2004 12:12:51 -0000 Michael Nottebrock wrote: > On Sunday 26 September 2004 12:50, Doug Russell wrote: >=20 >>On Sun, 26 Sep 2004, Michael Nottebrock wrote: >> >>>On Saturday 25 September 2004 23:45, Jeremy Chadwick wrote: >>> >>>>6) I'm still amazed people have systems in production that use ICH2.= >>>>AFAIK, the chipset is deprecated. >>> >>>Eh? i845-based motherboards were not exactly a niche product and are n= ot >>>very ancient either. I'm surprised it surprises you to see them used. = :-) >> >>Bah! Just because some hardware is common does not mean is is good! >=20 >=20 > Supporting and being used on common-but-not-so-good hardware is one of = the=20 > best (and oldest) traditions of FreeBSD. :-) Yeah, well, we try, my last ich2 based system died long ago so it makes=20 it harder to keep support top notch :) Anyhow, please try the below patch and let me know if that changes=20 behavior in anyway. BTW, you need to compare speeds of the *exact same* area of the disk(s). = Modern disk often has only half the transfer rate on the last 1/3 of the = platters.. diff -u -r1.88 ata-chipset.c --- ata-chipset.c 10 Sep 2004 10:31:37 -0000 1.88 +++ ata-chipset.c 26 Sep 2004 12:08:56 -0000 @@ -976,6 +976,8 @@ pci_write_config(parent, 0x48, reg48 & ~(0x0001 << devno), 2); pci_write_config(parent, 0x4a, (reg4a & ~(0x3 << (devno <<=20 2))), 2); } + + reg54 |=3D 0x0400; if (mode >=3D ATA_UDMA2) pci_write_config(parent, 0x54, reg54 | (0x1 << devno), 2); else --=20 -S=F8ren