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

Performance issues #80

Open
AnAnalogGuy opened this issue Oct 4, 2024 · 0 comments
Open

Performance issues #80

AnAnalogGuy opened this issue Oct 4, 2024 · 0 comments

Comments

@AnAnalogGuy
Copy link

Hi all

I’m struggling with performance issues.

Same file, same server system (Ubuntu), same client system (Ubuntu), same network connection, only difference is the transfer protocol.

File to download:
Size: 33.6 MB
Type: Zip file

Download time
with ssh2/sftp: 45 sec
with wget/https: 1.6 sec
with openssh-client/sftp: 6 sec

That’s quite a huge difference!

The data is received in 4314 buffers, which indicates the chunk size the server is using to transfer data is 8k (33.6 * 1024 * 1024 / 4314). I played around with the buffer_size of the input stream but no improvement was achived.

ssh2 version 1.4.1 with PHP 8.1.29 on Ubuntu.

The results make me conclude the problem can’t be sftp as such nor the server nor the network. So it’s probably me :-) Is there anything performance-wise I’m missing? Something in need to tweak in the PHP configuration? …. ? Or is this what has to be expected?

Thanks a lot for your support.
Mark

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

1 participant