curl / Mailing Lists / curl-library / Single Mail

curl-library

Re: libssh2 optimization [was: Re: Windows users! Help us test upload performance tuning?]

From: Jan Ehrhardt via curl-library <curl-library_at_cool.haxx.se>
Date: Thu, 30 Aug 2018 16:23:57 +0200

Jan Ehrhardt via curl-library (Sun, 26 Aug 2018 16:28:47 +0200):
>Daniel Jelinski via curl-library (Sun, 26 Aug 2018 09:09:58 +0200):
>>The patched version is CPU-bound on lower latencies; when the latency
>>goes higher, SSH window becomes the limiting factor. I read that HPN
>>SSH should do better on high latency links, didn't try it out.
>
>A lot of PR's for HPN-SSH came from @allanjude. Interesting stuff:
>http://www.allanjude.com/bsd/AsiaBSDCon2017_-_SSH_Performance.pdf

In May 2017 Allan Jude posted a new HPN patch here:
https://lists.freebsd.org/pipermail/freebsd-current/2017-May/066015.html

Quote:
> In my benchmarks with 100ms of latency (from dummynet) is increases SSH
> send throughput from 1 megabyte/sec to 225 megabytes/sec provided a
> large enough socket buffer.

I cannot reproduce that. I applied a modified version of this patch to
OpenSSH-portable for Windows:
https://github.com/Jan-E/openssh-portable/commit/e5c711f66aa3a14980dc7e0ca8504d0bda614fa6

For anyone that wants to try it:
https://phpdev.toolsforresearch.com/expect.7z

The scripting is done with Expect for Windows:
https://github.com/zetamatta/expect/issues/8#issuecomment-416445736

-- 
Jan
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:   https://curl.haxx.se/mail/etiquette.html
Received on 2018-08-30