Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Poor AES performance with rk_crypto2

Featured Replies

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

Solved by Werner

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...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.