From owner-freebsd-questions@FreeBSD.ORG Sun Jan 22 00:06:10 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B544B16A41F for ; Sun, 22 Jan 2006 00:06:10 +0000 (GMT) (envelope-from hakmi@rogers.com) Received: from smtp109.rog.mail.re2.yahoo.com (smtp109.rog.mail.re2.yahoo.com [68.142.225.207]) by mx1.FreeBSD.org (Postfix) with SMTP id 3DDFE43D48 for ; Sun, 22 Jan 2006 00:06:09 +0000 (GMT) (envelope-from hakmi@rogers.com) Received: (qmail 36037 invoked from network); 22 Jan 2006 00:06:09 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=rogers.com; h=Received:From:To:Subject:Date:MIME-Version:Content-Type:Content-Transfer-Encoding:X-Mailer:Thread-Index:X-MimeOLE; b=xHRNSqmCejx5b9Kdygvg+LquO+TtSxRypRvAnM+qVpGFSeXoPQtuM1lLOqVViBsX6Jw9dv3aKtG9gNU4drBjx0NGLUNZNPW1zPxOZW3IlhZUYZNtJd43crEqVMWUTn8nlYK7H65JknKiCe1lXGYM3hV7t1mFoX72OYIyOG8rMDM= ; Received: from unknown (HELO tamouh) (hakmi@rogers.com@70.27.160.99 with login) by smtp109.rog.mail.re2.yahoo.com with SMTP; 22 Jan 2006 00:06:09 -0000 From: "Tamouh H." To: Date: Sat, 21 Jan 2006 19:06:05 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Office Outlook, Build 11.0.6353 Thread-Index: AcYe56MwFGT+MwJ+Tu6Pcx82dsLI4Q== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Message-Id: <20060122000609.3DDFE43D48@mx1.FreeBSD.org> Subject: slow RAID-5 on FreeBSD 5.4 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Jan 2006 00:06:10 -0000 Hello, I've just ran Bonnie on a FreeBSD 5.4 machine with Adaptec 2230SLP = RAID-5 SCSI Card and Seagate 146GB 10K RPM U320 drives.=20 The results were very surprising. The RAID-5 is EXTREMELY slow, and I = can't figure out why!=20 The RAID controller has two volumes: RAID-5 and a lone drive. This is Bonnie results from the lone drive on the Adaptec card: impala# ./Bonnie -d /tmp File '/tmp/Bonnie.30883', size: 104857600 Writing with putc()...done Rewriting...done Writing intelligently...done Reading with getc()...done Reading intelligently...done Seeker 1...Seeker 2...Seeker 3...start 'em...done...done...done... -------Sequential Output-------- ---Sequential Input-- = --Random-- -Per Char- --Block--- -Rewrite-- -Per Char- --Block--- = --Seeks--- Machine MB K/sec %CPU K/sec %CPU K/sec %CPU K/sec %CPU K/sec %CPU = /sec %CPU 100 27168 28.2 31668 13.9 36530 10.8 83540 92.1 495217 98.5 = 26086.8 182.8 Here are the results doing the same test on the RAID-5: impala# ./Bonnie -d /usr File '/usr/Bonnie.30972', size: 104857600 Writing with putc()...done Rewriting...done Writing intelligently...done Reading with getc()...done Reading intelligently...done Seeker 1...Seeker 2...Seeker 3...start 'em...done...done...done... -------Sequential Output-------- ---Sequential Input-- = --Random-- -Per Char- --Block--- -Rewrite-- -Per Char- --Block--- = --Seeks--- Machine MB K/sec %CPU K/sec %CPU K/sec %CPU K/sec %CPU K/sec %CPU = /sec %CPU 100 7478 7.7 10727 4.3 7250 3.2 101910 99.6 1464070 99.2 = 24067.2 180.6 Notice the 7MB write speed compared to 30MB. The read speeds are still = very slow considering these are SCSI drives (I've done another test on = S-ATA drive and it had the same Read speed, but much slower write). I believe the drives are working fine, I don't suspect problems with = them. However, smartmontools doesn't support Adaptec RAID. Anything suggested to imrpove the RAID-5 performance ? It is surprising = both tests were ran against the same card. Thanks, Tamouh Hakmi