Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slow transfer speed #57

Open
bpbp-boop opened this issue Jul 30, 2020 · 12 comments
Open

Slow transfer speed #57

bpbp-boop opened this issue Jul 30, 2020 · 12 comments

Comments

@bpbp-boop
Copy link

Hello, I was testing out unFTP for use in a speed testing scenario

I found with unFTP speeds are limited to under 10MB/s while using vs-ftpd I can get up to about 50MB/s. Both using PASV mode. let me know if I can add more information.

@hannesdejager
Copy link
Collaborator

Hi @bpbp-boop

Could you tell us more about how you run unFTP?

  1. Firstly, did you run the debug or release builds ? The debug build are known to be slow.
  2. Could you give us the command line arguments you ran it with or tell us what storage back-end you used (e.g. File/GCS) and whether or not you had FTPS enabled.

@bpbp-boop
Copy link
Author

I am using the MUSL binary from the release page and the command line arguments are

./unftp_x86_64-unknown-linux-musl --root-dir /srv --bind-address 0.0.0.0:29 --bind-address-http=0.0.0.0:7555

not using FTPS and filesystem is a xfs in a VM on block storage on a large HP SAN (albeit only with 15k drives not SSDs :) )

vs-ftpd test was run on the same server too.

@hannesdejager
Copy link
Collaborator

Hmm, OK, not the typical developer test bench case. :-)

I assume the 10MB/s was on a big file or was it lots of small files perhaps?

@bpbp-boop
Copy link
Author

Yes, one file 100MB in size

@hannesdejager
Copy link
Collaborator

hannesdejager commented Aug 21, 2020

Hi @bpbp-boop

This perhaps fixes the slow transfer on GET: bolcom/libunftp#243

This is in the library used by unFTP, so I'll update unFTP soon.

I'll check PUT also.

@bpbp-boop
Copy link
Author

Thank you! :) I will test next week

@hannesdejager
Copy link
Collaborator

I've made improvements to STOR too: bolcom/libunftp#247

Also in the library.

I'll try to make a new unFTP release soon.

@bpbp-boop
Copy link
Author

OK as promised it's 2x as fast, limited to about 20MB/s now (up from 10MB)

@hannesdejager
Copy link
Collaborator

OK, thanks for the feedback. Not that great an improvement then. Strange...

@hannesdejager
Copy link
Collaborator

Upon further investigation it seems that vsftpd gets its speed from utilising kernel space copying namely sendfile. It would be interesting to see how vsftpd and unFTP compare when FTPS / TLS is switched on on the FTP data channel

@hannesdejager
Copy link
Collaborator

We logged this ticket in libunFTP for this: bolcom/libunftp#340

@hannesdejager
Copy link
Collaborator

Closing in favour of the ticket logged in libunftp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants