network performance tunning in Linux

view story

http://stackoverflow.com – I have a application which has two threads ,thread1 would receive multicast packages from network card eth1 , suppose I use sched_setaffinity to set cpu affinity for thread1 to cpu core 1 , and then I have thread2 to use these packages (received from thread1,located in heap area global vars) to do some operations , I set cpu affinity for thread2 to core 7 ,suppose core 1 and core 7 are in the same core with hyper-threading , I think the performance would be good, since core 1 and core 7 can use L1 cache . I have watched /proc/interrupt , I see eth1 has interrupts in several cpu cores , so i (HowTos)