From owner-cvs-all Sun Oct 28 15:37:42 2001 Delivered-To: cvs-all@freebsd.org Received: from monorchid.lemis.com (monorchid.lemis.com [192.109.197.75]) by hub.freebsd.org (Postfix) with ESMTP id 65C9C37B405; Sun, 28 Oct 2001 15:37:31 -0800 (PST) Received: by monorchid.lemis.com (Postfix, from userid 1004) id 54160786E1; Mon, 29 Oct 2001 10:07:28 +1030 (CST) Date: Mon, 29 Oct 2001 10:07:28 +1030 From: Greg Lehey To: Bruce Evans Cc: Matthew Jacob , Doug Rabson , Luigi Rizzo , John Baldwin , Jonathan Lemon , cvs-all@FreeBSD.org, cvs-committers@FreeBSD.org Subject: Re: RAID-5 parity calculations (was: cvs commit: src/sys/dev/fxp if_fx) Message-ID: <20011029100728.D88146@monorchid.lemis.com> References: <20011027102214.C7091@wantadilla.lemis.com> <20011028224500.A2495-100000@delplex.bde.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.2.5i In-Reply-To: <20011028224500.A2495-100000@delplex.bde.org>; from bde@zeta.org.au on Sun, Oct 28, 2001 at 10:57:33PM +1100 Organization: The FreeBSD Project Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 WWW-Home-Page: http://www.FreeBSD.org/ X-PGP-Fingerprint: 6B 7B C3 8C 61 CD 54 AF 13 24 52 F8 6D A4 95 EF Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sunday, 28 October 2001 at 22:57:33 +1100, Bruce Evans wrote: > On Sat, 27 Oct 2001, Greg Lehey wrote: > >> On Thursday, 25 October 2001 at 15:24:06 -0700, Matt Jacob wrote: >>> >>> And the fastest software RAID-V I've known was at NASA/Ames on the >>> Convex 3280s- they used the otherwise unused vector units for parity >>> calculations- this gave write performance for a 22 wide stripe on a >>> terabyte fileystem to be at about 88% of theoretical maximum, which >>> sure aint' bad. >> >> The parity calculations for RAID-5 are several orders of magnitude >> faster than the disk accesses. Even on a 486, they took hardly any >> time. > > Actually, a 486 can't possibly have been more than about one order of > magnitude faster than the disk accesses, since main memory was only > that much faster (usually less). My 486DX2/66 has 15MB/sec main memory > and a 2MB/sec disk. It would be possible to upgrade the disk (but not > the memory). Then the disk would want to transfer at about half an > order of magnitude faster then the memory. My claims are based on measurements, not theory. You're forgetting that most of the transfer time is in positioning. That's why (in the original message) I mentioned the transfer size. A 2 MB/s disk is fast for those days; I've seen more like 800 kB/s. Even accepting your values, the average seek time is 10 ms (check with rawio if you have a different expectation). Such a disk, doing transfers of 6 kB, will perform about 75 random transfers per second, or about 450 kB/s. (By comparison, a disk with 800 kB/s transfer rate would perform about 57 transfers). Four such transfers are required for each parity calculation; they should proceed in parallel, which would mean only 27 ms per operation. Assuming your value for memory speed, the 12 kB of memory transfer, by comparison, would take place in 800 µs, nothing by comparison. Greg -- See complete headers for address and phone numbers To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message