CAAM: AES results after applying new patches.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

CAAM: AES results after applying new patches.

951 Views
rashmi
Contributor III

Hi Yuri,

For my SR 1-1227391051, I have received new patches to improve the CAAM performance. But We do not find any significant changes in the CAAM's performance on i.MX6Q SABRE board after applying new patches. Below are the results of performing AES before and after applying the patches using openssl with AF_ALG user interface.

Could you suggest on improving CAAM's performance?

CAAM ENCRYPTION:


Before Applying patches: CAAM ENCRYPTION

root@imx6qsabrelite:~# openssl speed -evp aes-256-cbc -engine af_alg

engine "af_alg" set.

Doing aes-256-cbc for 3s on 16 size blocks: 2914 aes-256-cbc's in 0.00s

Doing aes-256-cbc for 3s on 64 size blocks: 2919 aes-256-cbc's in 0.01s

Doing aes-256-cbc for 3s on 256 size blocks: 2927 aes-256-cbc's in 0.00s

Doing aes-256-cbc for 3s on 1024 size blocks: 2774 aes-256-cbc's in 0.01s

Doing aes-256-cbc for 3s on 8192 size blocks: 2134 aes-256-cbc's in 0.00s

OpenSSL 1.0.1e 11 Feb 2013

Applied patches: CAAM ENCRYPTION

root@imx6qsabrelite:~# openssl speed -evp aes-256-cbc -engine af_alg

engine "af_alg" set.

Doing aes-256-cbc for 3s on 16 size blocks: 2842 aes-256-cbc's in 0.00s

Doing aes-256-cbc for 3s on 64 size blocks: 2833 aes-256-cbc's in 0.01s

Doing aes-256-cbc for 3s on 256 size blocks: 2801 aes-256-cbc's in 0.01s

Doing aes-256-cbc for 3s on 1024 size blocks: 2647 aes-256-cbc's in 0.01s

Doing aes-256-cbc for 3s on 8192 size blocks: 1916 aes-256-cbc's in 0.00s

Thanks,

Rashmi.

0 Kudos
3 Replies

590 Views
terateller
Contributor II

Hi Rashmi,

were the tests above performed on the LTIB kernel 3.0.35?

Thanks,

Tera

0 Kudos

590 Views
Yuri
NXP Employee
NXP Employee

What are results of "openssl speed for aes-256-cbc" for software cryptodev, when CAAM is disabled  ?

0 Kudos

590 Views
zaheerm
Contributor I

Hi Yuri,

We ran the openssl speed tests, by disabling the CAAM module (moving the openssl.cnf file from /usr/lib/ssl/" directory, results below for Linux 3.0.35:

root@imx6qsabrelite:~# openssl speed -evp aes-256-cbc              

Doing aes-256-cbc for 3s on 16 size blocks: 3504869 aes-256-cbc's in 3.00s

Doing aes-256-cbc for 3s on 64 size blocks: 949396 aes-256-cbc's in 2.99s

Doing aes-256-cbc for 3s on 256 size blocks: 242974 aes-256-cbc's in 3.00s

Doing aes-256-cbc for 3s on 1024 size blocks: 61107 aes-256-cbc's in 3.00s

Doing aes-256-cbc for 3s on 8192 size blocks: 7650 aes-256-cbc's in 3.00s


We tried the openssl with Linux 3.10.9-alpha kernel and below are the results:

root@imx6qsabrelite:~# openssl speed -evp aes-256-cbc -engine af_alg

engine "af_alg" set.

Doing aes-256-cbc for 3s on 16 size blocks: 40032 aes-256-cbc's in 0.05s

Doing aes-256-cbc for 3s on 64 size blocks: 36211 aes-256-cbc's in 0.11s

Doing aes-256-cbc for 3s on 256 size blocks: 33732 aes-256-cbc's in 0.08s

Doing aes-256-cbc for 3s on 1024 size blocks: 23217 aes-256-cbc's in 0.04s

Doing aes-256-cbc for 3s on 8192 size blocks: 6816 aes-256-cbc's in 0.00s


We see around 3x improvements as compared to the 3.0.35 kernel, when the CAAM is processing the 8K size blocks.

However we see some crashes when we try to run multiple instance of encryption.

Regards,

Zaheer.

0 Kudos