From owner-freebsd-questions@FreeBSD.ORG Sat Apr 19 17:38:27 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B7C4C106566C for ; Sat, 19 Apr 2008 17:38:27 +0000 (UTC) (envelope-from hideo@lastamericanempire.com) Received: from darwin.lastamericanempire.com (lastamericanempire.com [66.134.56.226]) by mx1.freebsd.org (Postfix) with ESMTP id 88FC28FC12 for ; Sat, 19 Apr 2008 17:38:27 +0000 (UTC) (envelope-from hideo@lastamericanempire.com) Received: by darwin.lastamericanempire.com (Postfix, from userid 1001) id 7FC734500E; Sat, 19 Apr 2008 11:21:00 -0600 (MDT) Date: Sat, 19 Apr 2008 11:21:00 -0600 From: hideo To: freebsd-questions@freebsd.org Message-ID: <20080419172100.GA3638@lastamericanempire.com> Mail-Followup-To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.17 (2007-11-01) Subject: gmirror, geli, gjournal performance X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Apr 2008 17:38:27 -0000 Hi everyone, I was replacing a disk in a gmirror+geli pair and decided to compare the performance of gmirror+geli+gjournal before adding the new disk. When using these three together is the appropriate order to 1) fdisk and label 2) mirror the disk, 3) geli the partitions, and 4) use the geli partitions for gjournal label? With respect to performance, I find the writes to the gjournal disk about half as fast, which I expected from the benchmarks I've seen. However, reading a single file is identical between the two: dd if=/sofupdates/1.mpg of=/dev/null bs=1m 994049168 bytes transferred in 34.858793 secs (28516454 bytes/sec) dd if=/gjournal/1.mpg of=/dev/null bs=1m 994049168 bytes transferred in 34.335267 secs (28951258 bytes/sec) Is this expected? I was under the impression that reads should be somewhat faster with gjournal. Is geli decryption the limiting factor here? Zach