From owner-freebsd-current@FreeBSD.ORG Thu Sep 3 00:21:10 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D6606106566B; Thu, 3 Sep 2009 00:21:10 +0000 (UTC) (envelope-from emikulic@gmail.com) Received: from ipmail03.adl6.internode.on.net (ipmail03.adl6.internode.on.net [203.16.214.141]) by mx1.freebsd.org (Postfix) with ESMTP id 1D0FD8FC1B; Thu, 3 Sep 2009 00:21:09 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApsEAI6onkqWZZrw/2dsb2JhbACSAbg/kgKEGwWBVw X-IronPort-AV: E=Sophos;i="4.44,321,1249223400"; d="scan'208";a="29179302" Received: from ppp154-240.static.internode.on.net ([150.101.154.240]) by ipmail03.adl6.internode.on.net with ESMTP; 03 Sep 2009 09:51:07 +0930 Received: by ppp154-240.static.internode.on.net (Poo-fix, from userid 1001) id E8C605C6E; Thu, 3 Sep 2009 10:21:06 +1000 (EST) Date: Thu, 3 Sep 2009 10:21:06 +1000 From: Emil Mikulic To: Alexander Motin Message-ID: <20090903002106.GB17538@dmr.ath.cx> References: <4A9E8677.1020208@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4A9E8677.1020208@FreeBSD.org> User-Agent: Mutt/1.5.20 (2009-06-14) Cc: "Derek \(freebsd lists\)" <482254ac@razorfever.net>, FreeBSD-Current Subject: Re: siis/atacam/ata/gmirror 8.0-BETA3 disk performance X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Sep 2009 00:21:10 -0000 On Wed, Sep 02, 2009 at 05:51:35PM +0300, Alexander Motin wrote: > To completely load gmirror on read operations, you may need to run > two dd's same time. Also make sure, that your gmirror runs in > round-robin mode. Default split mode, which should help with linear > read, is IMHO ineffective, at least with default MAXPHYS and slice > values. On that note, there is an excellent patch in this PR which improves the way gmirror schedules read requests to different disks: http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/113885 Could someone please commit this? With this patch and a two-way mirror, I can run two linear scans of different files in parallel and get almost perfect scaling. (result: this approximately halves the wall-clock time it takes to do a backup of some fat VM images) IIRC, without the patch it's faster to run them sequentially. :( --Emil