Page 1 of 1

[Suggestion] Improved AES-NI support

Posted: 30 Jul 2014 09:45
by tron44
Hello everyone,

I'm using disk encyption with an AMD A4-5000 cpu with aes support in hardware.
I noticed that the encryption under Win7 SP1 mit TrueCrypt 7.1a (using AES) is way faster than under N4F, so I do same research.
In FreeBSD 10 the aesni module has been improved to use pipelining.

Would be nice to see this update in on of the next releases.

http://forums.freebsd.org/viewtopic.php ... es#p245898
https://wiki.freebsd.org/WhatsNew/FreeBSD10 [see Improved AES-NI support]

Re: [Suggestion] Improved AES-NI support

Posted: 17 Dec 2014 22:38
by ex0r
Hello!

I have the same problem and the same processor. Its a nice SOC for nas applications.
Without AES i reach nearly full gigabit speed (maximum speed equals max. hdd speed).
But with 128bit AES XTC and CBC only ca. 50MB/s read/write.


Specs:
Asrok QC5000-ITX/PH with AMD A4-5000 APU
8GB DDR3 1600Mhz Non ECC
Be quiet! System Power 7 300W

Update: FreeNas works fine! See: https://forums.freenas.org/index.php?th ... ost-161250

Re: [Suggestion] Improved AES-NI support

Posted: 31 Dec 2014 16:00
by noclaf
Thumbs up for AES-NI support! Only 68MB/s write with G2020 due to 100% CPU load. I do have 3570T @home, but no point until AES-NI is supported.

Re: [Suggestion] Improved AES-NI support

Posted: 06 Jan 2015 11:41
by daoyama
Did you try to load aesni.ko?

Under 9.3.0.2, you can load it from CLI.
# kldload aesni

Re: [Suggestion] Improved AES-NI support

Posted: 06 Jan 2015 15:34
by tron44
I think that the aesni.ko is loaded.
dmesg ouput:

Code: Select all

aesni0: <AES-CBC,AES-XTS> on motherboard
GEOM_ELI: Device ada0.eli created.
GEOM_ELI: Encryption: AES-CBC 128
GEOM_ELI:     Crypto: hardware