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

UDP with unique fds for each "connection" #198

Closed
evantandersen opened this issue Apr 2, 2021 · 4 comments
Closed

UDP with unique fds for each "connection" #198

evantandersen opened this issue Apr 2, 2021 · 4 comments
Assignees
Labels
enhancement New feature or request pending development Requested PR owner to improve code and waiting for the result proposal Proposal for this repo stale
Milestone

Comments

@evantandersen
Copy link

evantandersen commented Apr 2, 2021

Is your feature request related to a problem? Please describe.
I have heard the linux kernel performs significantly better when using a unique socket for each UDP 'connection', because the routing data will be saved internally. (in our application, hundreds of thousands of packets sent to the same client)

Describe the solution you'd like
Possible to use unique file descriptors for each UDP 'connection' inside of gnet

Describe alternatives you've considered
Writing the code myself, using gnet as is (and potentially missing out on kernel performance)

Additional context
I don't actually know that much about linux networking performance. Our application involves maintaining streams of data between thousands of clients, each sending ~150 packets/second. Currently using the go/net package and it's become a bottleneck. From some cursory googling and my experience from a C server I worked on a decade ago, individual FDs for UDP sockets is the way to go. Hopefully you know more!

@evantandersen evantandersen added enhancement New feature or request proposal Proposal for this repo labels Apr 2, 2021
@xscode-auto-reply
Copy link

Thanks for opening a new issue. The team has been notified and will review it as soon as possible.
For urgent issues and priority support, visit https://xscode.com/panjf2000/gnet

@panjf2000 panjf2000 added the pending development Requested PR owner to improve code and waiting for the result label Apr 5, 2021
@panjf2000
Copy link
Owner

Investigating on it.

Copy link

This issue is marked as stale because it has been open for 30 days with no activity.

You should take one of the following actions:

  • Manually close this issue if it is no longer relevant
  • Comment if you have more information to share

This issue will be automatically closed in 7 days if no further activity occurs.

@github-actions github-actions bot added the stale label Sep 26, 2024
Copy link

github-actions bot commented Oct 4, 2024

This issue was closed because it has been inactive for 7 days since being marked as stale.

If you believe this is a false alarm, please leave a comment for it or open a new issue, you can also reopen this issue directly if you have permission.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Oct 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request pending development Requested PR owner to improve code and waiting for the result proposal Proposal for this repo stale
Projects
None yet
Development

No branches or pull requests

2 participants