From owner-freebsd-geom@FreeBSD.ORG Fri Jul 27 20:42:44 2007 Return-Path: Delivered-To: geom@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 331AD16A419 for ; Fri, 27 Jul 2007 20:42:44 +0000 (UTC) (envelope-from etc@fluffles.net) Received: from auriate.fluffles.net (cust.95.160.adsl.cistron.nl [195.64.95.160]) by mx1.freebsd.org (Postfix) with ESMTP id CFCA313C45A for ; Fri, 27 Jul 2007 20:42:43 +0000 (UTC) (envelope-from etc@fluffles.net) Received: from 195-241-125-45.dsl.ip.tiscali.nl ([195.241.125.45] helo=[10.0.0.18]) by auriate.fluffles.net with esmtpa (Exim 4.66 (FreeBSD)) (envelope-from ) id 1IEW6d-000BqF-W8; Fri, 27 Jul 2007 22:08:12 +0200 Message-ID: <46AA50B4.9080901@fluffles.net> Date: Fri, 27 Jul 2007 22:08:20 +0200 From: Fluffles User-Agent: Thunderbird 2.0.0.5 (X11/20070716) MIME-Version: 1.0 To: Dominic Bishop References: <20070727195742.231CF13C461@mx1.freebsd.org> In-Reply-To: <20070727195742.231CF13C461@mx1.freebsd.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: geom@FreeBSD.org Subject: Re: Increasing GELI performance X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Jul 2007 20:42:44 -0000 Dominic Bishop wrote: > Another problem I've found is that if I use a sector size for GELI > 8192 > bytes then I'm unable to newfs the encrypted partition afterwards, it fails > immediately with this error: > > newfs /dev/da0p1.eli > increasing block size from 16384 to fragment size (65536) > /dev/da0p1.eli: 62499.9MB (127999872 sectors) block size 65536, fragment > size 65536 > using 5 cylinder groups of 14514.56MB, 232233 blks, 58112 inodes. > newfs: can't read old UFS1 superblock: read error from block device: Invalid > argument > > The underlying device is readable/writeable however as dd can read/write to > it without any errors. > Newfs will use 512-byte sectors by default so if you're using an 8KB sector size you need: newfs -S 8192 /dev/da0p1.eli To view the sector size you can also use diskinfo -v . You can never write or read below the sector size (thats right, not even the filesystem can do that!) I can't help you with your GELI question. I'm assuming you run a quadcore 1.6GHz Xeon CPU? It should give you more performance than 50MB/s especially with 4 threads. On my Athlon 64 X2 3800+ (2x 2.0GHz 512KB) i got around 100 i believe. Do know that AMD processors perform relatively better in AES than Intel's line of CPUs, but with a quadcore i would have expected at least 160MB/s of thoughput. Maybe you should try geli on the raw device? Like: geli onetime da0 dd if=/dev/da0.eli of=/dev/null bs=1m count=1000 dd if=/dev/zero of=/dev/da0.eli bs=1m count=1000 It goes without saying that you should unmount and make sure no geom layer is using the da0 device. Good luck! - Veronica