3 ms·
> Last week during a casual conversation I overheard a colleague saying: "The Linux network stack is slow! You can't expect it to do more than 50 thousand packe
by danpalmer 11y ago
> Last week during a casual conversation I overheard a colleague saying: "The Linux network stack is slow! You can't expect it to do more than 50 thousand packets per second per core!"
> They both have two six core 2GHz Xeon processors. With hyperthreading (HT) enabled that counts to 24 processors on each box.
24 * 50,000 = 1,200,000
> we had shown that it is technically possible to receive 1Mpps on a Linux machine
So the original proposition was correct.
- digital-rubber 11y ago+1 for Dan Palmer (if i had points i'd give them). Anybody btw know easy way to avoid seeing cloudflare.com from the main page?
- Anderkent 11y agoAFAIK he's only using 4 out of the 24 cores: > two cores busy with handling RX queues, and third running the application, it's possible to get ~650k pps That's ~200k pps per core, so 4x the initial bet.
- feld 11y agognn has done a lot of research on *nix networking and the conclusion is "single sockets are always faster than multiple sockets". There's a huge performance hit when trying to process packets as fast as possible and you throw NUMA into the mix. Remote memory is accessed more slowly, and pinning work to specific CPUs is non-trivial.