From owner-freebsd-stable@FreeBSD.ORG Wed Jan 14 05:20:57 2004 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B492216A4CE for ; Wed, 14 Jan 2004 05:20:57 -0800 (PST) Received: from mx0.dmpriest.net.uk (mx0.dmpriest.net.uk [62.13.128.30]) by mx1.FreeBSD.org (Postfix) with ESMTP id E930743D53 for ; Wed, 14 Jan 2004 05:20:53 -0800 (PST) (envelope-from kpielorz@tdx.co.uk) Received: from rainbow (adsl-blk-62-13-130-225.dmpriest.net.uk [62.13.130.232] (may be forged)) by mx0.dmpriest.net.uk (8.11.6/8.11.6/Kp) with ESMTP id i0EDHnO14833; Wed, 14 Jan 2004 13:17:49 GMT Date: Wed, 14 Jan 2004 13:20:43 +0000 From: Karl Pielorz To: Ari Suutari , freebsd-stable@freebsd.org Message-ID: <741002750.1074086443@rainbow> In-Reply-To: <200401141453.50150.ari@suutari.iki.fi> References: <200401141453.50150.ari@suutari.iki.fi> X-Mailer: Mulberry/3.1.0 (Win32) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: Re: Adaptect raid performance with FreeBSD X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Jan 2004 13:20:57 -0000 --On 14 January 2004 14:53 +0200 Ari Suutari wrote: > I have a dual PIII 500 Mhz with intel server mother board. > (a couple of years old). On that, I have DPT (or currently Adaptec) > raid controller "DPT PM2654U2", which supports 40 Mhz SCSI bus, > giving a theoretical data transfer speed of 80 MB/s. There are > two physical disks, which have been mirrored (ie. raid-1). > The disks are maxtor atlas 10K4, I think that maxtor tells > that they should give sustained transfer rate up to 72MB/s. 72Mbytes per second? - That seems a little high? If that's the 'up to rate' - you can guarantee it won't do that across the whole surface - it could be half that speed in places. > dd if=/dev/rda1s1a of=/dev/null bs=1m count=100 > 100+0 records in > 100+0 records out > 104857600 bytes transferred in 4.193832 secs (25002814 bytes/sec) > > So, I get only about 25MB/s. Shouldn't I be getting something > like 70 MB/s, or even more since there are two disks that > can server read requests ? Hmmm, what happens if you run two of those at once? > Maybe there is something I could tune ? The BIOS doesn't > have much, there is only setting to enable bus mastering (enabled) > and another for pci latency timer values (was 40, I think) In theory (and assuming nothing else fiddles, or overrides it etc.) - the higher you set the latency, the faster but more 'jerky' the PCI bus gets. i.e. devices spend longer talking on it, which means the initial setup for transfers etc. as an overhead goes down - at the expensive of devices 'hogging' the bus for longer... I think :) But, I can't remember seeing adjusting it making any real-world difference - what happens if you max it out (e.g. 128, or 256)? It'll be interesting to see what speed you get for 2 of the benchmarks running at the same time... Have you also tried different block sizes, e.g. 64k, 128k etc? -Karl