-
Notifications
You must be signed in to change notification settings - Fork 34
[WIP] Improving maximum file transfer speed #225
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
base: master
Are you sure you want to change the base?
[WIP] Improving maximum file transfer speed #225
Conversation
|
this commit just disables packet slicing in pqistreamer.cc |
|
reduce DEFAULT_STREAMER_SLEEP to 10ms in pqithreadstreamer increase MAX_FT_CHUNK to 64 KB in ftserver.cc increase MAX_FTCHUNKS_PER_PEER to 40 in ftfilecreator |
|
I don't get why you want to disable packet slicing: it was originally implemented in order to avoid congestion due to large packets being sent by one friend (e.g. channel sync or images through chat) while other friends would have to wait a lot to get their own packets sent/received. This caused large RTT discrepancies, bad estimate of file transfer rates, etc. This of course costs a few extra bytes per packet but it's definitely worth it. |
7abd185 to
0d1a374
Compare
|
I am only testing :) |
|
increase MAC_FT_CHUNK to 128 kB in ftserver increase PQISTREAM_OPTIMAL_PACKET_SIZE to 1400 bytes in pqistreamer |
…nable OS Auto-Tuning
|
Windows only: pqissllistener, remove manual TCP buffer overrides to enable OS Auto-Tuning in pqissllistener" |
|
Despite extensive testing and tracing, I am still unable to understand why Windows cannot match the transfer rates achieved in the reverse direction. For the moment I recommend that we use:
|
|
Achieved 20-25 MB/s for both upload and download (Linux/Win10) on fiber using adaptive timeout and sleep in pqithreadstreamer. Reception timeout now scales between 0 and 10 ms; cycle sleep scales between 1 and 30 ms. This ensures high throughput during activity while significantly saving CPU when idle. |
Improving maximum file transfer speed
This WIP pr focuses on improving the maximum file transfer speed in RS
If possible test the pr and provide comments
To test you will need to use the pr on the 2 sides: sender and receiver