jmandawg Posted July 15, 2018 Posted July 15, 2018 Hi all, I got a libre rk3327 board, and i'm tyring to test my crypto and i'm not getting anywhere near the results you guys are getting here Is there something special i need to do to enable the hardware crypto? Linux renegade 4.4.138-rk3328 #3 SMP Sun Jul 1 20:15:37 UTC 2018 aarch64 GNU/Linux OpenSSL 1.1.0f 25 May 2017 built on: reproducible build, date unspecified options:bn(64,64) rc4(char) des(int) aes(partial) blowfish(ptr) compiler: gcc -DDSO_DLFCN -DHAVE_DLFCN_H -DNDEBUG -DOPENSSL_THREADS -DOPENSSL_NO_STATIC_ENGINE -DOPENSSL_PIC -DOPENSSL_BN_ASM_MONT -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DVPAES_ASM -DECP_NISTZ256_ASM -DPOLY1305_ASM -DOPENSSLDIR="\"/usr/lib/ssl\"" -DENGINESDIR="\"/usr/lib/aarch64-linux-gnu/engines-1.1\"" The 'numbers' are in 1000s of bytes per second processed. type 16 bytes 64 bytes 256 bytes 1024 bytes 8192 bytes 16384 bytes aes-192 cbc 36539.19k 39338.69k 40346.11k 40604.67k 40645.97k 40621.40k aes-256 cbc 32540.46k 35086.57k 35856.98k 33921.02k 35092.24k 36104.87k aes-128-cbc 88314.51k 278811.82k 584844.37k 837859.67k 957298.01k 964192.94k Also i'm getting a bunch of these in the log (unrelated to the openssl test) possibly due to the USB 3.0 drive connected. 9.542005] dwmmc_rockchip ff500000.dwmmc: Unexpected interrupt latency [ 9.682999] dwmmc_rockchip ff500000.dwmmc: Unexpected interrupt latency [ 9.809006] dwmmc_rockchip ff500000.dwmmc: Unexpected interrupt latency [ 10.009009] dwmmc_rockchip ff500000.dwmmc: Unexpected interrupt latency [ 10.676004] dwmmc_rockchip ff500000.dwmmc: Unexpected interrupt latency [ 10.709000] dwmmc_rockchip ff500000.dwmmc: Unexpected interrupt latency [ 11.775018] dwmmc_rockchip ff500000.dwmmc: Unexpected interrupt latency [ 11.809028] dwmmc_rockchip ff500000.dwmmc: Unexpected interrupt latency [ 12.344005] dwmmc_rockchip ff500000.dwmmc: Unexpected interrupt latency Thanks for the help.
tkaiser Posted July 15, 2018 Posted July 15, 2018 cpufreq-set -g performance for i in 128 192 256 ; do openssl speed -elapsed -evp aes-${i}-cbc; done This (also 'OpenSSL 1.1.0f 25 May 2017' -- Debian Stretch) results in type 16 bytes 64 bytes 256 bytes 1024 bytes 8192 bytes 16384 bytes aes-128-cbc 95001.11k 300025.71k 628819.80k 900902.91k 1028759.55k 1039226.20k aes-192-cbc 90857.74k 269696.09k 520566.02k 699155.46k 775708.67k 780954.28k aes-256-cbc 88656.81k 251228.82k 456117.16k 587700.91k 640838.31k 644011.35k Now connecting an USB3 attached SSD and repeating: type 16 bytes 64 bytes 256 bytes 1024 bytes 8192 bytes 16384 bytes aes-128-cbc 95060.44k 299314.65k 628529.15k 900353.02k 1028920.66k 1039018.67k aes-192-cbc 90838.22k 269684.97k 520050.86k 699034.62k 776033.62k 780004.01k aes-256-cbc 88611.06k 251042.15k 456075.01k 587704.32k 640884.74k 644541.10k 'armbianmonitor -u' output: http://ix.io/1hh1 (no 'Unexpected interrupt latency' occurences). I power the Renegade in a sane way: 5V/4A PSU feeding 5V via GPIO header. @jmandawg how do you power the board? Using the crappy Micro USB connector?
jmandawg Posted July 15, 2018 Author Posted July 15, 2018 Yeah, i'm using a 5v 3A power supply connected to the crappy micro usb connector. Let me see if i can find something better and try again. That could also be causing the latency problem.
tkaiser Posted July 15, 2018 Posted July 15, 2018 22 minutes ago, jmandawg said: i'm using a 5v 3A power supply connected to the crappy micro usb connector. Let me see if i can find something better and try again. Usually with Micro USB the problem is between PSU and board. More than 99% of all Micro USB cables are simply insufficient and were not made to transport more than 500mA. Jean-Luc ran into similar problems when reviewing the board (though using the vendor's own PSU with fixed cable which should probably be ok even if Micro USB is only rated for 1800mA max which is a joke if you want to attach host powered USB3 disks). Further readings: https://www.cnx-software.com/2018/07/14/roc-rk3328-cc-review-fast-storage-power-supply/ https://forum.armbian.com/topic/4767-powering-through-micro-usb/ https://www.cnx-software.com/2017/04/27/selecting-a-micro-usb-cable-to-power-development-boards-or-charge-phones/ https://forum.armbian.com/topic/5864-librecomputer-renegade-rk3328/?do=findComment&comment=54881
Recommended Posts