Best practice for accepting TCP connections on multicore?
Daniel Janzon
janzon at gmail.com
Fri Jun 6 23:00:16 UTC 2014
Hi,
What is the best practice (performance-wise) for dispatching new TCP
connections to different threads in order to make use of multiple cores?
Is there any better way than doing the accept() call in one thread and then
dispatch it to a thread on another core with any user space method?
Conceivably one should be able to perform the accept() call from several
threads but using the same socket and let the kernel distribute the
incoming connections using some kind of hash or round robin.
Regards,
Daniel
More information about the freebsd-hackers
mailing list