04-20-2021 12:31 PM
Does anybody know the bottle neck for sftp to an MPSoC / RFSoC? I get about 14-15 MB/sec over a 1G interface to a RAMDISK.
Is there some secret setting to speed this up?
For comparison, for PC to PC I get about 54 MB/sec on the same 1G internal network.
04-21-2021 05:58 AM
With the caveat that I don't have MPSoC/RFSoc, only older Zynq-7000 devices: you are probably seeing limits of CPU doing the encryption/decryption on each packet. On a PC with many GHz processor this overhead is much less.
To check if this is happening, I would suggest testing with a non-encrypted protocol - for example plain FTP, plain HTTP (wget/curl). There are also dedicated tools like iperf3 that can be used to measure throughput. Using iperf3 between PCs, I get around 117 MB/sec, which is pretty much the full speed of 1G ethernet. The same test on an ~1GHz ARM device only reaches 70 MB/sec (of course, this depends on a lot of factors, so YMMV).
If you need to use SFTP, then you could look into whether there is any crypto-hw acceleration available on your platform, and whether sftp can make use of it.
05-14-2021 12:54 PM
@rfs613 It looks like dropbear is a single threaded application and it is consuming 100% of one of the application processors. In comparison, copy within the embedded system to / from a sata drive is about 150-170 MB/sec. So I guess you're right...the crypto is probably slowing things down.