From owner-freebsd-stable@FreeBSD.ORG Wed Oct 25 20:12:15 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org 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 3BD9A16A417 for ; Wed, 25 Oct 2006 20:12:15 +0000 (UTC) (envelope-from wjw@digiware.nl) Received: from freebee.digiware.nl (www.tegenbosch28.nl [217.21.251.97]) by mx1.FreeBSD.org (Postfix) with ESMTP id C148643D45 for ; Wed, 25 Oct 2006 20:12:13 +0000 (GMT) (envelope-from wjw@digiware.nl) Received: from [192.168.2.10] (unknown [192.168.2.10]) by freebee.digiware.nl (Postfix) with ESMTP id A79172AAC2; Wed, 25 Oct 2006 22:12:11 +0200 (CEST) Message-ID: <453FC522.1070200@digiware.nl> Date: Wed, 25 Oct 2006 22:12:18 +0200 From: Willem Jan Withagen User-Agent: Thunderbird 1.5.0.7 (Windows/20060909) MIME-Version: 1.0 To: Guido van Rooij References: <20061025100759.GA50625@gvr.gvr.org> <20061025101801.GE23885@rink.nu> <20061025103905.GB50937@gvr.gvr.org> <20061025104829.GA41873@hugo10.ka.punkt.de> <20061025132455.GA52157@gvr.gvr.org> In-Reply-To: <20061025132455.GA52157@gvr.gvr.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-stable@freebsd.org Subject: Re: Gmirror performanc (was Re: Gmirror question) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Oct 2006 20:12:15 -0000 Guido van Rooij wrote: > Anyway, I created a gm device and a partition. Now the read performance > is not what I'd expect. > I have the partition on two SATA devices on different controlers. > I get around 60MB/s for each disk. I can get that speed from both disks > simultaneously. > Now when I dd from the gm device, I don't get any speed higher than that. > I tried with -b split -s , -b round-robin, -b load. > (dd-ing as done with a bs of 1m; I see the transaction size is 128Kb, > unless the split method is used, in which case the transaction size > gies down. When round-robin is used, the transaction size is 128Kb/s, > but the number of transaction per second goes down.). > > I cannot explain why I should not get a higher read speed. Anyone? Hee Guido, I've once ran several of these types of tests for some of the disks I collected over time. Even wrote a page on that topic. More or less as a consequence of a paper you mailed me a while ago on NFS performance :) If you want: The narative on this (don't dare calling it an article.) http://www.tegenbosch28.nl/FreeBSD/Performance/Raw-disk/ And I've compared a WD800 SATA disk with a gmirror of 2 the same disks. http://www.tegenbosch28.nl/FreeBSD/Performance/Raw-disk/wd800-sata/ http://www.tegenbosch28.nl/FreeBSD/Performance/Raw-disk/wd800-sata/ The fact that these are not mentioned in the article is that I never got around into looking why the graphs look the way that they look. Especially the write ones need some serious consideration. If you want the scripts, for some DIY: Just give me a buzz... Running this for a large disk takes al long time (>1 day) I'm currently running it on a 250Gb disk. Probably there'll be flack from people telling you not to use dd for disk benchmarking. Given its simple approach it does let you understand what you are doing. --WjW