From owner-freebsd-stable@FreeBSD.ORG Wed Mar 30 00:48:37 2011 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 575F51065672 for ; Wed, 30 Mar 2011 00:48:37 +0000 (UTC) (envelope-from clay@milos.co.za) Received: from lisa.milos.co.za (lisa.milos.co.za [109.169.49.137]) by mx1.freebsd.org (Postfix) with ESMTP id AF2E98FC17 for ; Wed, 30 Mar 2011 00:48:36 +0000 (UTC) Received: (qmail 42261 invoked by uid 89); 30 Mar 2011 00:48:34 -0000 Received: from unknown (HELO claydesktop) (clay@milos.co.za@192.168.200.6) by lisa.milos.co.za with ESMTPA; 30 Mar 2011 00:48:34 -0000 Message-ID: <4E14579005B647BB932C09347031544B@claydesktop> From: "Clayton Milos" To: "Clayton Milos" References: <4D917547.7050908@rdtc.ru> <7891ACBE8A1D4A71BEFEAA7D98A7591B@claydesktop> Date: Wed, 30 Mar 2011 01:48:48 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=response Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.5931 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5931 Cc: pjd@freebsd.org, freebsd-stable@freebsd.org Subject: Re: GELI speed 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, 30 Mar 2011 00:48:37 -0000 >> On 29.03.2011 00:57, Clayton Milos wrote: >>> Hi Pawel >>> >>> I'm running GELI encryption on a hardware RAID5 (8x1TB), formatted to >>> 6.3T >>> usable space using i386 FreeBSD 7.3-PRERELEASE. Write speeds to the >>> drive >>> are just over 40MB/s which is not too bad but I would like to improve it >>> as >>> the drive gets 270MB/s without encryption. >>> >>> I've run the following tests: >>> dd if=/dev/gzero.eli of=/dev/null bs=1m count=4096 >>> 4294967296 bytes transferred in 99.763266 secs (43051591 bytes/sec) >>> and then >>> dd if=/dev/zero of=test.file bs=1m count=1024 >>> 1073741824 bytes transferred in 26.118988 secs (41109626 bytes/sec) >>> >>> There is not much speed lost due to the filesystem throughput or the >>> RAID >>> card. >> >> You can also try increase reading performance by using geom_cache >> with sufficiently large cache. It won't impact on linear reads >> but for general operations like directory lookups, many short reads etc. >> it can decrease number of decrypt requests. >> >> Eugene Grosbein >> > > Thanks Eugene. unfortunately I have some large directories with ~2000 > files in them so if that slowed down it would be painful. > > Clay I've upgraded to i386 8.2-RELEASE as the amd64 version was still crashing. It could be a hardware incompatability with the HADMA motherboard. Now on 8.2-RELEASE when I run "geli onetime -s 4096 gzero" it crashes the box with a kernel fault. Clay