<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<font face="Helvetica, Arial, sans-serif">Hi Punky,<br>
<br>
I finally got voyage lenny installed, and I wanted to do some tests
with ocf openssl, but I cannot get results like you.<br>
<br>
If I just try your openssl speed command with the default openssl from
voyage 0.6 (which I think should include the ocf patch according to the
changelog), I get this:<br>
</font><tt>[17:18][root@muizenhol:/home/tom]# openssl speed -evp
aes-128-cbc -engine cryptodev<br>
invalid engine "cryptodev"<br>
31330:error:25066067:DSO support routines:DLFCN_LOAD:could not load the
shared
library:dso_dlfcn.c:162:filename(/usr/lib/ssl/engines/libcryptodev.so):
/usr/lib/ssl/engines/libcryptodev.so: cannot open shared object file:
No such file or directory<br>
31330:error:25070067:DSO support routines:DSO_load:could not load the
shared library:dso_lib.c:244:<br>
31330:error:260B6084:engine routines:DYNAMIC_LOAD:dso not
found:eng_dyn.c:450:<br>
31330:error:2606A074:engine routines:ENGINE_by_id:no such
engine:eng_list.c:415:id=cryptodev<br>
31330:error:25066067:DSO support routines:DLFCN_LOAD:could not load the
shared library:dso_dlfcn.c:162:filename(libcryptodev.so):
libcryptodev.so: cannot open shared object file: No such file or
directory<br>
31330:error:25070067:DSO support routines:DSO_load:could not load the
shared library:dso_lib.c:244:<br>
31330:error:260B6084:engine routines:DYNAMIC_LOAD:dso not
found:eng_dyn.c:450:<br>
Doing aes-128-cbc for 3s on 16 size blocks: 1013806 aes-128-cbc's in
2.94s<br>
Doing aes-128-cbc for 3s on 64 size blocks: 308130 aes-128-cbc's in
2.77s<br>
Doing aes-128-cbc for 3s on 256 size blocks: 82107 aes-128-cbc's in
2.75s<br>
Doing aes-128-cbc for 3s on 1024 size blocks: 18259 aes-128-cbc's in
2.40s<br>
Doing aes-128-cbc for 3s on 8192 size blocks: 2413 aes-128-cbc's in
2.52s<br>
OpenSSL 0.9.8g 19 Oct 2007<br>
built on: Wed Jan 7 17:54:54 UTC 2009<br>
options:bn(64,32) md2(int) rc4(idx,int) des(ptr,risc1,16,long)
aes(partial) blowfish(idx) <br>
compiler: gcc -fPIC -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT
-DDSO_DLFCN -DHAVE_DLFCN_H -DL_ENDIAN -DTERMIO -O3 -march=i586
-Wa,--noexecstack -g -Wall -DOPENSSL_BN_ASM_PART_WORDS
-DOPENSSL_IA32_SSE2 -DSHA1_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM<br>
available timing options: TIMES TIMEB HZ=100 [sysconf value]<br>
timing function used: times<br>
The 'numbers' are in 1000s of bytes per second processed.<br>
type 16 bytes 64 bytes 256 bytes 1024 bytes 8192
bytes<br>
aes-128-cbc 5517.31k 7119.25k 7643.42k 7790.51k
7844.17k</tt><font face="Helvetica, Arial, sans-serif"><br>
<br>
</font>If I try then to install the ocf patched version of openssl and
libssl from <a class="moz-txt-link-freetext"
href="http://ch.voyage.hk/dists/0.6/openssl/">http://ch.voyage.hk/dists/0.6/openssl/</a><br>
<tt>[17:15][root@muizenhol:/home/tom]# openssl speed -evp aes-128-cbc
-engine cryptodev<br>
engine "cryptodev" set.<br>
Doing aes-128-cbc for 3s on 16 size blocks: 1010727 aes-128-cbc's in
2.93s<br>
Doing aes-128-cbc for 3s on 64 size blocks: 318572 aes-128-cbc's in
2.87s<br>
Doing aes-128-cbc for 3s on 256 size blocks: 86528 aes-128-cbc's in
2.89s<br>
Doing aes-128-cbc for 3s on 1024 size blocks: 18738 aes-128-cbc's in
2.46s<br>
Doing aes-128-cbc for 3s on 2048 size blocks: 9412 aes-128-cbc's in
2.45s<br>
OpenSSL 0.9.8g 19 Oct 2007<br>
built on: Thu Nov 27 01:34:17 HKT 2008<br>
options:bn(64,32) md2(int) rc4(idx,int) des(ptr,risc1,16,long)
aes(partial) blowfish(idx) <br>
compiler: gcc -fPIC -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT
-DDSO_DLFCN -DHAVE_DLFCN_H -DHAVE_CRYPTODEV -DUSE_CRYPTODEV_DIGESTS
-DL_ENDIAN -DTERMIO -O3 -march=i586 -Wa,--noexecstack -g -Wall
-DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 -DSHA1_ASM -DMD5_ASM
-DRMD160_ASM -DAES_ASM<br>
available timing options: TIMES TIMEB HZ=100 [sysconf value]<br>
timing function used: times<br>
The 'numbers' are in 1000s of bytes per second processed.<br>
type 16 bytes 64 bytes 256 bytes 1024 bytes 2048
bytes<br>
aes-128-cbc 5519.33k 7104.04k 7664.76k 7799.88k
7867.66k</tt><br>
<br>
So no more errors, but no better speed either. I'm using an ALIX1C<br>
Thus my questions:<br>
1) Is the default openssl version in voyage linux already patched with
the ocf patch?<br>
2) What else do I need to get better speeds? Do I need to recompile my
kernel for geode?<br>
<br>
Thanks and kind regards,<br>
Tom<br>
<br>
----- Original Message -----<br>
From: Kim-man 'Punky' TSE<br>
Time: 01-12-08 07:24
<blockquote cite="mid:4933831D.1010200@punknix.com" type="cite">Hi all,
<br>
<br>
I have included ocf patch to 2.6.26 voyage kernel and rebuild libssl
and openssh package. Voyage lenny now includes ocf enabled kernel and
libssl.
<br>
<br>
To test, you need to install ocf-enabled openssh, which could be found
in: <a class="moz-txt-link-freetext" href="http://www.voyage.hk/dists/experimental/openssl/">http://www.voyage.hk/dists/experimental/openssl/</a>
<br>
<br>
Here are the test result on ALIX1C.
==========================================================
<br>
voyage:~# openssl speed -evp aes-128-cbc -engine cryptodev
<br>
engine "cryptodev" set.
<br>
Doing aes-128-cbc for 3s on 16 size blocks: 171575 aes-128-cbc's in
0.10s
<br>
Doing aes-128-cbc for 3s on 64 size blocks: 161556 aes-128-cbc's in
0.18s
<br>
Doing aes-128-cbc for 3s on 256 size blocks: 133868 aes-128-cbc's in
0.11s
<br>
Doing aes-128-cbc for 3s on 1024 size blocks: 78685 aes-128-cbc's in
0.07s
<br>
Doing aes-128-cbc for 3s on 2048 size blocks: 50938 aes-128-cbc's in
0.05s
<br>
OpenSSL 0.9.8g 19 Oct 2007
<br>
built on: Thu Nov 27 01:34:17 HKT 2008
<br>
options:bn(64,32) md2(int) rc4(idx,int) des(ptr,risc1,16,long)
aes(partial) blo
<br>
compiler: gcc -fPIC -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT
-DDSO_DMavailable timing options: TIMES TIMEB HZ=100 [sysconf value]
<br>
timing function used: times
<br>
The 'numbers' are in 1000s of bytes per second processed.
<br>
type 16 bytes 64 bytes 256 bytes 1024 bytes 2048
bytes
<br>
aes-128-cbc 27452.00k 57442.13k 311547.35k 1151049.14k
2086420.48k
<br>
==========================================================
<br>
<br>
However, I cannot get the same result in ALIX3C. <br>
Regards,
<br>
Punky
<br>
<br>
_______________________________________________
<br>
Voyage-linux mailing list
<br>
<a class="moz-txt-link-abbreviated" href="mailto:Voyage-linux@list.voyage.hk">Voyage-linux@list.voyage.hk</a>
<br>
<a class="moz-txt-link-freetext" href="http://list.voyage.hk/mailman/listinfo/voyage-linux">http://list.voyage.hk/mailman/listinfo/voyage-linux</a>
<br>
</blockquote>
</body>
</html>