From owner-freebsd-questions@FreeBSD.ORG Sun Mar 25 20:37:47 2012 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 49343106566C for ; Sun, 25 Mar 2012 20:37:47 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from email2.allantgroup.com (email2.emsphone.com [199.67.51.116]) by mx1.freebsd.org (Postfix) with ESMTP id 0C7C98FC08 for ; Sun, 25 Mar 2012 20:37:46 +0000 (UTC) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by email2.allantgroup.com (8.14.4/8.14.4) with ESMTP id q2PKbjjA019003 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 25 Mar 2012 15:37:45 -0500 (CDT) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (smmsp@localhost [127.0.0.1]) by dan.emsphone.com (8.14.5/8.14.5) with ESMTP id q2PKbjQV084524 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 25 Mar 2012 15:37:45 -0500 (CDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.14.5/8.14.5/Submit) id q2PKbihS084523; Sun, 25 Mar 2012 15:37:44 -0500 (CDT) (envelope-from dan) Date: Sun, 25 Mar 2012 15:37:44 -0500 From: Dan Nelson To: Moritz Schlarb Message-ID: <20120325203744.GB55964@dan.emsphone.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-OS: FreeBSD 8.2-STABLE User-Agent: Mutt/1.5.21 (2010-09-15) X-Virus-Scanned: clamav-milter 0.97.2 at email2.allantgroup.com X-Virus-Status: Clean X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.6 (email2.allantgroup.com [199.67.51.78]); Sun, 25 Mar 2012 15:37:45 -0500 (CDT) X-Scanned-By: MIMEDefang 2.68 on 199.67.51.78 Cc: freebsd-questions@freebsd.org Subject: Re: Performance of Geli compared to Luks 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: Sun, 25 Mar 2012 20:37:47 -0000 In the last episode (Mar 25), Moritz Schlarb said: > My HP Proliant Microserver, which I want to use as a NAS, is using an AMD > Turion II Neo N40L processor. The plain disks give me about 100 MB/s > using filebench with the fivestreamwrite/multistreamwrite workloads (as > software RAID-1 under Linux and zpool mirror under FreeBSD). > > In Linux, using LUKS with cipher aes-xts-plain64 on a software RAID-1 I > get the same ~100 MB/s for the same benchmarks. > > In FreeBSD, using a mirror zfs pool with underlying GELI with AES-XTS I > get only ~50 MB/s. > > As the encryption algorithms should be the same, I'm wondering why FreeBSD > is that slow for nearly exactly the same use case. Any ideas how I could > tweak my settings in FreeBSD? As a first step, I'd try reading/writing from the raw GELI and LUKS devices to rule out performance differences due to the filesystems you're using. -- Dan Nelson dnelson@allantgroup.com