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

Bind Socket to a Logical Core #23

Closed
victorstewart opened this issue Dec 14, 2018 · 5 comments
Closed

Bind Socket to a Logical Core #23

victorstewart opened this issue Dec 14, 2018 · 5 comments

Comments

@victorstewart
Copy link

this might be of some fun for you

image

@ghost
Copy link

ghost commented Dec 14, 2018

Oooh!

This is new right? REUSEPORT was added in Linux 3 something but back then it only did round-robin accept right? So this is some kind of function you distribute accepts with?

@ghost
Copy link

ghost commented Dec 14, 2018

http://man7.org/linux/man-pages/man7/socket.7.html

Seems new to Linux 4.6

@victorstewart
Copy link
Author

check this out too. I've been itching to blow out the network stack and replace it in userspace for the past year (nothing worse than decrepit old junk getting in the way).

https://dpdksummit.com/Archive/pdf/2016Asia/DPDK-ChinaAsiaPacificSummit2016-Park-FastUser.pdf

These are the two top implementations:

https://github.com/mtcp-stack/mtcp
https://github.com/F-Stack/f-stack

The only trick is if you sever the NIC from the kernel, it suffocates all networking ability from the OS. (My application servers only run a single application server tho.... so isn't much of a problem for me). So any other running network applications would need to be routed through the new userspace networking stack.

This will only become even more needed with... 60 physical core systems running 40Gb connects soon.

@ghost
Copy link

ghost commented Dec 14, 2018

Yes one of the main ideas of uSockets is to be compatible with mtcp and such stacks. However, one have to take into account the money flow -> Node.js is MASSIVELY popular and Node.js is never going to use mtcp or things like that. So it kind of won't pay off.

I'm scrolling through the Linux kernel more lately though... 10 years from now I will be a Linux kernel dev for sure fingers crossed.

@ghost
Copy link

ghost commented Dec 22, 2018

#17

This issue was closed.
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