Re: AES NI

2012-07-21 Thread Mihai Donțu
On Fri, 20 Jul 2012 18:19:37 +0200 (CEST) Wojciech Puchar wrote:
 am i doing something wrong? i have processor with AES-NI support.
 
 I've seen a lot of tests showing AES encryption performance to be in
 order of 1GB/s or more.
 

ignore its GNU/Linux orientation and go for the numbers:
http://www.phoronix.com/scan.php?page=articleitem=ubuntu_aesni_intel

-- 
Mihai Donțu
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: AES NI

2012-07-21 Thread Wojciech Puchar




ignore its GNU/Linux orientation and go for the numbers:
http://www.phoronix.com/scan.php?page=articleitem=ubuntu_aesni_intel


seems just like popular sites are providing strange untrue data. site 
says 2-3 times improvement at most, exactly what i found.




--
Mihai Don?u
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


AES NI

2012-07-20 Thread Wojciech Puchar

am i doing something wrong? i have processor with AES-NI support.

I've seen a lot of tests showing AES encryption performance to be in order 
of 1GB/s or more.


actual

#mdconfig -a malloc -s2g
#geli init -s 4096 /dev/md0
#geli attach /dev/md0
#dd if=/dev/zero of=/dev/md0.eli
dd: /dev/md0.eli: short write on character device
dd: /dev/md0.eli: end of device
32768+0 records in
32767+1 records out
2147479552 bytes transferred in 14.199564 secs (151235598 bytes/sec)
#dd if=/dev/md0.eli of=/dev/zero bs=64k
32767+1 records in
32767+1 records out
2147479552 bytes transferred in 13.201660 secs (162667389 bytes/sec)


so 150-160MB/s

still faster than encryption without AES-NI but quite a slow.

data from kernel

CPU: Intel(R) Xeon(R) CPU E31220 @ 3.10GHz (3100.03-MHz K8-class CPU)
  Origin = GenuineIntel  Id = 0x206a7  Family = 6  Model = 2a  Stepping = 7
  
Features=0xbfebfbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE
  
Features2=0x17bae3ffSSE3,PCLMULQDQ,DTES64,MON,DS_CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,TSCDLT,AESNI,XSAVE,AVX
  AMD Features=0x28100800SYSCALL,NX,RDTSCP,LM
  AMD Features2=0x1LAHF
  TSC: P-state invariant
aesni0: AES-CBC,AES-XTS on motherboard
GEOM_ELI: Encryption: AES-XTS 128

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org