Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.dist > #814671

Bug#858125: e1000: ethernet interface hangs occasionally, kernel reports hang

From "Bruce Momjian,,," <bruce@momjian.us>
Newsgroups linux.debian.bugs.dist, linux.debian.kernel
Subject Bug#858125: e1000: ethernet interface hangs occasionally, kernel reports hang
Date 2017-03-22 04:20 +0100
Message-ID <tnEYy-4sn-9@gated-at.bofh.it> (permalink)
References (4 earlier) <tmuRz-4vi-1@gated-at.bofh.it> <tmvaV-4CV-1@gated-at.bofh.it> <tnygp-8eX-9@gated-at.bofh.it> <tnABB-1iQ-33@gated-at.bofh.it> <tnEvw-3Xg-19@gated-at.bofh.it>
Organization linux.* mail to news gateway

Cross-posted to 2 groups.

Show all headers | View raw


On Wed, Mar 22, 2017 at 02:42:30AM +0000, Ben Hutchings wrote:
> Control: retitle -1 TX watchdog fires on e1000e interface with flow control enabled
> 
> On Tue, 2017-03-21 at 18:36 -0400, Bruce Momjian,,, wrote:
> > On Tue, Mar 21, 2017 at 04:04:11PM -0400, Bruce Momjian,,, wrote:
> > > I think this proves my problems are related to flow control.  How would
> > > you like to proceed?  Is there a patch or change you would like me to
> > > test?  Just close the ticket?
> > > 
> > > I have a fix, but it is likely others would not know they had this
> > > problem unless they were monitoring their kernel logs or their network
> > > traffic for lag.
> > 
> > Oh, I should also mention the port that is having problems is connected
> > to a NetGear GS108Ev3 switch, with current firmware, version 2.00.09. 
> > The port connected to my Actiontec FIOS router is not having problems.
> 
> I don't know about any specific bug, but if the switch sends flow
> control XOFF frames continually for long enough (usually 5 seconds)
> this will trigger the TX watchdog.

Makes sense.

> It sounds like your switch implements flow control properly (some
> broken switches auto-negotiate it but actually flood flow control
> frames).  However, if a device on some other port (that also has flow

If I turn off flow control on the switch port, and leave the Debian
server at defaults, the Debian port automatically turns off flow
control, which must be what 'autoneg' is meant to do.

> control enabled) sends XOFF frames continually *and* your server sends
> frames that should go to that other port, the switch will do the same
> to the server once the switch's internal queue has filled up.

What I could do it to turn off flow control on all switch ports _except_
the Debian server.  The switch has per-port flow control management
control.

> If the switch has port statistics including numbers of pause frames
> then you can see where they are coming from, but I think it doesn't.
> Without that information it's going to be hard to tell exactly where
> the fault lies.

Yeah, I don't see flow control stats on the switch, just CRC error
reporting.

> The e1000e driver *does* have statistics for pause frames transmitted
> and received (run: "ethtool -S eth0| grep flow_control").  If you log
> these every second then it should be possible to see what happens
> around the time the TX watchdog fires.  That could provide some clues
> as to whether the NIC is behaving correctly.

OK, I am running this after setting flow control on/default on the
switch and Debian, and rebooting:

	daemon -- sh -c "while :; do date;ethtool -S eth0| grep flow_control;
	sleep 1;done > /root/ethtool"

I will report back with the relevant logging lines once it hangs again. 
Thanks.

-- 
  Bruce Momjian  <bruce@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

+ As you are, so once was I.  As I am, so you will be. +
+                      Ancient Roman grave inscription +

Back to linux.debian.bugs.dist | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Bug#858125: e1000: ethernet interface hangs occasionally, kernel reports hang Ben Hutchings <ben@decadent.org.uk> - 2017-03-18 22:10 +0100
  Bug#858125: e1000: ethernet interface hangs occasionally, kernel reports hang "Bruce Momjian,,," <bruce@momjian.us> - 2017-03-18 22:20 +0100
    Bug#858125: e1000: ethernet interface hangs occasionally, kernel reports hang Ben Hutchings <ben@decadent.org.uk> - 2017-03-18 23:10 +0100
      Bug#858125: e1000: ethernet interface hangs occasionally, kernel reports hang "Bruce Momjian,,," <bruce@momjian.us> - 2017-03-18 23:20 +0100
        Bug#858125: e1000: ethernet interface hangs occasionally, kernel reports hang "Bruce Momjian,,," <bruce@momjian.us> - 2017-03-18 23:40 +0100
          Bug#858125: e1000: ethernet interface hangs occasionally, kernel reports hang "Bruce Momjian,,," <bruce@momjian.us> - 2017-03-21 21:10 +0100
            Bug#858125: e1000: ethernet interface hangs occasionally, kernel reports hang "Bruce Momjian,,," <bruce@momjian.us> - 2017-03-21 23:40 +0100
              Bug#858125: e1000: ethernet interface hangs occasionally, kernel reports hang Ben Hutchings <ben@decadent.org.uk> - 2017-03-22 03:50 +0100
                Bug#858125: e1000: ethernet interface hangs occasionally, kernel reports hang "Bruce Momjian,,," <bruce@momjian.us> - 2017-03-22 04:20 +0100
                Bug#858125: e1000: ethernet interface hangs occasionally, kernel reports hang "Bruce Momjian,,," <bruce@momjian.us> - 2017-03-23 04:50 +0100
                Bug#858125: e1000: ethernet interface hangs occasionally, kernel reports hang "Bruce Momjian,,," <bruce@momjian.us> - 2017-03-23 20:30 +0100
                Bug#858125: e1000: ethernet interface hangs occasionally, kernel reports hang "Bruce Momjian,,," <bruce@momjian.us> - 2017-04-11 00:10 +0200
  Bug#858125: e1000: ethernet interface hangs occasionally, kernel reports hang "Bruce Momjian,,," <bruce@momjian.us> - 2017-03-18 23:00 +0100

csiph-web