4 ms·
The only advantage I can see to MT PF would be multiple NICs. And even then they have to be really beefy NICs
by postmodest 3y ago
The only advantage I can see to MT PF would be multiple NICs. And even then they have to be really beefy NICs
- smashed 3y agoFrom what I understand, modern NICs have multiple Rx/tx queues and thus the work of sending and receiving can be assigned to different kernel threads. The number of queues will vary according to the specific NIC chip.
- toast0 3y agoI was going to say something similar. Multiqueue NICs do great work on networking loads when you have 1 core per NIC queue; and you can eliminate or at least reduce cross-core communication for most of the work. It's not complex firewalling, but I did some HAProxy stuff in tcp mode, and the throughput available when running without queue alignment was miniscule compared to the throughput available when properly aligned. Firewalling has the benefit that queue alignment should happen automagically, because of where it runs. If you're doing a lot of processing in userspace, it makes a lot less of a difference, but on a very lightweight application, there was no point in using more cores than nic queues, because cross-core communication was too slow.