LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-01-2014, 12:18 PM   #1
psycroptic
Member
 
Registered: Aug 2011
Location: USA
Distribution: ArchLinux - 3.0 kernel
Posts: 342

Rep: Reputation: Disabled
openssl performance on Alix 2d2 board - only 8-10mbps?


just fooling around with this board, running ARch linux on it. The board has a crypto accelerator in the form of the Geode AES engine, which should AFAIK be used by openssl. However, it appears it's not using it. Right now, i'm averaging about 8-10 megs of performance, which is pretty bad, even if the main CPU is 500mhz... Digging around places tells me that openssl needs to be compiled with "cryptodev" support, which it looks like mine is not:

Code:
[root@ ]# openssl speed -engine cryptodev -evp aes-128-cbc
invalid engine "cryptodev"
3073488572:error:25066067:DSO support routines:DLFCN_LOAD:could not load the shared library:dso_dlfcn.c:187:filename(/usr/lib/engines/libcryptodev.so): /usr/lib/engines/libcryptodev.so: cannot open shared object file: No such file or directory
3073488572:error:25070067:DSO support routines:DSO_load:could not load the shared library:dso_lib.c:244:
3073488572:error:260B6084:engine routines:DYNAMIC_LOAD:dso not found:eng_dyn.c:450:
3073488572:error:2606A074:engine routines:ENGINE_by_id:no such engine:eng_list.c:417:id=cryptodev
3073488572:error:25066067:DSO support routines:DLFCN_LOAD:could not load the shared library:dso_dlfcn.c:187:filename(libcryptodev.so): libcryptodev.so: cannot open shared object file: No such file or directory
3073488572:error:25070067:DSO support routines:DSO_load:could not load the shared library:dso_lib.c:244:
3073488572:error:260B6084:engine routines:DYNAMIC_LOAD:dso not found:eng_dyn.c:450:
Doing aes-128-cbc for 3s on 16 size blocks: 674597 aes-128-cbc's in 3.00s
Doing aes-128-cbc for 3s on 64 size blocks: 184185 aes-128-cbc's in 3.01s
Doing aes-128-cbc for 3s on 256 size blocks: 47251 aes-128-cbc's in 3.00s
Doing aes-128-cbc for 3s on 1024 size blocks: 23926 aes-128-cbc's in 3.01s
Doing aes-128-cbc for 3s on 8192 size blocks: 3003 aes-128-cbc's in 3.00s
OpenSSL 1.0.1f 6 Jan 2014
built on: Mon Jan  6 21:28:15 CET 2014
options:bn(64,32) rc4(4x,int) des(ptr,risc1,16,long) aes(partial) idea(int) blowfish(idx)
compiler: gcc -fPIC -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -Wa,--noexecstack -march=i686 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -DL_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -Wall -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM -DVPAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM
The 'numbers' are in 1000s of bytes per second processed.
type             16 bytes     64 bytes    256 bytes   1024 bytes   8192 bytes
aes-128-cbc       3597.85k     3916.23k     4032.09k     8139.61k     8200.19k
I guess i need to recompile openssl then? Or should i look elsewhere?
 
Old 02-15-2014, 05:37 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,390
Blog Entries: 55

Rep: Reputation: 3563Reputation: 3563Reputation: 3563Reputation: 3563Reputation: 3563Reputation: 3563Reputation: 3563Reputation: 3563Reputation: 3563Reputation: 3563Reputation: 3563
Seems you don't have -DHAVE_CRYPTODEV, so yes, apparently you need to ./configure "--with-cryptodev".
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Broadcom PCI Wlan card on Alix board lopster Linux - Networking 1 11-20-2010 09:16 AM
Voyage Linux on Alix.2D2 board nydiow Linux - Embedded & Single-board computer 1 11-12-2010 12:38 PM
Voyage Linux 0.6.5 on Alix 2d3 board - a few questions yesyes Linux - Distributions 2 07-18-2010 07:29 AM
poor performance on ata (native sata board) atom Linux - Hardware 6 10-07-2005 02:10 AM
Linux compatible performance AMD board? Scruff Linux - Hardware 3 09-21-2003 02:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:05 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration