From owner-freebsd-hackers@FreeBSD.ORG Sat Jul 12 19:06:41 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E6BAF1065676 for ; Sat, 12 Jul 2008 19:06:40 +0000 (UTC) (envelope-from tomrapier@mailvault.com) Received: from gateway.mailvault.com (213-239-214-176.clients.your-server.de [213.239.214.176]) by mx1.freebsd.org (Postfix) with ESMTP id 7DE4F8FC12 for ; Sat, 12 Jul 2008 19:06:40 +0000 (UTC) (envelope-from tomrapier@mailvault.com) Received: from mailvault.com (localhost [127.0.0.1]) by gateway.mailvault.com (Postfix) with ESMTP id 42684B64134 for ; Sat, 12 Jul 2008 19:51:09 +0100 (BST) Received: (qmail 32332 invoked from network); 12 Jul 2008 18:51:08 -0000 Received: from unknown (HELO ssl.mailvault.com) (10.0.2.100) by mx.mailvault.com with SMTP; 12 Jul 2008 18:51:08 -0000 Date: Sat, 12 Jul 2008 20:51:08 00200 (CEST) To: freebsd-hackers@freebsd.org From: tomrapier MIME-Version: 1.0 Content-Type: multipart/mixed; boundary = "=_c8ec552a44a8dc0c1002dc5f59af6fde" Message-Id: <20080712185109.42684B64134@gateway.mailvault.com> X-Mailman-Approved-At: Sat, 12 Jul 2008 19:27:48 +0000 Cc: patfbsd@davenulle.org Subject: Re: AMD Geode LX crypto accelerator (glxsb) - invalid engine "cryptodev" X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Jul 2008 19:06:41 -0000 This is a MIME encoded message. --=_c8ec552a44a8dc0c1002dc5f59af6fde Content-Type: text/plain Content-Transfer-Encoding: 7bit Hello, I'm having trouble with the OpenSSL benchmark. It isn't able to load cryptodev. Output attached. Any pointers? Thanks. - Tom --=_c8ec552a44a8dc0c1002dc5f59af6fde Content-Type: text/plain; name = "cryptodev.txt" Content-Transfer-Encoding: 7bit $ openssl speed -engine cryptodev -elapsed -evp aes-128-cbc aes-128-cbc invalid engine "cryptodev" 11286:error:25066067:DSO support routines:DLFCN_LOAD:could not load the shared library:/usr/src/secure/lib/libcrypto/../../../crypto/openssl/crypto/dso/dso_dlfcn.c:162:filename(/usr/lib/engines/libcryptodev.so): Cannot open "/usr/lib/engines/libcryptodev.so" 11286:error:25070067:DSO support routines:DSO_load:could not load the shared library:/usr/src/secure/lib/libcrypto/../../../crypto/openssl/crypto/dso/dso_lib.c:244: 11286:error:260B6084:engine routines:DYNAMIC_LOAD:dso not found:/usr/src/secure/lib/libcrypto/../../../crypto/openssl/crypto/engine/eng_dyn.c:450: 11286:error:2606A074:engine routines:ENGINE_by_id:no such engine:/usr/src/secure/lib/libcrypto/../../../crypto/openssl/crypto/engine/eng_list.c:415:id=cryptodev 11286:error:25066067:DSO support routines:DLFCN_LOAD:could not load the shared library:/usr/src/secure/lib/libcrypto/../../../crypto/openssl/crypto/dso/dso_dlfcn.c:162:filename(libcryptodev.so): Shared object "libcryptodev.so" not found, required by "openssl" 11286:error:25070067:DSO support routines:DSO_load:could not load the shared library:/usr/src/secure/lib/libcrypto/../../../crypto/openssl/crypto/dso/dso_lib.c:244: 11286:error:260B6084:engine routines:DYNAMIC_LOAD:dso not found:/usr/src/secure/lib/libcrypto/../../../crypto/openssl/crypto/engine/eng_dyn.c:450: You have chosen to measure elapsed time instead of user CPU time. To get the most accurate results, try to run this program when this computer is idle. Doing aes-128 cbc for 3s on 16 size blocks: 981606 aes-128 cbc's in 3.00s Doing aes-128 cbc for 3s on 64 size blocks: 258602 aes-128 cbc's in 3.00s Doing aes-128 cbc for 3s on 256 size blocks: 65471 aes-128 cbc's in 3.00s Doing aes-128 cbc for 3s on 1024 size blocks: 16451 aes-128 cbc's in 3.00s Doing aes-128 cbc for 3s on 8192 size blocks: 2058 aes-128 cbc's in 3.00s Doing aes-128-cbc for 3s on 16 size blocks: 913121 aes-128-cbc's in 3.00s Doing aes-128-cbc for 3s on 64 size blocks: 249883 aes-128-cbc's in 3.00s Doing aes-128-cbc for 3s on 256 size blocks: 64875 aes-128-cbc's in 3.00s Doing aes-128-cbc for 3s on 1024 size blocks: 16367 aes-128-cbc's in 3.00s Doing aes-128-cbc for 3s on 8192 size blocks: 2058 aes-128-cbc's in 3.00s OpenSSL 0.9.8e 23 Feb 2007 built on: Sun Feb 24 16:11:39 UTC 2008 options:bn(64,32) md2(int) rc4(idx,int) des(ptr,risc1,16,long) aes(partial) blowfish(idx) compiler: cc available timing options: USE_TOD HZ=128 [sysconf value] timing function used: gettimeofday The 'numbers' are in 1000s of bytes per second processed. type 16 bytes 64 bytes 256 bytes 1024 bytes 8192 bytes aes-128 cbc 5234.72k 5516.54k 5586.44k 5614.71k 5617.06k aes-128-cbc 4868.70k 5330.56k 5535.58k 5586.03k 5617.14k $ uname -a FreeBSD router.local 7.0-RELEASE-p2 FreeBSD 7.0-RELEASE-p2 #0: Wed Jun 18 07:33:20 UTC 2008 root@i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC i386 $ openssl engine (padlock) VIA PadLock (no-RNG, no-ACE) (dynamic) Dynamic engine loading support $ dmesg |grep glx glxsb0: mem 0xefff4000-0xefff7fff irq 9 at device 1.2 on pci0 $ kldstat Id Refs Address Size Name 1 6 0xc0400000 906578 kernel 2 1 0xc2553000 3000 pflog.ko 3 1 0xc2556000 33000 pf.ko 4 1 0xc2e07000 5000 glxsb.ko 5 1 0xc2e0c000 23000 crypto.ko 6 1 0xc2e2f000 a000 zlib.ko --=_c8ec552a44a8dc0c1002dc5f59af6fde--