0

I'm running an FTP server via ProFTPD on my RasberryPi 4 (4 GB RAM) as well as a Samba share folder to my Windows. I've got a sync setup from my PC to my pi HDD using Goodsync, and when I use my Samba share to sync it errors out when I'm transferring big video files (it got stuck on a 13 GB video file).

So that's another issue you may be able to help me with too! But anyway, so for the larger files to get synced over I have to change sync via the FTP. So, my transfer speeds over samba are great over my Gigabyte LAN reaching 90-120 MB/s, however over ftp it's maxing at about 20 MB/s. Any ideas why it would be going slower? Should I try using another FTP server on the pi other than PROFTPD? It's running explicitly TLS BTW. Or maybe should I use a SSH FTP server? Cheers, Josh

EDIT: Same thing happens for NFS share on windows, it locks up with large file copies. For NFS/Samba it only locks up when copying to an external HDD (USB3), but not to the Pi SD

EDIT: I tried SFTP and it was slightly faster then FTPS (29MB/s) but still to slow. Any way I can speed up SFTP?

2
  • What TLS ciphers are you using for ProFTPd, and what is smb encrypt set to in smb.conf? – user1686 Oct 12 '19 at 12:44
  • @grawity I don't have smb encrypt in my smb.config, so it would be at its default setting. As for the TLS ciphers, I'm not sure what that is, i didn't change any of the default settings for ProFTPd other then enabling TLS, – Josh Northeast Oct 13 '19 at 11:35
1

FTP is a slow protocol that cannot use all the bandwith (IIRC the sender waits for an ACK from received before it send the next packet).

If you can set up an SSH link, copying via rsync can use all the bandwidth (unless you have an I/O bottleneck at either end).

3
  • No, you're confusing FTP with TFTP. The former uses a regular TCP stream with sliding window acks. The latter is UDP-based and has its own scheme with individual packet acks. – user1686 Oct 12 '19 at 18:00
  • 1
    @grawity I worked for a TV channel and for their large transfers (a broadcast-grade video is easily 60GB) they used alternative methods because FTP was a huge waste of bandwidth. – xenoid Oct 12 '19 at 19:17
  • @grawity ok, so I have ssh set up on my windows pc. Can i now use rsync to copy files over to my linux? – Josh Northeast Oct 13 '19 at 11:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.