Skip to content
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

Investiagion: relay response time grows too quickly in relation to the number of connections #215

Closed
kamirr opened this issue Oct 6, 2022 · 1 comment
Assignees

Comments

@kamirr
Copy link
Contributor

kamirr commented Oct 6, 2022

1.2s response time for barely 50k connections and relatively low load (25k req/s). See #191 (comment) for more data.

@kamirr kamirr self-assigned this Oct 6, 2022
@kamirr kamirr changed the title Relay response time grows too quickly in relation to the number of connections Investiagion: relay response time grows too quickly in relation to the number of connections Oct 11, 2022
@kamirr
Copy link
Contributor Author

kamirr commented Oct 11, 2022

Investigation conculuded: the main reason for the ~linear latency is the fact that the time required to process a request by the relay server (from dispatch to socket send) is roughly proportional to sqrt(# nodes).

spreadsheet with my measurements

Possible approaches for fixing the issue:

  • Measuring main hashmap access times.
  • Checking TLB/cache misses via perf.
  • Re-checking all locks (I've found no contentions myself).
  • Other?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant