Hacker News new | ask | show | jobs
by rerdavies 607 days ago
Is it really reasonable to lock your TLS web transfer to a specific CPU thread? Not sure it actually does make sense.

Would be nice to see the non-AVX512 results.

1 comments

> Is it really reasonable to lock your TLS web transfer to a specific CPU thread? Not sure it actually does make sense.

Only if you want good performance. If you're doing a lot of networking, you want your userland socket servicing pinned to the same CPU that the kernel is using for that socket. Which is easiest to achieve if you cpu pin nic queues and server threads. (If you want really good performance, you might want to skip userland with sendfile + kTLS or nic TLS, or maybe skip the kernel with userland networking)

For a benchmark, cpu pinning and tight control of the system is a clear prerequisite; you want to maximize repeatability, and user threads bouncing around cpu threads leads to less repeatable results.

If you really need good performance, aren't you going to be running far more sockets than you have network adapters?