1、CPU及内存
代码: 全选
cpu0: AMD Athlon(tm) 64 X2 Dual Core Processor 3600+ ("AuthenticAMD" 686-class, 512KB L2 cache) 1.91 GHz
cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW,SSE3,CX16,LAHF,SVM
real mem = 1006104576 (959MB)
avail mem = 978841600 (933MB)
代码: 全选
ubsec0 at pci1 dev 8 function 0 "Broadcom 5823" rev 0x01: 3DES MD5 SHA1 AES RNG PK, apic 2 int 7
1、先看看当前SSL引擎
代码: 全选
# openssl engine
(dynamic) Dynamic engine loading support
代码: 全选
# sysctl kern.usercrypto=1
kern.usercrypto: 0 -> 1
# openssl engine
(cryptodev) BSD cryptodev engine
(dynamic) Dynamic engine loading support
代码: 全选
# openssl speed aes-256-cbc
Doing aes-256 cbc for 3s on 16 size blocks: 5271231 aes-256 cbc's in 3.01s
Doing aes-256 cbc for 3s on 64 size blocks: 1404874 aes-256 cbc's in 3.01s
Doing aes-256 cbc for 3s on 256 size blocks: 358395 aes-256 cbc's in 3.01s
Doing aes-256 cbc for 3s on 1024 size blocks: 229585 aes-256 cbc's in 3.01s
Doing aes-256 cbc for 3s on 8192 size blocks: 28984 aes-256 cbc's in 3.01s
OpenSSL 1.0.0f 4 Jan 2012
built on: date not available
options:bn(64,32) rc4(4x,int) des(ptr,risc1,16,long) aes(partial) blowfish(idx)
compiler: information not available
The 'numbers' are in 1000s of bytes per second processed.
type 16 bytes 64 bytes 256 bytes 1024 bytes 8192 bytes
aes-256 cbc 28019.83k 29871.08k 30481.44k 78104.66k 78882.70k
4、用硬件加速的情况
代码: 全选
# openssl speed -evp aes-256-cbc
Doing aes-256-cbc for 3s on 16 size blocks: 176739 aes-256-cbc's in 0.05s
Doing aes-256-cbc for 3s on 64 size blocks: 165720 aes-256-cbc's in 0.06s
Doing aes-256-cbc for 3s on 256 size blocks: 126129 aes-256-cbc's in 0.01s
Doing aes-256-cbc for 3s on 1024 size blocks: 62139 aes-256-cbc's in 0.02s
Doing aes-256-cbc for 3s on 8192 size blocks: 10995 aes-256-cbc's in 0.00s
OpenSSL 1.0.0f 4 Jan 2012
built on: date not available
options:bn(64,32) rc4(4x,int) des(ptr,risc1,16,long) aes(partial) blowfish(idx)
compiler: information not available
The 'numbers' are in 1000s of bytes per second processed.
type 16 bytes 64 bytes 256 bytes 1024 bytes 8192 bytes
aes-256-cbc 56556.48k 176768.00k 3228902.40k 3181516.80k infk
5、其它
唯一的缺点就是测试时,有时数值没有,像上面就是一个infK,这块卡是PCI64的卡,我现在是插在PCI32上,不知道是不是这个原因。
以后就是怎么应用了,请各位多给点案例及配置什么的,谢谢了。