netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* appearing again: kernel: eth0: too many iterations (6) in nv_nic_irq
@ 2008-01-28 13:32 Carlos Carvalho
  2008-01-28 16:06 ` Stephen Hemminger
  2008-01-29  1:07 ` Andy Gospodarek
  0 siblings, 2 replies; 4+ messages in thread
From: Carlos Carvalho @ 2008-01-28 13:32 UTC (permalink / raw)
  To: netdev

It seems that this problem with NVidia's nic comes up more and more...
>From time to time we get this in the log:

Jan 27 14:43:12 duvel kernel: eth0: too many iterations (6) in nv_nic_irq.

We algo get

Jan 27 11:32:43 duvel kernel: KERNEL: assertion ((int)tcp_packets_in_flight(tp) >= 0) failed at net/ipv4/tcp_input.c (1274)

But at different moments, as shown above. Are they related? What's the
meaning of the "assertion failed" one?

The messages are more likely to appear when traffic is high
(>500Mb/s). This is with 2.6.22.16.

Any suggestions?

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

* Re: appearing again: kernel: eth0: too many iterations (6) in nv_nic_irq
  2008-01-28 13:32 appearing again: kernel: eth0: too many iterations (6) in nv_nic_irq Carlos Carvalho
@ 2008-01-28 16:06 ` Stephen Hemminger
  2008-01-29  1:52   ` Carlos Carvalho
  2008-01-29  1:07 ` Andy Gospodarek
  1 sibling, 1 reply; 4+ messages in thread
From: Stephen Hemminger @ 2008-01-28 16:06 UTC (permalink / raw)
  To: Carlos Carvalho; +Cc: netdev

On Mon, 28 Jan 2008 11:32:55 -0200
carlos@fisica.ufpr.br (Carlos Carvalho) wrote:

> It seems that this problem with NVidia's nic comes up more and more...
> From time to time we get this in the log:
> 
> Jan 27 14:43:12 duvel kernel: eth0: too many iterations (6) in nv_nic_irq.
> 
> We algo get
> 
> Jan 27 11:32:43 duvel kernel: KERNEL: assertion ((int)tcp_packets_in_flight(tp) >= 0) failed at net/ipv4/tcp_input.c (1274)
> 
> But at different moments, as shown above. Are they related? What's the
> meaning of the "assertion failed" one?
> 
> The messages are more likely to appear when traffic is high
> (>500Mb/s). This is with 2.6.22.16.
> 
> Any suggestions?
> --
> To unsubscribe from this list: send the line "unsubscribe netdev" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 

Use NAPI which is available as configuration option in this driver.

Increase the max_interrupt_work from the ridiculously low value of 5
to something more larger like 15, with module parameter in /etc/modprobe.d/options:

options forcedeth max_interrupt_work=15

Also, see if you motherboard supports MSI, if so add "msi=1" module parameter

-- 
Stephen Hemminger <stephen.hemminger@vyatta.com>

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

* Re: appearing again: kernel: eth0: too many iterations (6) in nv_nic_irq
  2008-01-28 13:32 appearing again: kernel: eth0: too many iterations (6) in nv_nic_irq Carlos Carvalho
  2008-01-28 16:06 ` Stephen Hemminger
@ 2008-01-29  1:07 ` Andy Gospodarek
  1 sibling, 0 replies; 4+ messages in thread
From: Andy Gospodarek @ 2008-01-29  1:07 UTC (permalink / raw)
  To: Carlos Carvalho; +Cc: netdev

On Mon, Jan 28, 2008 at 11:32:55AM -0200, Carlos Carvalho wrote:
> It seems that this problem with NVidia's nic comes up more and more...
> From time to time we get this in the log:
> 
> Jan 27 14:43:12 duvel kernel: eth0: too many iterations (6) in nv_nic_irq.
> 
> We algo get
> 
> Jan 27 11:32:43 duvel kernel: KERNEL: assertion ((int)tcp_packets_in_flight(tp) >= 0) failed at net/ipv4/tcp_input.c (1274)
> 
> But at different moments, as shown above. Are they related? What's the
> meaning of the "assertion failed" one?
> 
> The messages are more likely to appear when traffic is high
> (>500Mb/s). This is with 2.6.22.16.
> 
> Any suggestions?


I've noticed that when running the latest forcedeth on an older base
kernel (2.6.18 in my case) that enable_irq and disable_irq don't quite
behave the same way with using MSI as they do with INTx.  2.6.24 works
great on the same hardware so something has changed between at leat
2.6.18 and now to make life better.  I've been meaning to look at those
calls and figure out if we can replace them with simple calls to disable
the hardware IRQs only, but haven't had a chance yet.


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

* Re: appearing again: kernel: eth0: too many iterations (6) in nv_nic_irq
  2008-01-28 16:06 ` Stephen Hemminger
@ 2008-01-29  1:52   ` Carlos Carvalho
  0 siblings, 0 replies; 4+ messages in thread
From: Carlos Carvalho @ 2008-01-29  1:52 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: netdev

Stephen Hemminger (shemminger@linux-foundation.org) wrote on 28 January 2008 08:06:
 >On Mon, 28 Jan 2008 11:32:55 -0200
 >carlos@fisica.ufpr.br (Carlos Carvalho) wrote:
 >
 >> It seems that this problem with NVidia's nic comes up more and more...
 >> From time to time we get this in the log:
 >> 
 >> Jan 27 14:43:12 duvel kernel: eth0: too many iterations (6) in nv_nic_irq.
 >> 
 >> We algo get
 >> 
 >> Jan 27 11:32:43 duvel kernel: KERNEL: assertion ((int)tcp_packets_in_flight(tp) >= 0) failed at net/ipv4/tcp_input.c (1274)
 >> 
 >> But at different moments, as shown above. Are they related? What's the
 >> meaning of the "assertion failed" one?
 >> 
 >> The messages are more likely to appear when traffic is high
 >> (>500Mb/s). This is with 2.6.22.16.
 >> 
 >> Any suggestions?
 >
 >Use NAPI which is available as configuration option in this driver.

Already in use.

 >Increase the max_interrupt_work from the ridiculously low value of 5
 >to something more larger like 15, with module parameter in
 >/etc/modprobe.d/options:
 >
 >options forcedeth max_interrupt_work=15

Will try.

 >Also, see if you motherboard supports MSI, if so add "msi=1" module parameter

It does, I have this in the config:

CONFIG_ARCH_SUPPORTS_MSI=y
CONFIG_PCI_MSI=y

How can I set these options with the driver compiled in the kernel and
not as a module? I can change the max_interrupt_work in the source but
what about msi?

Any ideas about the assertion ((int)tcp_packets_in_flight...?

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

end of thread, other threads:[~2008-01-29  1:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-28 13:32 appearing again: kernel: eth0: too many iterations (6) in nv_nic_irq Carlos Carvalho
2008-01-28 16:06 ` Stephen Hemminger
2008-01-29  1:52   ` Carlos Carvalho
2008-01-29  1:07 ` Andy Gospodarek

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).