Hacker News new | ask | show | jobs
by paulmd 1275 days ago
Netflix definitely benched their context-switches and they determined it was expensive enough to be worth engineering out.

https://www.phoronix.com/news/Netflix-NUMA-FreeBSD-Optimized

https://2019.eurobsdcon.org/slides/NUMA%20Optimizations%20in...

1 comments

If context switches are performance problem you are probably pretty far down the optimation rabbit hole, but the articles you linked have nothing to do with context switches, they are about NUMA optimizations to sendfile on freebsd.
The whole point of using sendfile(2) was to avoid context switches between reading data from disk and sending it via the network stack.