Improving maximum file transfer speed#225
Improving maximum file transfer speed#225jolavillette wants to merge 13 commits intoRetroShare:masterfrom
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 |
|
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. |
|
trying to improve the transfer rate I learned a few things:
|
|
IMO this PR is ready to merge |
37af5c9 to
872629c
Compare
872629c to
8764ad4
Compare
…nable OS Auto-Tuning
8764ad4 to
9a85ee4
Compare
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