This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
AM64x 处理器系列包括加密算法的加速,包括专用安全加速器和 ARMv8架构引入的加密内嵌臂。 Sitara 处理器 SDK 包括为软件使用加速提供标准化界面的 openssl。 使用 EVP 库( https://www.openssl.org/docs/man1.1.1/man7/evp.html )可以获得最佳性能。 例如,对于 AES-128-GCM,您可以使用以下命令测量性能。 无论如何实施卸载,均可使用已用选项来测量实时已用时间,而不是处理器时间,以便进行更简单的比较。
openssl speed -elapsed -evp aes-128-gcm
这将在16到16384字节的数据包大小之间运行单个线程,并以千字节/秒为单位打印性能。 要测量 AM64x 的最大吞吐量,您可以运行:
openssl speed -elapsed -evp aes-128-gcm -multi 2
要并行创建两个线程,Linux 将在两个 A53内核上进行调度,并报告吞吐量之和。 例如,对于1024字节数据包,结果类似于755560.79k [字节]。 大约为6Gbit/s。
同样,您可以使用以下方法来衡量公钥性能:
openssl speed -elapsed ecdsa -multi 2
要估计更复杂的用例,您可以运行另一个基准,如高优先级的 iper3 (例如 ,chrt 9 iper3 -u -t 0 -b 100m -c 192.168.1.99) 并与 openssl 命令并行运行,以测量在网络流量的同时可以运行多少加密。
佩卡