Quoting the RedHat Performance Tuning Guide
3.3.7. Setting interrupt affinity
Interrupt requests have an associated affinity property, smp_affinity, that defines the processors that will handle the interrupt request. To improve application performance, assign interrupt affinity and process affinity to the same processor, or processors on the same core. This allows the specified interrupt and application threads to share cache lines.
I have an application which receives and processes large amounts of UDP data. If I'm looking to cut the time between the UDP packet arriving and the application processing the packet completely, should I assign the same affinity to the NIC receiving the packets & the application? Or should I assign them different affinities? I feel like the quote above suggests the former, but I would've thought the later might be more beneficial.
Any help would be great.
Thanks