Date: Sat, 7 Jun 2014 01:00:14 +0200 From: Daniel Janzon <janzon@gmail.com> To: freebsd-hackers@freebsd.org Subject: Best practice for accepting TCP connections on multicore? Message-ID: <CAAGHsvDhaqQbwir5P%2BoaH_Qa8VZ0aj9A2SGrn%2B2shJMQ21B6Jw@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAAGHsvDhaqQbwir5P%2BoaH_Qa8VZ0aj9A2SGrn%2B2shJMQ21B6Jw>