Solved Cryptodev APU2C4

Hello,

I have two APU2C4, the first one has pfSense installed. When I run:
openssl speed -evp aes-128-cbc

From the APU2C4 with pfSense I get something like this:

Code:
Doing aes-128-cbc for 3s on 16 size blocks: 286363 aes-128-cbc's in 0.35s
Doing aes-128-cbc for 3s on 64 size blocks: 282276 aes-128-cbc's in 0.34s
Doing aes-128-cbc for 3s on 256 size blocks: 256849 aes-128-cbc's in 0.30s
Doing aes-128-cbc for 3s on 1024 size blocks: 192059 aes-128-cbc's in 0.21s
Doing aes-128-cbc for 3s on 8192 size blocks: 57891 aes-128-cbc's in 0.07s
OpenSSL 1.0.1s-freebsd  1 Mar 2016
built on: date not available
options:bn(64,64) rc4(8x,int) des(idx,cisc,16,int) aes(partial) idea(int) blowfish(idx)
compiler: clang
The 'numbers' are in 1000s of bytes per second processed.
type             16 bytes     64 bytes    256 bytes   1024 bytes   8192 bytes
aes-128-cbc      13032.70k    53776.86k   215805.85k   932353.97k  6744790.36k

However when I run from the APU2C4 with FreeBSD 11 I get something like this:

Code:
Doing aes-128-cbc for 3s on 16 size blocks: 23535630 aes-128-cbc's in 3.00s
Doing aes-128-cbc for 3s on 64 size blocks: 8890785 aes-128-cbc's in 3.13s
Doing aes-128-cbc for 3s on 256 size blocks: 2619513 aes-128-cbc's in 3.01s
Doing aes-128-cbc for 3s on 1024 size blocks: 730571 aes-128-cbc's in 3.17s
Doing aes-128-cbc for 3s on 8192 size blocks: 90537 aes-128-cbc's in 3.10s
OpenSSL 1.0.2j-freebsd  26 Sep 2016
built on: date not available
options:bn(64,64) rc4(8x,int) des(idx,cisc,16,int) aes(partial) idea(int) blowfish(idx)
compiler: clang
The 'numbers' are in 1000s of bytes per second processed.
type             16 bytes     64 bytes    256 bytes   1024 bytes   8192 bytes
aes-128-cbc     125523.36k   182083.28k   222951.17k   235855.67k   239130.79k

/dev/crypto is missing from the one running FreeBSD 11, I believe it is because of that. Is there any way I could load it?

Any help would be appreciated, thanks!
 
kldload cryptodev

Thanks, it worked!

You probably need to load aesni(4).

I've already tried that but there's no performance increase whatsoever

Now the output from the: openssl speed -evp aes-128-cbc

Code:
Doing aes-128-cbc for 3s on 16 size blocks: 286185 aes-128-cbc's in 0.41s
Doing aes-128-cbc for 3s on 64 size blocks: 290329 aes-128-cbc's in 0.41s
Doing aes-128-cbc for 3s on 256 size blocks: 259082 aes-128-cbc's in 0.27s
Doing aes-128-cbc for 3s on 1024 size blocks: 196642 aes-128-cbc's in 0.16s
Doing aes-128-cbc for 3s on 8192 size blocks: 62357 aes-128-cbc's in 0.09s
OpenSSL 1.0.2j-freebsd  26 Sep 2016
built on: date not available
options:bn(64,64) rc4(8x,int) des(idx,cisc,16,int) aes(partial) idea(int) blowfish(idx)
compiler: clang
The 'numbers' are in 1000s of bytes per second processed.
type             16 bytes     64 bytes    256 bytes   1024 bytes   8192 bytes
aes-128-cbc      11058.62k    44875.00k   242559.97k  1288713.01k  5944186.69k

Thanks for the help!
 
Back
Top