From owner-freebsd-stable@FreeBSD.ORG Wed Oct 25 13:24:57 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 E7BEB16A40F; Wed, 25 Oct 2006 13:24:57 +0000 (UTC) (envelope-from guido@gvr.org) Received: from gvr.gvr.org (gvr-gw.gvr.org [80.126.103.228]) by mx1.FreeBSD.org (Postfix) with ESMTP id 60B7343D4C; Wed, 25 Oct 2006 13:24:57 +0000 (GMT) (envelope-from guido@gvr.org) Received: by gvr.gvr.org (Postfix, from userid 657) id ABB65C20A; Wed, 25 Oct 2006 15:24:55 +0200 (CEST) Date: Wed, 25 Oct 2006 15:24:55 +0200 From: Guido van Rooij To: "Patrick M. Hausen" Message-ID: <20061025132455.GA52157@gvr.gvr.org> References: <20061025100759.GA50625@gvr.gvr.org> <20061025101801.GE23885@rink.nu> <20061025103905.GB50937@gvr.gvr.org> <20061025104829.GA41873@hugo10.ka.punkt.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20061025104829.GA41873@hugo10.ka.punkt.de> Cc: Rink Springer , freebsd-stable@freebsd.org Subject: 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 13:24:58 -0000 On Wed, Oct 25, 2006 at 12:48:29PM +0200, Patrick M. Hausen wrote: > You don't need to. > > If your bsdlabel partition is N sectors in size, the gmirror > object will have size N - 1. Newfs will not be able to write > to that last sector. You newfs the finished mirror device, > not the individual partitions. Indeed. How stupid from me. 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? -Guido