On Thu, Jun 08, 2006 at 05:13:40PM -0600, Breen Ouellette wrote:
Or does it make more sense to shoot for a
total solution like the VIA C3?
the aes is fast:
---
$ dmesg | grep cpu
cpu0: VIA Nehemiah (CentaurHauls 686-class) 1 GHz
cpu0: FPU,V86,DE,PSE,TSC,MSR,APIC,SEP,MTRR,PGE,CMOV,PAT,MMX,FXSR,SSE
cpu0: RNG AES
cpu0 at mainbus0
$ openssl speed -evp aes-256-cbc -elapsed -multi 64 21 | tail -n 1
(null) 36356.44k 144121.60k 376855.43k 567238.49k 1005003.61k
$ openssl speed -evp aes-256-cbc -elapsed 21 | tail -n 1
aes-256-cbc 27868.02k 102439.00k 248141.83k 396093.64k 470116.18k
$ sudo sysctl -w kern.usercrypto=0
kern.usercrypto: 1 - 0
$ openssl speed -evp aes-256-cbc -elapsed -multi 64 21 | tail -n 1
(null) 10532.68k11675.81k12186.78k12510.61k13991.07k
$ openssl speed -evp aes-256-cbc -elapsed 21 | tail -n 1
aes-256-cbc 7581.06k 8303.45k 8697.99k 8667.23k 8803.77k
---
vs
---
$ dmesg | grep cpu
cpu0: AMD Athlon(tm) MP 2800+ (AuthenticAMD 686-class, 512KB L2 cache) 2.14
GHz
cpu0:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE
cpu0 at mainbus0: apid 1 (boot processor)
cpu0: apic clock running at 266 MHz
cpu1 at mainbus0: apid 0 (application processor)
cpu1: AMD Athlon(tm) MP 2800+ (AuthenticAMD 686-class, 512KB L2 cache) 2.14
GHz
cpu1:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE
$ openssl speed -evp aes-256-cbc -elapsed -multi 64 21 | tail -n 1
(null) 104813.32k 139692.08k 142233.86k 149469.42k 257132.02k
$ openssl speed -evp aes-256-cbc -elapsed 21 | tail -n 1
aes-256-cbc 46059.31k53584.04k56047.45k56841.01k56656.38k
---
to be fair, the athlon also rocks some ass if i put the vpn1401 in
it, but that's on loan.
--
jared
[ openbsd 3.9-current GENERIC ( may 1 ) // i386 ]