All of lore.kernel.org
 help / color / mirror / Atom feed
From: frog1120@gmail.com (J.Hwan Kim)
To: kernelnewbies@lists.kernelnewbies.org
Subject: How to distribute IRQs to all cores
Date: Fri, 26 Aug 2011 11:13:02 +0900	[thread overview]
Message-ID: <4E57012E.9080508@gmail.com> (raw)
In-Reply-To: <CAN1N8TgGg-FRVesNaAFHX-hvX6cY=AQ_Er8sGwz6-K02ViLUng@mail.gmail.com>

On 2011? 08? 26? 03:19, Akash wrote:
> Try programming the CPU-irq affinity by writing to
>
> /proc/irq/<irq-number>/smp_affinity
>
> For example masks for irqs could be :
> irq 97 - 0x1
> 99     - 0x2
> 103   - 0x4
> 104   - 0x8
>
> That way, you are hardcoding on which cpu the particular irqs should land.
>
> HTH
> Akash
>
> On Thu, Aug 25, 2011 at 4:08 AM, J.Hwan Kim <frog1120@gmail.com 
> <mailto:frog1120@gmail.com>> wrote:
>
>     Hi, everyone
>
>     The interrupts of my ixgbevf driver occurs only Core 0
>     although the user space "irqbalance" serivce is working.
>
>     How can I distribute the interrupt of RX in ixgbevf to all cores?
>     Is there any kernel compile option for it ?
>
>
>     cat /proc/interrupts | grep "isv"
>       97:          8          0          0          0          0
>     0          0          0   PCI-MSI-edge      isv0-rx-0
>       99:          7          0          0          0          0
>     0          0          0   PCI-MSI-edge      isv0:lsc
>      103:       2059      0          0          0          0
>     0          0          0   PCI-MSI-edge      isv2-rx-0
>      104:         14        0          0          0          0
>     0          0          0   PCI-MSI-edge      isv2-tx-0
>      105:          1         0          0          0          0
>     0          0          0   PCI-MSI-edge      isv2:mbx
>
>     "isv" is netdevice name of my ixgbevf.
>

Thank you for reply.
I want to distribute, for example, IRQ 103 to all cores as follows :
103 : 111 2344 1334 3233 2233 1111 2233 362262  isv2-rx-0
That cannot be achieved by setting /proc/irq/irq-num/smp_affinity.





-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20110826/325ee98d/attachment.html 

      reply	other threads:[~2011-08-26  2:13 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-25 11:08 How to distribute IRQs to all cores J.Hwan Kim
2011-08-25 18:19 ` Akash
2011-08-26  2:13   ` J.Hwan Kim [this message]

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=4E57012E.9080508@gmail.com \
    --to=frog1120@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.