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

feat(connlib): reduce stack size usage #3958

Merged
merged 2 commits into from
Mar 13, 2024
Merged

Conversation

thomaseizinger
Copy link
Member

With the use of snownet, we now have explicit control over how we read and write messages to sockets. As such, we can make the remaining stack-allocated buffer heap-allocated and remove the increased stack-size on our tokio worker threads.

Copy link

vercel bot commented Mar 5, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
firezone ⬜️ Ignored (Inspect) Visit Preview Mar 13, 2024 2:03am

Copy link

github-actions bot commented Mar 5, 2024

Terraform Cloud Plan Output

Plan: 8 to add, 7 to change, 8 to destroy.

Terraform Cloud Plan

@thomaseizinger thomaseizinger force-pushed the refactor/phoenix-channel-clients branch from 636fd5f to 29773a2 Compare March 8, 2024 03:33
@thomaseizinger thomaseizinger force-pushed the refactor/phoenix-channel-clients branch from 812dda4 to 3667d92 Compare March 9, 2024 10:06
Base automatically changed from refactor/phoenix-channel-clients to main March 12, 2024 08:20
@thomaseizinger thomaseizinger force-pushed the feat/reduce-stack-size branch 2 times, most recently from 24df509 to a39a2d9 Compare March 13, 2024 00:00
@thomaseizinger thomaseizinger marked this pull request as ready for review March 13, 2024 00:00
@thomaseizinger
Copy link
Member Author

@conectado Ready for review now!

Copy link

Performance Test Results

TCP

Test Name Received/s Sent/s Retransmits
direct-tcp-client2server 197.9 MiB (+0%) 198.7 MiB (+1%) 220 (+8%)
direct-tcp-server2client 203.2 MiB (+4%) 204.5 MiB (+4%) 891 (+38%)
relayed-tcp-client2server 135.6 MiB (+1%) 136.4 MiB (+1%) 155 (-13%)
relayed-tcp-server2client 140.1 MiB (-4%) 140.4 MiB (-4%) 170 (+20%)

UDP

Test Name Total/s Jitter Lost
direct-udp-client2server 50.0 MiB (0%) 0.11ms (+105%) 0.00% (NaN%)
direct-udp-server2client 50.0 MiB (+0%) 0.04ms (+30%) 0.00% (NaN%)
relayed-udp-client2server 50.0 MiB (+0%) 0.09ms (-30%) 0.00% (NaN%)
relayed-udp-server2client 50.0 MiB (-0%) 0.06ms (-23%) 0.00% (NaN%)

@thomaseizinger thomaseizinger added this pull request to the merge queue Mar 13, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Mar 13, 2024
@thomaseizinger thomaseizinger added this pull request to the merge queue Mar 13, 2024
Merged via the queue into main with commit bd94461 Mar 13, 2024
134 checks passed
@thomaseizinger thomaseizinger deleted the feat/reduce-stack-size branch March 13, 2024 20:57
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

Successfully merging this pull request may close these issues.

None yet

2 participants