SFTP Thread Optimization

Hello,

what is the “Optimal” Thread Count for a SFTP Server by a Hosting Provider? 1 is the Default, but the Right?

Is this dependent on the source system and its hardware?
Do you need Details of this Hardware?

Many Thanks!

Greetings!

Revan335

We can all speculate, and the answer will be somewhere between 1 and 10000, but you can try various numbers and see which one works best, in your specific environment and time of day (as it can vary on provider load).

Obviously, if you have 1 HDD on a Raspberry Pi as your SFTP provider – then obviously 1 is the max (0, ideally, as this is horrible setup for hosting backup). If you have a datacenter with load balancers – then you can upload with 100 threads and caching at the host will absorb all the seek latency.

Is the showing Speed on the Job in MB/s the Upload Speed or another?
The Upload of my Internet Connection is 40.000 that’s ca. 4 MB/s.

I’m not completely sure, but IIRC that speed is a rate of data transfer that does not take into account compression and de-duplication.

I.e. if you had 1 GB of data, that compressed into 1 MB, and you uploaded it in 1 second it will show 1 GB/sec.

If you want to monitor actual network utilization use tools from your OS.