Jump to content

Recommended Posts

Posted (edited)

Just got a ODroid M2 to play with an during initial benchmarking, noticed some weird results. I don't see an M2 specific forum, so @Werner, please move as necessary!

 

Anyway, always interested in crypto throughput, and ARM64 crypto extensions have always put up some good results. So, a little weird when I saw that AES XTS performance seems decent, but CBC seems awful?

 

user@odroidm2:~$ /sbin/cryptsetup benchmark
        aes-cbc        128b       178.5 MiB/s       162.7 MiB/s
        aes-cbc        256b       135.0 MiB/s       211.3 MiB/s
        aes-xts        256b      1399.5 MiB/s      1407.2 MiB/s
        aes-xts        512b      1186.7 MiB/s      1198.7 MiB/s

 

Checking /proc/crypto seems to indicate that rk_crypto2 is being used, so on a whim, I tried doing this:

 

user@odroidm2:~$ sudo rmmod rk_crypto2
[sudo] password for user: 
user@odroidm2:~$ /sbin/cryptsetup benchmark
        aes-cbc        128b       880.4 MiB/s      1722.3 MiB/s
        aes-cbc        256b       755.8 MiB/s      1247.9 MiB/s
        aes-xts        256b      1225.2 MiB/s      1422.5 MiB/s
        aes-xts        512b      1088.9 MiB/s      1123.7 MiB/s

 

Huh.

 

XTS speed is about the same, but CBC is an order of magnitude faster? Might not even be worth using it?

 

Anyway, before I go digging, just curious if anyone's seen this or can reproduce on a Rockchip other than an RK3588S2?

 

Logs from Armbian 26.2.1 (noble/current) -> https://paste.armbian.com/mudojesajo

Edited by tparys
Added logs

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines