Skip to content

Increase default strelaysrv network buffer size #7514

Closed

Description

@arkkors

Does your log mention database corruption?

no

Include required information

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.

  • strelaysrv v0.14.49, linux amd64

Activity

  1. added
    bug
    needs-triage
    on Mar 22, 2021
  2. changed the title [-]default network buffer size in strrleaysrv is suboptimal[/-] [+]default network buffer size in strelaysrv is suboptimal[/+] on Mar 22, 2021
  3. AudriusButkevicius commented on Mar 22, 2021

    @AudriusButkevicius
    Member

    Please define "significantly"

  4. arkkors commented on Mar 22, 2021

    @arkkors
    Author

    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.

  5. AudriusButkevicius commented on Mar 22, 2021

    @AudriusButkevicius
    Member

    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?

  6. calmh commented on Mar 22, 2021

    @calmh
    Member

    Moar buffer moar good I guess.

  7. added
    enhancement
    and removed
    bug
    needs-triage
    on Mar 22, 2021
  8. changed the title [-]default network buffer size in strelaysrv is suboptimal[/-] [+]Increase default strelaysrv network buffer size[/+] on Mar 22, 2021
  9. added a commit that references this issue on Mar 22, 2021
    557ea54
  10. added a commit that references this issue on Mar 22, 2021
    f792922
  11. calmh commented on Mar 22, 2021

    @calmh
    Member

    Actually closed by f792922, just messed up by some dumbassery of mine.

  12. added this to the v1.15.0 milestone on Mar 22, 2021
  13. added a commit that references this issue on Apr 5, 2021
    d1011dc
  14. added
    frozen-due-to-age
    on Aug 11, 2022
  15. locked and limited conversation to collaborators on Aug 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementfrozen-due-to-age

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions