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.

[参考译文] AM3352:加密性能问题

Guru**** 2655965 points

Other Parts Discussed in Thread: AM3352, REMOTI

请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/835818/am3352-crypto-performance-issue

器件型号:AM3352

你(们)好,先生  

我们将 AM3352 600MHz 与 DDR3 400MHz 搭配使用。 和 SDK  04.03.00.05。

我们找到了下面的 Crypto 参考  

我们进行了测试、发现性能与上表有所不同。

下面是我们的测试报告。

time -v openssl speed -lapsed -evp AES-128-CBC
您已选择测量已用时间、而不是用户 CPU 时间。
在16个大小的块上执行 AES-128-CBC 3s:在3.00s 内执行187530 AES-128-CBC
在64个大小的块上执行 AES-128-CBC 3s:在3.00s 内执行169663 AES-128-CBC
在256个大小的块上执行 AES-128-CBC 3s:在3.00s 内执行25186 AES-128-CBC
在1024个大小的块上执行 AES-128-CBC 3s:20146在3.00s 内执行 AES-128-CBC
在8192个大小块上执行 AES-128-CBC 3s:在3.00s 内执行6860 AES-128-CBC
OpenSSL 1.0.2J 2016年9月26日
建立在:可重现的构建、日期未指定
选项:bn (64、32) RC4 (ptr、char) des (idx、CISC、16、long) AES (部分) Idea (int) blowfish (ptr)
编译器:arm-linux-gnueabihf-gcc -March =armv7-a -marm -mfpu=neon -mfloat-abi=hard --sysroot=/mnt/sdb1/jason_chou/ruth_pvcrlinux/build/tmp/sysroots/wistron-pvc -i. 一. -i./include -fpic -DOPENSSL_PIC -DOPENSSL_Threads -D_REentrant -DDSO_DLFCN -DHAVE_DLFCN_H -DL_ENDIHAAN -DTERMIO -ismnt/asm/sdb1/jASHO/Ruth_pvegraux/toolchain_ddsp -degra-dsp -dobrack-ds-uni_dsp -degra-rase-df -dsp -rase-degra-rack-ds-uni_dcs_uniev_deg-degrase-degrase-dcs_remoti_uni_dase-dase-dase-dase-dase-degrase-refix -rase-dobi_rase-dase-dcs_deg-degrase-dich-rase-dase-degrase-deg-rase-degrase-dase-dase-dase-dase-dase-dase-das /mnt/sdb1/jason_chou/ruth_pvcrlinux/build/tmp/sysroots/wistron-pvc=/mnt/sdb1/jason_chou/ruth_pvcrlinux/build/tmp/sysroots/x86_64-linux=/mnt/sdb1/jason_chou/ruth_pvcrlinux/build/tmp/work/armv7ahf-neon-linux-gnueabi/openssl/1.0.2j-r0.arago0=/usr/src/debug/openssl/1.0.2j-r0.arago0
"数字"以每秒处理的1000s 字节为单位。
类型16字节64字节256字节1024字节8192字节
AES-128-CBC 1000.16k 3619.48k 2149.21k 6876.50k 18732.37k
命令正在定时:"OpenSSL speed -elapsed -EVP AES-128-CBC"
用户时间(秒):0.23
系统时间(秒):7.88
该作业获得的 CPU 百分比:52%
已用时间(墙壁时钟)(h:mm:ss 或 m:ss):0m 15.43s
平均共享文本大小(KB):0
平均未共享数据大小(KB):0
平均堆栈大小(KB):0
平均总大小(KB):0
最大驻留集大小(KB):7696
平均驻留集大小(KB):0
主要(需要 I/O)页面故障:263
次要(恢复帧)页面错误:99
自愿上下文切换:52428
非自愿上下文切换:157925
交换:0
文件系统输入:0
文件系统输出:0
发送的套接字消息:0
接收的套接字消息:0
发送的信号:0
页大小(字节):4096
退出状态:0

请说明为什么性能如此不同   

BR

Yimin

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好、Yimin、

    您是否将 cpufreq 调节器设置为性能或用户空间? 默认值为 onDemand。

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    顺便说一下、您提到的 wiki 页面非常旧、它是指内核 v3.2。 因此、请比较具有内核 v4.19的 Processor SDK v6.0的性能编号:

    http://software-dl.ti.com/processor-sdk-linux/esd/docs/latest/linux/Release_Specific_Performance_Guide.html#crypto-driver

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    大家好,我没有听到您的反馈,我认为您能够解决您的问题。 如果不是、只需在下面发布回复(如果该线程由于超时而锁定、则创建新线程)。  谢谢。