You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
enhancementNew features or improvements of some kind, as opposed to a problem (bug)frozen-due-to-ageIssues closed and untouched for a long time, together with being locked for discussion
The default network buffer size is not a multiple of 64K per default, which is the maximum TCP packet size.
This causes unneccesary fragmentation, slowing down large file uploads when a relay is involved.
Changing this value to 64K (65536) significantly improves upload speed on fast connections.
changed the title [-]default network buffer size in strrleaysrv is suboptimal[/-][+]default network buffer size in strelaysrv is suboptimal[/+]on Mar 22, 2021
I guess this does not take network latency into account which probably has an effect on this, but never the less, the syscall overhead probably is significant enough here regardless.
enhancementNew features or improvements of some kind, as opposed to a problem (bug)frozen-due-to-ageIssues closed and untouched for a long time, together with being locked for discussion
Activity
[-]default network buffer size in strrleaysrv is suboptimal[/-][+]default network buffer size in strelaysrv is suboptimal[/+]AudriusButkevicius commentedon Mar 22, 2021
Please define "significantly"
arkkors commentedon Mar 22, 2021
Pushing 1GB of data over loopback yields values like this for me:
network buffer size = 2048: 9.12349009513855 seconds
network buffer size = 65536: 1.124870777130127 seconds
So an improvement of around 7-8x.
These are times without the client-server negotiation stuff (JoinRelayRequest+ConnectRequest chain), which are negligible.
AudriusButkevicius commentedon Mar 22, 2021
I guess this does not take network latency into account which probably has an effect on this, but never the less, the syscall overhead probably is significant enough here regardless.
@calmh wdyt?
calmh commentedon Mar 22, 2021
Moar buffer moar good I guess.
[-]default network buffer size in strelaysrv is suboptimal[/-][+]Increase default strelaysrv network buffer size[/+]cmd/strelaysrv: Increase default strelaysrv network buffer size (fixes …
cmd/strelaysrv: Increase default strelaysrv network buffer size (fixes …
calmh commentedon Mar 22, 2021
Actually closed by f792922, just messed up by some dumbassery of mine.
Merge branch 'main' into candnogui