From owner-freebsd-current@FreeBSD.ORG Sat Sep 11 14:05:43 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 F28AF16A4CE for ; Sat, 11 Sep 2004 14:05:42 +0000 (GMT) Received: from smtp1.powertech.no (smtp1.powertech.no [195.159.0.145]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1D62943D3F for ; Sat, 11 Sep 2004 14:05:42 +0000 (GMT) (envelope-from frode@nordahl.net) Received: from [192.168.1.35] (ti211110a080-2532.bb.online.no [80.212.201.228]) by smtp1.powertech.no (Postfix) with ESMTP id 5B2C3822F; Sat, 11 Sep 2004 16:05:40 +0200 (CEST) In-Reply-To: <4142D833.4060802@DeepCore.dk> References: <4142D833.4060802@DeepCore.dk> Mime-Version: 1.0 (Apple Message framework v619) Content-Type: text/plain; charset=ISO-8859-1; format=flowed Message-Id: Content-Transfer-Encoding: quoted-printable From: Frode Nordahl Date: Sat, 11 Sep 2004 16:05:39 +0200 To: =?ISO-8859-1?Q?S=F8ren_Schmidt?= X-Mailer: Apple Mail (2.619) 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 14:05:43 -0000 On Sep 11, 2004, at 12:49, S=F8ren Schmidt wrote: >> 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) >> (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) > > The only thing I could think of was if you have WC (write cache)=20 > turned off for some reason which yields this result here: When you say WC, you mean hw.ata.wc, right? It was enabled. I tried to disable it, and things actually got faster. # dd if=3D/dev/zero of=3Dfill bs=3D1m count=3D2000 2000+0 records in 2000+0 records out 2097152000 bytes transferred in 346.250049 secs (6056756 bytes/sec) Maybe there is some timing issues here somewhere, or just flaky cables=20= :-/ I'll test with other cables and disks and get back. atacontrol cap shows that the disk has write cache as well as read=20 ahead enabled, is it possible to tune this using FreeBSD tools? Mvh, Frode > 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=20 > would expect when not using WC.. > > > -S=F8ren >