From owner-freebsd-performance@FreeBSD.ORG Mon Jun 20 14:43:44 2005 Return-Path: X-Original-To: freebsd-performance@FreeBSD.org Delivered-To: freebsd-performance@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C627A16A41C for ; Mon, 20 Jun 2005 14:43:44 +0000 (GMT) (envelope-from scuba@centroin.com.br) Received: from gorgo.centroin.com.br (gorgo.centroin.com.br [200.225.63.128]) by mx1.FreeBSD.org (Postfix) with ESMTP id 41B4443D4C for ; Mon, 20 Jun 2005 14:43:43 +0000 (GMT) (envelope-from scuba@centroin.com.br) Received: from hypselo.centroin.com.br (hypselo.centroin.com.br [200.225.63.1]) by gorgo.centroin.com.br (8.12.10/8.12.9) with ESMTP id j5KEhRM3013326; Mon, 20 Jun 2005 11:43:35 -0300 (EST) Date: Mon, 20 Jun 2005 11:43:27 -0300 (EST) From: Sender: To: Bruce Evans In-Reply-To: <20050620222051.T13863@delplex.bde.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: freebsd-performance@FreeBSD.org Subject: Re: Slave IDE HDD not working in UDMA5 X-BeenThere: freebsd-performance@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Jun 2005 14:43:44 -0000 On Mon, 20 Jun 2005, Bruce Evans wrote: |On Thu, 16 Jun 2005 scuba@centroin.com.br wrote: | |> =09This was first posted on freebsd-question, but I could not find |> the solution yet. |> =09Maybe you could help me. | |Maybe a little. I don't use 5.4... =09It happens on 5.3 also. Not tested on 4.x. |> =09I=B4ve installed FreeBSD 5.4 on a new machine with the following |> hardware: |> |> =09Asus P4P800 SE (BIOS v. 1008) |> =092GB RAM ( 4x 512 DDR400 ) |> =092 HDD Samsung SP0802N (80GB 7200rpm ata-100) 80 pins cable. |> |> =09The HD were formated with newfs defaults, and the following |> results were the same using both as master (primary e secondary) or with= a |> master / slave (same interface). |> |> =09With diskinfo both performance are the same, but with "dd", the |> second disc (the slave or the secondary master), is always worst as if i= t |> were working in DMA2. | |I remember a commit to the ata driver to fix misprogramming of DMA timing |on an Intel chipset for devices and/or channels other than the first. I'm |not sure if 5.4 has the bug or the fix. =09It seems that the bug is still there. |diskinfo only tests reading, and you only showed a dd test using writing |(to a file), so the problem is apparently only that writing to the second |drive is slow. =09Right. |> =09what should be the right results? | |Swap the devices to see if it is a drive problem (unlikely with the |same model of drive but... I have one system that apparently has |worse timing on the secondary channel. This showed up as writes |causing subsequent reads to be slow -- apparently the writes caused |some errors and error correction as perfect except for slowing things |down). =09I=B4d already did it. It=B4s not a hardware problem. Always happen on the second drive, no matter which is it. - Marcelo