netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: David Miller <davem@davemloft.net>
Cc: ossthema@de.ibm.com, shemminger@linux-foundation.org,
	netdev@vger.kernel.org, themann@de.ibm.com, raisch@de.ibm.com
Subject: Re: new NAPI interface broken
Date: Tue, 16 Oct 2007 17:42:08 +1000	[thread overview]
Message-ID: <1192520528.7205.9.camel@pasglop> (raw)
In-Reply-To: <1192519787.7205.3.camel@pasglop>

> So the powerpc platform just honors the affinity mask, and depending on
> the PIC does things that range from nothing to spreading interrupts to
> CPUs in the affinity mask.
> 
> All interrupts by defaults are spread to all CPUs (full balancing).
> 
> At this stage, it's afaik userland business to enforce different
> policies by changing the affinities via /proc/irq/*.
> 
> Do you have any pointer to how that is done on x86 or sparc64 ? On my
> x86 laptop using ubuntu gutsy, I definitely see the IRQ on which the
> network card is connected (e1000) happily spread between the 2 cores
> just like powerpc would do.

More specifically, IRQF_NOBALANCING doesn't seem to be set anywhere
except a few arch specific timer interrupts etc... nowhere I can see in
network drivers or the network stack (the stack wouldn't know what IRQ
anyway since not all drivers set netdev->irq).

We currently don't have a balance kthread like x86 has, though I wonder
if we should move this one out of x86 and make it generic (hell, it's
even hidden in the IO_APIC code :-) But at this stage, HW balancing by
the PIC is the norm and seems to be happening.

Ben.



  reply	other threads:[~2007-10-16  7:42 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-07  9:37 new NAPI interface broken Jan-Bernd Themann
2007-09-12 12:50 ` David Miller
2007-09-12 13:10   ` new NAPI interface broken for POWER architecture? Christoph Raisch
2007-09-12 13:27     ` David Miller
2007-09-12 15:18     ` Arnd Bergmann
2007-10-16  7:29   ` new NAPI interface broken Benjamin Herrenschmidt
2007-10-16  7:42     ` Benjamin Herrenschmidt [this message]
2007-10-16  7:44     ` David Miller
2007-10-16  8:28       ` Benjamin Herrenschmidt
2007-10-16  8:31         ` David Miller
2007-10-16  9:01           ` Benjamin Herrenschmidt
2007-10-16 21:01             ` Anton Blanchard
2007-10-17 15:26             ` Christoph Raisch
2007-10-16 15:56           ` Arjan van de Ven
2007-09-14 22:12 ` David Miller
2007-09-18 16:15   ` Jan-Bernd Themann
2007-09-18 19:08     ` David Miller
2007-09-19 15:33     ` Roland Dreier
2007-09-19 15:43       ` Jan-Bernd Themann

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=1192520528.7205.9.camel@pasglop \
    --to=benh@kernel.crashing.org \
    --cc=davem@davemloft.net \
    --cc=netdev@vger.kernel.org \
    --cc=ossthema@de.ibm.com \
    --cc=raisch@de.ibm.com \
    --cc=shemminger@linux-foundation.org \
    --cc=themann@de.ibm.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).