From owner-freebsd-current@FreeBSD.ORG Thu Sep 9 21:24:54 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 DD4A016A4CE; Thu, 9 Sep 2004 21:24:54 +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 1C05343D49; Thu, 9 Sep 2004 21:24:54 +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 i89LOjJA041353; Thu, 9 Sep 2004 23:24:46 +0200 (CEST) (envelope-from sos@DeepCore.dk) Message-ID: <4140C9F5.5090404@DeepCore.dk> Date: Thu, 09 Sep 2004 23:24:05 +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: Kevin Oberman References: <20040909210541.16C925D09@ptavv.es.net> In-Reply-To: <20040909210541.16C925D09@ptavv.es.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable cc: sos@FreeBSD.ORG cc: freebsd-current@FreeBSD.ORG cc: Bjoern Koenig Subject: Re: poor ATA disk speed with ICH2 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: Thu, 09 Sep 2004 21:24:55 -0000 Kevin Oberman wrote: >>>While the test is running, the disk being written to "sings" with the >>>frequency somewhat dependent on the size of the write. On read, I get >>>silence. When I copy my full disk (if=3D3Dad0 of=3D3Dad2), I can clear= ly he=3D >> >>ar >> >>>the sound of the actuator moving the heads constantly toward the end o= f=3D >> >>>the backup. I assume that they are being returned to track 0 on a >>>repeated basis. >> >>There should be no seeks on a lone write to the raw disk, if there is=3D= 20 >>you have HW problems as the driver doesn't issue any seeks at all then.= >> >>What disks are this BTW ? >=20 >=20 > This was RELENG_5 on the 6th at 22:55 UTC. cvsup from my local mirror, > so it may have been up to about 70 minutes old. >=20 > The "singing" only happens when running V5. I have no such sound when I= > do the same thing with V4.=20 I have no idea, there is nothing in the ATA driver that does extra=20 seeking, so the seek behavior must originate somewhere else, ie=20 something else issues disk requests besides your dd. You could=20 instrument the code and have it write out all LBA's it writes to on ad2=20 to see what gets sent to the disk. > The disk is an Toshiba MK4019GAX. 40 GB ATA100 5400RPM. I get the same > performance, though, when using an IBM (now Hitachi) 40GB, ATA100 > 5400RPM drive. What I am seeing looks a lot like what Bjoern was seeing= , > so it's not unique to this system. Hmm, do you have write cache en/dis-abled ? Just for the fun of it I dd'ed to from my laptop disk through the fs=20 though as I want to keep my data, but that shoudl only make performance=20 worse. Its an ich4 but that uses the same code as the ich2. atapci0: port=20 0x1860-0x186f,0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 at device 31.1 on pci0 ad0: 76319MB [155061/16/63] at ata0-master=20 UDMA100 dd if=3D/dev/zero of=3Dfil bs=3D512 (24474468 bytes/sec) dd if=3D/dev/zero of=3Dfil bs=3D1m (25091961 bytes/sec) thats copying for ~30s as well (reading doesn't make sense here). Both are close to what that disk can do, so there is nothing in the=20 driver thats prohibiting reaching the disks performance... -S=F8ren