From owner-freebsd-stable@FreeBSD.ORG Sat May 14 13:16:51 2005 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 4C88616A4CE for ; Sat, 14 May 2005 13:16:51 +0000 (GMT) Received: from darkness.comp.waw.pl (darkness.comp.waw.pl [195.117.238.136]) by mx1.FreeBSD.org (Postfix) with ESMTP id DC7CB43D6B for ; Sat, 14 May 2005 13:16:50 +0000 (GMT) (envelope-from pjd@darkness.comp.waw.pl) Received: by darkness.comp.waw.pl (Postfix, from userid 1009) id D4F1FACAF4; Sat, 14 May 2005 15:16:48 +0200 (CEST) Date: Sat, 14 May 2005 15:16:48 +0200 From: Pawel Jakub Dawidek To: vohand@gmail.com Message-ID: <20050514131648.GB837@darkness.comp.waw.pl> References: <20050514093217.C6088E082A@oak.tantieme.ru> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="GJOW/16TiMziTs6N" Content-Disposition: inline In-Reply-To: <20050514093217.C6088E082A@oak.tantieme.ru> User-Agent: Mutt/1.4.2i X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 5.2.1-RC2 i386 cc: freebsd-stable@freebsd.org Subject: Re: gmirror 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: Sat, 14 May 2005 13:16:51 -0000 --GJOW/16TiMziTs6N Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, May 14, 2005 at 01:22:05PM +0400, vohand@gmail.com wrote: +>=20 +> Hardware: SATA RAID adapter with SiliconImage 3114 chip. 2 SATA HDD. +> I did gmirror. +>=20 +> Run test: +> 3 parallel tasks "dd if=3D/dev/mirror/gm0 of=3D/dev/null bs=3D1m count= =3D5000" +>=20 +> gstat shows summary read speed from mirror about 30-40 mbyte/sec. +> It is for all balance algorithms: load, round-robin, split +>=20 +> While, one "dd if=3D/dev/ad4 of=3D/dev/null bs=3D1m count=3D5000" shows = 50 mbyte/sec +>=20 +> 1. Why it occurs and how fix it ? +>=20 +> 2. If in the test instead of three instancies of "dd if=3D/dev/mirror/gm0 +> of=3D/dev/null bs=3D1m count=3D5000" run only one,=20 +> then read speed don`t exceeds read speed from one disk (dd if=3D/dev/= ad4 +> of=3D/dev/null bs=3D1m count=3D5000) +> a) This is gmirror feature ? +> b) This is hardware feature (SiliconImage 3114 chip) ? This is the way RAID1 works. Try to imagine how disk's heads are moving - there will be no speed-up in sequential reads, this is not RAID0. Mirror characteristics are: - the same speed for sequential reads as for one disk; - the same speed for sequential/random write as for one disk; - double speed of one disk for random reads; --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --GJOW/16TiMziTs6N Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFChfpAForvXbEpPzQRAhU+AJ0R4NZg/yi42IEoUg7+v6oW+z4bmACgm55s D6+UCfvI6Y/wbyShpB+GX5Y= =MGqj -----END PGP SIGNATURE----- --GJOW/16TiMziTs6N--