lanefu changed the topic of #armbian-rockchip to: Armbian - Linux for ARM development boards | Rockchip SoC | www.armbian.com | This channel is relayed to the equivalent Discord channel | this channel is logged
DC-IRC has quit [Remote host closed the connection]
DC-IRC has joined #armbian-rockchip
<DC-IRC> [Discord] <narga_64> If you are using NFS for network storage, but wished it was block storage instead of file based network storage, check out NVMe over TCP 😄 https://github.com/armbian/build/pull/6368
<DC-IRC> [Discord] <narga_64> I learned about it a while ago, fiddled with it and tried it out. I really like it so far!
<DC-IRC> [Discord] <narga_64> Especially since most new SBCs have NVMe slots anyway. And 2.5G ethernet.
<DC-IRC> [Discord] <mecoblock> Such a cool idea for the CM3588 NAS. Do you know if there's MacOS / Windows support? Is it possible for multiple Endpoints to use the block device simultaneously?
<DC-IRC> [Discord] <mecoblock> Currently I have a RK3568 based 2.5GBe NAS with SMB for Windows/MacOS and NFS to my Rock5B which does hw accel. Jellyfin. It works solid but JF over NFS (while better as if over smb) still struggles with 10-15 sec load times on >50GB movies
<motiejus> anyone got hardware crypto offload to work with rk3588? the highest I had was ~80MB/s on cbc-aes-256 with this patch on collabora kernel: https://lore.kernel.org/linux-arm-kernel/20231107155532.3747113-1-clabbe@baylibre.com/#r
<motiejus> the absolute highest "supported by cryptsetup" was 160MB/s with xchacha20,aes-adiantum, which is not even HW accelerated
<DC-IRC> [Discord] <narga_64> Yeah, the CM3588 NAS is perfect for this 😄
<DC-IRC> [Discord] <narga_64> I didn't find anything for MacOS. On Windows you can use WSL2 to connect to a NVMe target. Windows native I only found this non-foss software: <https://www.starwindsoftware.com/starwind-nvme-of-initiator#download> (haven't tried it though)
<DC-IRC> [Discord] <narga_64> And yes, NVMe-oF enables simultaneous access from multiple hosts 👍
<DC-IRC> [Discord] <narga_64> You could still use SMB and NVMe over TCP simultaneously though. When I did some benchmarks, I had an NFS export and an NVMe export at the same time. This may work for your Rock5B, unless the speed of your network/ethernet or your NVMe SSD is the bottleneck
<DC-IRC> [Discord] <narga_64> @motiejus I benchmarked rk3588 crypto with phoronix test suite, using OpenSSL 3.1 with algorithm SHA256. I got a result of around 3200M, which is 3.2 Gigabytes/s.
<DC-IRC> [Discord] <narga_64> I believe this used the hardware crypto module.
<DC-IRC> [Discord] <narga_64> If you like, you can run this test too and compare the numbers.
<DC-IRC> [Discord] <narga_64> *this was using legacy kernel 5.10
<motiejus> thanks. vendor kernel I suppose. would you mind running `cryptsetup benchmark` and paste the numbers somewhere?
<DC-IRC> [Discord] <narga_64> I sent a picture, can you see it over at irc?
<DC-IRC> [Discord] <narga_64> Highest is aes-xts with 1469 MiB/s
<DC-IRC> [Discord] <narga_64> With 256b key
<motiejus> I can see it, thanks! I loaded armbian with 5.10 on mine (orangepi5+) and here it is: https://paste.mozilla.org/64RrwTvR
<motiejus> narga_64: which device is it?
<DC-IRC> [Discord] <narga_64> Friendlyelec CM3588 NAS
<DC-IRC> [Discord] <narga_64> But yeah, your performance seems not good. Maybe crypto is not activated in the device tree (dts file) of OrangePi 5
<DC-IRC> [Discord] <narga_64> I did a command a few weeks ago where I could see which modules were used for crypto, to check if it was using the hardware acceleration. But I don't remember the command
<DC-IRC> [Discord] <narga_64> Ah! Fortunately I documented it 🤓
<DC-IRC> [Discord] <narga_64> Use `cat /proc/crypto` to check.
<DC-IRC> [Discord] <efectn> There should be some debug infortmations on dmesg output
<DC-IRC> [Discord] <efectn> There should be some debug infortmations on dmesg output about rk2-crypto drivrr
<DC-IRC> [Discord] <narga_64> Before I activated crypto in dts, driver for RSA was `rsa-generic`. After, it used `rsa-rk`
<motiejus> `/proc/crypto` shows a bunch of `-rk2` drivers. Sec.
<motiejus> note `ecb-aes-rk2` driver
<DC-IRC> [Discord] <narga_64> I have no idea what *-rk2 drivers are. Mine uses `ebc-aes-rk`.