Backport of glxsb(4) to RELENG_6

Patrick Lamaizière patfbsd at davenulle.org
Sat Feb 21 04:31:36 PST 2009


Le Sat, 21 Feb 2009 12:27:02 +0100,
Lars Engels <lme at FreeBSD.org>:

> > 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: <AMD Geode LX Security Block (AES-128-CBC, RNG)> 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.


More information about the freebsd-stable mailing list