From owner-freebsd-stable@FreeBSD.ORG Sun Mar 30 08:50:37 2003 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 8C4D637B401 for ; Sun, 30 Mar 2003 08:50:37 -0800 (PST) Received: from mother.ludd.luth.se (mother.ludd.luth.se [130.240.16.3]) by mx1.FreeBSD.org (Postfix) with ESMTP id D6EF743FAF for ; Sun, 30 Mar 2003 08:50:35 -0800 (PST) (envelope-from pantzer@ludd.luth.se) Received: from ludd.luth.se (skalman.campus.luth.se [130.240.197.52]) by mother.ludd.luth.se (8.11.6+Sun/8.9.3) with ESMTP id h2UGoK802031; Sun, 30 Mar 2003 18:50:20 +0200 (MEST) Message-ID: <3E87204C.5060304@ludd.luth.se> Date: Sun, 30 Mar 2003 18:50:20 +0200 From: Mattias Pantzare User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.2.1) Gecko/20030217 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Lukas Ertl References: <20030330125138.K23911@leelou.in.tern> <3E870CC7.5000204@mac.com> <20030330175605.E23911@leelou.in.tern> In-Reply-To: <20030330175605.E23911@leelou.in.tern> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-stable@freebsd.org Subject: Re: vinum performance 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: Sun, 30 Mar 2003 16:50:38 -0000 Lukas Ertl wrote: > Ok. But I still don't understand why RAID 5 write performance is _so_ bad. > The CPU is not the bottle neck, it's rather bored. And I don't understand > why RAID 0 doesn't give a big boost at all. Is the ahc driver known to be > slow? To do a RAID 5 write you do this: 1. Read the old data on the blocks that you will write to. 2. Read the coresponding parity data. 3. Write the new data. 4. Write the new parity. So one write is 4 I/O before it hits the disk. There are some optimizations that can be done if you are doing writes that span a stripe, but RIAD 5 _is_ slower. Hardware RAID 5 can help a lot if it has battery backed RAM as it can hide some of that delay. Hardware RAID 5 without battery backed RAM will only use less CPU. For RAID0 to be faster than a singel disk you have to do reads that match or are larger than a stripe. Or have several processes generate the IO. Try running two bonnie in paralell and se what hapens.