public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* irq balance problems?
@ 2006-02-21  7:47 Imre Gergely
  2006-02-21  7:56 ` Arjan van de Ven
  0 siblings, 1 reply; 5+ messages in thread
From: Imre Gergely @ 2006-02-21  7:47 UTC (permalink / raw)
  To: linux-kernel


hi

i have kernel 2.6.9, with FC2, on an AMD64 Dual Opteron.

[root@btv 28]# cat /proc/interrupts
           CPU0       CPU1
  0:   22249515   39262513    IO-APIC-edge  timer
  1:          0          8    IO-APIC-edge  i8042
  2:          0          0          XT-PIC  cascade
  8:          0          0    IO-APIC-edge  rtc
 14:          1         13    IO-APIC-edge  ide0
 24:         10  441422068   IO-APIC-level  ioc0, eth1
 25:  171765170       5905   IO-APIC-level  ioc1, eth2
 28:        921     406066   IO-APIC-level  eth0
NMI:      16960       6317
LOC:   61500529   61500464
ERR:          0
MIS:          0

i was wondering, if IRQ28's (eth0) affinity is set to the default "f"

[root@btv 28]# cat /proc/irq/prof_cpu_mask
f
[root@btv 28]# cat /proc/irq/28/smp_affinity
f


and irqbalance is not running, why aren't the interrupts coming from eth0
balanced between the two processors? at least that's what i understood from the
examples in Documentation/IRQ-affinity.txt. are there any other settings/kernel
parameters/compile option one has to set?

(pls msg me in private, i'm not on the list.)
thanks


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: irq balance problems?
  2006-02-21  7:47 irq balance problems? Imre Gergely
@ 2006-02-21  7:56 ` Arjan van de Ven
  2006-02-21  8:03   ` Imre Gergely
  0 siblings, 1 reply; 5+ messages in thread
From: Arjan van de Ven @ 2006-02-21  7:56 UTC (permalink / raw)
  To: Imre Gergely; +Cc: linux-kernel


> and irqbalance is not running, why aren't the interrupts coming from eth0
> balanced between the two processors? at least that's what i understood from the
> examples in Documentation/IRQ-affinity.txt. are there any other settings/kernel
> parameters/compile option one has to set?

it'll depend on the chipset. Some round-robin, some don't.
For performance it's better to not round-robin. 



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: irq balance problems?
  2006-02-21  7:56 ` Arjan van de Ven
@ 2006-02-21  8:03   ` Imre Gergely
  2006-02-21  8:18     ` Arjan van de Ven
  0 siblings, 1 reply; 5+ messages in thread
From: Imre Gergely @ 2006-02-21  8:03 UTC (permalink / raw)
  To: Arjan van de Ven; +Cc: linux-kernel



Arjan van de Ven wrote:
>> and irqbalance is not running, why aren't the interrupts coming from eth0
>> balanced between the two processors? at least that's what i understood from the
>> examples in Documentation/IRQ-affinity.txt. are there any other settings/kernel
>> parameters/compile option one has to set?
> 
> it'll depend on the chipset. Some round-robin, some don't.
> For performance it's better to not round-robin. 

is there a way to see for sure? or this behaviour is proof enough that it
doesn't do round-robin?



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: irq balance problems?
  2006-02-21  8:03   ` Imre Gergely
@ 2006-02-21  8:18     ` Arjan van de Ven
  2006-02-21  8:45       ` Imre Gergely
  0 siblings, 1 reply; 5+ messages in thread
From: Arjan van de Ven @ 2006-02-21  8:18 UTC (permalink / raw)
  To: Imre Gergely; +Cc: linux-kernel

On Tue, 2006-02-21 at 10:03 +0200, Imre Gergely wrote:
> 
> Arjan van de Ven wrote:
> >> and irqbalance is not running, why aren't the interrupts coming from eth0
> >> balanced between the two processors? at least that's what i understood from the
> >> examples in Documentation/IRQ-affinity.txt. are there any other settings/kernel
> >> parameters/compile option one has to set?
> > 
> > it'll depend on the chipset. Some round-robin, some don't.
> > For performance it's better to not round-robin. 
> 
> is there a way to see for sure? or this behaviour is proof enough that it
> doesn't do round-robin?

it's pretty much proof to me already yes ;)

(but why do you want round-robin? it's the worst setting for
performance..... )


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: irq balance problems?
  2006-02-21  8:18     ` Arjan van de Ven
@ 2006-02-21  8:45       ` Imre Gergely
  0 siblings, 0 replies; 5+ messages in thread
From: Imre Gergely @ 2006-02-21  8:45 UTC (permalink / raw)
  To: Arjan van de Ven; +Cc: linux-kernel


Arjan van de Ven wrote:
> On Tue, 2006-02-21 at 10:03 +0200, Imre Gergely wrote:
>> Arjan van de Ven wrote:
>>>> and irqbalance is not running, why aren't the interrupts coming from eth0
>>>> balanced between the two processors? at least that's what i understood from the
>>>> examples in Documentation/IRQ-affinity.txt. are there any other settings/kernel
>>>> parameters/compile option one has to set?
>>> it'll depend on the chipset. Some round-robin, some don't.
>>> For performance it's better to not round-robin. 
>> is there a way to see for sure? or this behaviour is proof enough that it
>> doesn't do round-robin?
> 
> it's pretty much proof to me already yes ;)
> 
> (but why do you want round-robin? it's the worst setting for
> performance..... )

on one of the ethernet cards is much traffic, and there is htb (with many
classes and filters) used. because of this, one CPU is always on 95-100%, the
other is barely used. i wanted to see if it would improve performance if it did
balancing between the CPUs.


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-02-21  8:45 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-21  7:47 irq balance problems? Imre Gergely
2006-02-21  7:56 ` Arjan van de Ven
2006-02-21  8:03   ` Imre Gergely
2006-02-21  8:18     ` Arjan van de Ven
2006-02-21  8:45       ` Imre Gergely

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox