FTP, SFTP, SCP

Advertisement

6433567
Guest

FTP, SFTP, SCP

Which I saw and did. FTP is fine with me, but in order to use FTP, I needed to install and configure vsftpd — done. Encryption is unnecessary for me, for transferring files over a local network between my devices.

Reply with quote

Advertisement

6433567
Guest

FTP, SFTP, SCP

openssh-server 1:8.4p1-5+deb11u3. I didn't know it was openssh-sftp-server 1:8.4p1-5+deb11u3 installed. With WinSCP sftp speed ~7,20 - 6,20 MB/s.

Reply with quote

6433567
Guest

FTP, SFTP, SCP

:~ $ "ssh -Q cipher"
I have already done this, changed the encryption algorithm for SCP (ssh) to C.20, nothing has changed. I changed the encryption algorithm for SFTP (ssh), it got better. FTP without encryption for my hardware is still faster to transfer files and less CPU load if encryption is unnecessary.

Reply with quote

Advertisement

6433567
Guest

FTP, SFTP, SCP

Yes, but it's not a network problem. From what I can see. The processor core (1) is not powerful enough to process AES encryption, which slows down the transfer rate. But, if for SFTP (SSH) changing the encryption to C.20 helps. The load on the CPU core drops significantly and the file transfer speed does not drop, then for SCP (SSH) changing the encryption method from AES to C.20 does not change anything, or it doesn't change much. I did it. Nothing has changed.

Reply with quote

Advertisement

6433567
Guest

FTP, SFTP, SCP

It doesn't matter that the file is downloaded from shm or USB Flash, the speed still drops to ~500-256 KB/s.
  • log.zip (20.19 KB, Private file)

Reply with quote

6433567
Guest

FTP, SFTP, SCP

SCP. Guest Linux openssh 1:8.9p1-3ubuntu0.6, lan bridge, router. Downloading from guest VB.exe (host) the CPU is 40% loaded, guest the CPU is 100% loaded one core (4 cores guest), htop. I've been changing encryption methods, download speed and CPU (x4 1500MHz 86_64) the loads are identical. I forgot when I made the log that the settings for directories have been changed. The rest is default.

Reply with quote

Advertisement

martin
Site Admin
martin avatar

Re: FTP, SFTP, SCP

Ok, I do not see any configuration problem in the log. So indeed it looks like the CPU is the limiting factor. Not much we can do about this atm. We plan to use better compiler in the next major release, what hopefully makes this better. But it will take time to upgrade.

Reply with quote

Guest

This is not a problem for me as I can also use ftp, sftp, ftps. For me, the only thing that is not clear is why there is no difference between AES and C.20 with SCP. In SFTP, there is a difference between AES and C.20 in download speed and CPU load where there is no hardware AES in the CPU. PCs have hardware AES encryption in the CPU, but hardware encryption works in the CPU, when I did the example in virtualization, I don't know.

Reply with quote

Advertisement

martin
Site Admin
martin avatar

Re: FTP, SFTP, SCP

Sorry, I do not know.
Though in your last log, there actually is a big speed difference between AES and ChaCha20 (AES being 70% faster – what might not be the expected result). And actually the speed (1,2–2 MB/s) is much higher than what you claim.

Reply with quote

6433567
Guest

FTP, SFTP, SCP

I can show again, but it's not required. The speed starts from high and drops to 500-200 KB/s, but rises to 200-7000 KB/s for a short time and falls again. If I take a larger example file, the speed on some segment of the downloaded file will drop to 500-200 KB/s for a constant time and the average speed will be lower in the log. I think in the log, the average download speed is shown. But I'm not sure 100%.

Everything is the same as in the previous examples 500-200 KB/s (except guest). With SFTP (ARM) between AES and C.20, not only the speed is different, but the CPU load is different. Which is not the case with SCP between AES and C.20.

scp.gif

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum