All of lore.kernel.org
 help / color / mirror / Atom feed
From: gmate.amit@gmail.com (Kumar amit mehta)
To: kernelnewbies@lists.kernelnewbies.org
Subject: relationship between cpu_affinity and Packet RX Processing
Date: Tue, 26 Mar 2013 12:05:21 -0700	[thread overview]
Message-ID: <20130326190521.GB6868@gmail.com> (raw)
In-Reply-To: <CAKoUAr=Htu1MfWLHTC-EXuezzBHDAqgWCPj+Tidg=dXWcXchMQ@mail.gmail.com>

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.

  reply	other threads:[~2013-03-26 19:05 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-26 18:31 relationship between cpu_affinity and Packet RX Processing Kumar amit mehta
2013-03-26 18:35 ` Rami Rosen
2013-03-26 19:05   ` Kumar amit mehta [this message]
2013-03-26 19:31     ` Rami Rosen
2013-03-29 13:19       ` Kumar amit mehta
2013-03-29 13:36         ` Kumar amit mehta
2013-03-30  8:16           ` Rami Rosen
2013-03-30 21:56             ` Paulo Petruzalek
2013-03-26 18:45 ` Arlie Stephens
2013-03-26 18:54   ` Kumar amit mehta

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130326190521.GB6868@gmail.com \
    --to=gmate.amit@gmail.com \
    --cc=kernelnewbies@lists.kernelnewbies.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.