I was trying to compare the 'openssl speed' results without and with Geode LX 
Security block but I see no acceleration after loading 
glxsb and cryptodev modules into kernel.

Before loading:

so5501a% kldstat
Id Refs Address    Size     Name
 1   50 0xc0400000 458a80   kernel
 2    1 0xc0859000 6c50     procfs.ko
 3    2 0xc0860000 6d80     pseudofs.ko
 4    1 0xc0867000 68c8     geom_md.ko
 5    1 0xc086e000 9b70     if_sis.ko
 6    3 0xc0878000 28400    miibus.ko
 7    1 0xc08a1000 a418     if_vr.ko
 8    1 0xc2e8c000 9000     tmpfs.ko

so5501a% openssl speed -elapsed aes-128-cbc
(..)
type             16 bytes     64 bytes    256 bytes   1024 bytes   8192 bytes
aes-128 cbc       5731.42k     5930.46k     6053.55k     6080.12k     6089.90k
so5501a%

And after loading:

so5501a% # kldload glxsb
in dmesg appears:
glxsb0: <AMD Geode LX Security Block (AES-128-CBC, RNG)> mem 
0xa0000000-0xa0003fff irq 10 at device 1.2 on pci0

so5501a% # kldload cryptodev
so5501a% kldstat
Id Refs Address    Size     Name
 1   58 0xc0400000 458a80   kernel
 2    1 0xc0859000 6c50     procfs.ko
 3    2 0xc0860000 6d80     pseudofs.ko
 4    1 0xc0867000 68c8     geom_md.ko
 5    1 0xc086e000 9b70     if_sis.ko
 6    3 0xc0878000 28400    miibus.ko
 7    1 0xc08a1000 a418     if_vr.ko
 8    1 0xc2e8c000 9000     tmpfs.ko
 9    1 0xc2ec9000 5000     glxsb.ko
10    2 0xc2ece000 23000    crypto.ko
11    2 0xc2ef2000 a000     zlib.ko
12    1 0xc2f04000 4000     cryptodev.ko
so5501a%
so5501a% openssl speed -engine cryptodev -elapsed aes-128-cbc
type             16 bytes     64 bytes    256 bytes   1024 bytes   8192 bytes
aes-128 cbc       5644.94k     5901.15k     6010.97k     6038.09k     6047.02k
so5501a%

It's even a little bit slower..

How to use LX Security Block?

-- 
Marek Salwerowicz



_______________________________________________
Soekris-tech mailing list
Soekris-tech@lists.soekris.com
http://lists.soekris.com/mailman/listinfo/soekris-tech

Reply via email to