From owner-freebsd-stable@FreeBSD.ORG Sat Feb 21 12:31:35 2009 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 F17D01065670; Sat, 21 Feb 2009 12:31:35 +0000 (UTC) (envelope-from patfbsd@davenulle.org) Received: from smtp.lamaiziere.net (net.lamaiziere.net [91.121.44.19]) by mx1.freebsd.org (Postfix) with ESMTP id B04558FC08; Sat, 21 Feb 2009 12:31:35 +0000 (UTC) (envelope-from patfbsd@davenulle.org) Received: from baby-jane.lamaiziere.net (66.10.87-79.rev.gaoland.net [79.87.10.66]) by smtp.lamaiziere.net (Postfix) with ESMTPA id 008EF633301; Sat, 21 Feb 2009 13:31:33 +0100 (CET) Received: from baby-jane.lamaiziere.net (localhost [127.0.0.1]) by baby-jane.lamaiziere.net (Postfix) with ESMTP id 48857C3A4; Sat, 21 Feb 2009 13:31:35 +0100 (CET) Date: Sat, 21 Feb 2009 13:31:34 +0100 From: Patrick =?ISO-8859-15?Q?Lamaizi=E8re?= To: Lars Engels Message-ID: <20090221133134.231ade65@baby-jane.lamaiziere.net> In-Reply-To: <20090221112702.GW30761@e.0x20.net> References: <20090210134421.350f40b8@baby-jane.lamaiziere.net> <20090212213443.GM30761@e.0x20.net> <20090213154333.18f0bf13@baby-jane.lamaiziere.net> <20090213210516.3667403a@baby-jane.lamaiziere.net> <20090221112702.GW30761@e.0x20.net> Organization: /dave/nulle X-Mailer: Claws Mail 3.7.0 (GTK+ 2.14.7; i386-portbld-freebsd7.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-stable@freebsd.org Subject: Re: Backport of glxsb(4) to RELENG_6 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: Sat, 21 Feb 2009 12:31:36 -0000 Le Sat, 21 Feb 2009 12:27:02 +0100, Lars Engels : > > I've tested most of the driver and I think (hope) this is ok. > > > > http://user.lamaiziere.net/patrick/glxsb-6-130209.tar.gz > > > > Let me know how it works. > > Sorry for the late reply. I just tried the new version (thanks for > compiling, stas :) ) and it works now: > glxsb0: mem > 0xefff4000-0xefff7fff irq 9 at device 1.2 on pci0 > > moe:~# geli list > Geom name: mirror/dataraid1.eli > EncryptionAlgorithm: AES-CBC > KeyLength: 128 > Crypto: hardware > [...] > > But the speed is the same. I still only get ~1.2MB/s transfer speed > over the net. With my Soekris net5501, without the driver I've got around 3MB/s with sftp and around 5MB/s with the driver. On 7.X you need to patch openssl to make it use the crypto framework by default, don't know for 6.X > However, this doesn't seem to be related to geli. The cpu is pretty > much idling: I tested with geli (on an usb drive) and I didn't notice any improvement too. I think that the crypto stuff is not the limiting factor but the drive's speed. Anyway the driver should save some load on the CPU. > last pid: 2769; load averages: 0.06, 0.10, 0.08 up 0+00:18:04 > 12:23:07 39 processes: 1 running, 38 sleeping > CPU: 0.8% user, 0.0% nice, 16.7% system, 9.3% interrupt, 73.2% idle > Mem: 25M Active, 100M Inact, 35M Wired, 6192K Cache, 27M Buf, 588K > Free You can see the driver's CPU usage with top S H (the glxsb0 taskq entry) > Anyways, thank you for your work on backporting the driver, > Patrick! :) Enjoy :) Regards.