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

Improve proxy performance #23

Open
stevapple opened this issue Sep 11, 2024 · 2 comments
Open

Improve proxy performance #23

stevapple opened this issue Sep 11, 2024 · 2 comments

Comments

@stevapple
Copy link
Contributor

In production, we found sshmux significantly impact SSH tunnel speed, which merely runs at 100Mbps while an NGINX forwarder can run at 1000Mbps (the full Internet bandwidth) under the same resource constraints.

It would be great if we can resolve the problem so that sshmux won’t be a bottleneck of speed.

@taoky
Copy link
Member

taoky commented Sep 11, 2024

I think that we could add an optional pprof first like taoky/ayano@b26dcc8, to understand where the bottleneck is.

@iBug
Copy link
Member

iBug commented Sep 11, 2024

Note that Nginx stream forwarding does nothing to the stream content and can leverage lots of speedup techniques like TCP offloading and userspace bypassing. On the other hand, sshmux has to decrypt-then-reencrypt the content.

Maybe try building with GOAMD64=v3 or v4, but I'm not sure how much it helps.

taoky added a commit that referenced this issue Sep 14, 2024
Related: #23
Modified from: taoky/ayano@b26dcc8
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

3 participants