From owner-freebsd-current@FreeBSD.ORG Sat Sep 11 10:50:24 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 0399216A4CF for ; Sat, 11 Sep 2004 10:50:24 +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 DC14D43D53 for ; Sat, 11 Sep 2004 10:50:08 +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 i8BAo7Rx060469; Sat, 11 Sep 2004 12:50:07 +0200 (CEST) (envelope-from sos@DeepCore.dk) Message-ID: <4142D833.4060802@DeepCore.dk> Date: Sat, 11 Sep 2004 12:49:23 +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: Frode Nordahl References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable cc: current@freebsd.org Subject: Re: Promise PDC20267 ATA RAID, poor write performance 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: Sat, 11 Sep 2004 10:50:24 -0000 Frode Nordahl wrote: > Hello, >=20 > I have a intel S845WD1-E board with onboard Promise PDC20267 controller= =2E > The system is set up with a P4 2Ghz with 1GB RAM. > The board also has a Intel ICH2, but that's only used by a CDROM. >=20 > Disks connected: > ad4: 39205MB [79656/16/63] at ata2-master UDM= A100 > ad6: 39205MB [79656/16/63] at ata3-master UDM= A100 >=20 > I have them set up in a RAID1 >=20 > I have tried this on FreeBSD 4.10-RELEASE, and 6-CURRENT (from today)=20 > with similar results. >=20 > I also tried with RAID0, and that showed the same results*2, that is,=20 > ca. 7MB/s write instead of 3.5MB/s. >=20 > I have no previous experience with this hardware on other OS'es, so I'm= =20 > not sure what to expect, but I'm pretty sure it should be better than=20 > this :) >=20 > dmesg included below. >=20 > Doing simple tests show very poor write performance: > (reboot) > # dd if=3D/dev/zero of=3Dfill bs=3D1m count=3D2000 > 2000+0 records in > 2000+0 records out > 2097152000 bytes transferred in 588.383886 secs (3564258 bytes/sec) >=20 > (reboot) > # dd if=3Dfill of=3D/dev/null bs=3D1m > 2000+0 records in > 2000+0 records out > 2097152000 bytes transferred in 68.492015 secs (30618927 bytes/sec) OK I got this this setup now: atapci0: port=20 0xb000-0xb03f,0xb400-0xb403,0xb800-0xb807,0xd000-0xd003,0xd400-0xd407=20 mem 0xfd000000-0xfd01ffff irq 16 at device 3.0 on pci0 ad1: 14305MB [29065/16/63] at ata2-master UDMA1= 00 ad2: 14305MB [29065/16/63] at ata3-master UDMA1= 00 ar0: 14305MB [1823/255/63] status: READY subdisks: Controller the same, disks are an earlier verision of those "low=20 profile" Maxtor disks, just somewhat slover than yours. pizzabox# dd if=3D/dev/zero of=3Dfill bs=3D1m count=3D2000 2000+0 records in 2000+0 records out 2097152000 bytes transferred in 122.908771 secs (17062672 bytes/sec) pizzabox# dd if=3Dfill of=3D/dev/null bs=3D1m 2000+0 records in 2000+0 records out 2097152000 bytes transferred in 78.299524 secs (26783713 bytes/sec) Thats pretty much what I'd expect from this HW, so I risk saying that=20 ATA is working just as it should here. The only thing I could think of was if you have WC (write cache) turned=20 off for some reason which yields this result here: pizzabox# dd if=3D/dev/zero of=3Dfill bs=3D1m count=3D2000 2000+0 records in 2000+0 records out 2097152000 bytes transferred in 428.874993 secs (4889891 bytes/sec) That looks more like your results, but they are also within what I would = expect when not using WC.. -S=F8ren