From owner-freebsd-questions@FreeBSD.ORG Sun Jan 22 00:15:30 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 C096916A424 for ; Sun, 22 Jan 2006 00:15:30 +0000 (GMT) (envelope-from hakmi@rogers.com) Received: from smtp102.rog.mail.re2.yahoo.com (smtp102.rog.mail.re2.yahoo.com [206.190.36.80]) by mx1.FreeBSD.org (Postfix) with SMTP id 4E29243D5F for ; Sun, 22 Jan 2006 00:15:23 +0000 (GMT) (envelope-from hakmi@rogers.com) Received: (qmail 33520 invoked from network); 22 Jan 2006 00:15:23 -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:In-Reply-To; b=Z/83RaaT3zQhQXfFoQ1+K3bLQkl9eHS4SdITusnJF7RexnVkNVcFWlSgAy58xvbPwMJEsUQOlRlkmvuZ2UYcIFj6bjQ77yoi2OsqVMsE4aLihIWdw/2FqI6Pl2eU3iUhxmWem7PcaJcnr1ExOJ+UjRLTPZ4G5Zy4i2PJpvOcYCY= ; Received: from unknown (HELO tamouh) (hakmi@rogers.com@70.27.160.99 with login) by smtp102.rog.mail.re2.yahoo.com with SMTP; 22 Jan 2006 00:15:23 -0000 From: "Tamouh H." To: Date: Sat, 21 Jan 2006 19:15:20 -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+Tu6Pcx82dsLI4QAASSWQ X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 In-Reply-To: <20060122000609.3DDFE43D48@mx1.FreeBSD.org> Message-Id: <20060122001523.4E29243D5F@mx1.FreeBSD.org> Subject: RE: 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:15:30 -0000 On another note, I've ran diskinfo test and these are the results, much = better but still the RAID-5 slower than a single drive: impala# diskinfo -t aacd1 aacd1 512 # sectorsize 146781044736 # mediasize in bytes (137G) 286681728 # mediasize in sectors 17845 # Cylinders according to firmware. 255 # Heads according to firmware. 63 # Sectors according to firmware. Seek times: Full stroke: 250 iter in 3.291258 sec =3D 13.165 msec Half stroke: 250 iter in 2.362839 sec =3D 9.451 msec Quarter stroke: 500 iter in 3.908358 sec =3D 7.817 msec Short forward: 400 iter in 2.478195 sec =3D 6.195 msec Short backward: 400 iter in 2.459182 sec =3D 6.148 msec Seq outer: 2048 iter in 0.661217 sec =3D 0.323 msec Seq inner: 2048 iter in 0.637923 sec =3D 0.311 msec Transfer rates: outside: 102400 kbytes in 1.659174 sec =3D 61717 = kbytes/sec middle: 102400 kbytes in 1.763043 sec =3D 58081 = kbytes/sec inside: 102400 kbytes in 2.867523 sec =3D 35710 = kbytes/sec impala# diskinfo -t aacd0 aacd0 512 # sectorsize 293561434112 # mediasize in bytes (273G) 573362176 # mediasize in sectors 35690 # Cylinders according to firmware. 255 # Heads according to firmware. 63 # Sectors according to firmware. Seek times: Full stroke: 250 iter in 2.966840 sec =3D 11.867 msec Half stroke: 250 iter in 2.270758 sec =3D 9.083 msec Quarter stroke: 500 iter in 4.493850 sec =3D 8.988 msec Short forward: 400 iter in 2.681128 sec =3D 6.703 msec Short backward: 400 iter in 1.520458 sec =3D 3.801 msec Seq outer: 2048 iter in 0.631963 sec =3D 0.309 msec Seq inner: 2048 iter in 0.625584 sec =3D 0.305 msec Transfer rates: outside: 102400 kbytes in 2.139737 sec =3D 47856 = kbytes/sec middle: 102400 kbytes in 3.080063 sec =3D 33246 = kbytes/sec inside: 102400 kbytes in 4.358889 sec =3D 23492 = kbytes/sec =20 >=20 > Hello, >=20 > I've just ran Bonnie on a FreeBSD 5.4 machine with Adaptec=20 > 2230SLP RAID-5 SCSI Card and Seagate 146GB 10K RPM U320 drives.=20 >=20 > The results were very surprising. The RAID-5 is EXTREMELY=20 > slow, and I can't figure out why!=20 >=20 > The RAID controller has two volumes: RAID-5 and a lone drive. >=20 > This is Bonnie results from the lone drive on the Adaptec card: >=20 > impala# ./Bonnie -d /tmp > File '/tmp/Bonnie.30883', size: 104857600 Writing with=20 > putc()...done Rewriting...done Writing intelligently...done=20 > Reading with getc()...done Reading intelligently...done=20 > Seeker 1...Seeker 2...Seeker 3...start 'em...done...done...done... > -------Sequential Output-------- ---Sequential=20 > Input-- --Random-- > -Per Char- --Block--- -Rewrite-- -Per Char-=20 > --Block--- --Seeks--- > Machine MB K/sec %CPU K/sec %CPU K/sec %CPU K/sec %CPU=20 > K/sec %CPU /sec %CPU > 100 27168 28.2 31668 13.9 36530 10.8 83540 92.1=20 > 495217 98.5 26086.8 182.8 >=20 > Here are the results doing the same test on the RAID-5: >=20 > impala# ./Bonnie -d /usr > File '/usr/Bonnie.30972', size: 104857600 Writing with=20 > putc()...done Rewriting...done Writing intelligently...done=20 > Reading with getc()...done Reading intelligently...done=20 > Seeker 1...Seeker 2...Seeker 3...start 'em...done...done...done... > -------Sequential Output-------- ---Sequential=20 > Input-- --Random-- > -Per Char- --Block--- -Rewrite-- -Per Char-=20 > --Block--- --Seeks--- > Machine MB K/sec %CPU K/sec %CPU K/sec %CPU K/sec %CPU=20 > K/sec %CPU /sec %CPU > 100 7478 7.7 10727 4.3 7250 3.2 101910 99.6=20 > 1464070 99.2 24067.2 180.6