relationship between cpu_affinity and Packet RX Processing

Kumar amit mehta gmate.amit at gmail.com
Tue Mar 26 15:05:21 EDT 2013


On Tue, Mar 26, 2013 at 08:35:56PM +0200, Rami Rosen wrote:
> 1) Regarding rx queues: what does
> "ls /sys/class/net/eth0/queues"
> show ?
> 

$ ls /sys/class/net/eth0/queues
rx-0  tx-0

> 2) can you try setting affinity for working only with CPU3
> and see what happens after some traffic is sent by
> cat /proc/interrupts?
>
# echo 8 > /proc/irq/19/smp_affinity
# cat /proc/irq/19/smp_affinity
08

$ cat /proc/interrupts |grep eth0
19:      20635         78        387       1857   IO-APIC-fasteoi   eth0
$ cat /proc/interrupts |grep eth0
19:      20635         78        387       3041   IO-APIC-fasteoi   eth0

Now only, CPU3 is processing the packets.
So, i think, this driver(pcnet32) is not using multiple Rx Queue.



More information about the Kernelnewbies mailing list