From owner-freebsd-net@FreeBSD.ORG Fri Oct 7 19:24:21 2011 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 29E47106566B for ; Fri, 7 Oct 2011 19:24:21 +0000 (UTC) (envelope-from mike@sentex.net) Received: from smarthost1.sentex.ca (smarthost1-6.sentex.ca [IPv6:2607:f3e0:0:1::12]) by mx1.freebsd.org (Postfix) with ESMTP id E10038FC0A for ; Fri, 7 Oct 2011 19:24:20 +0000 (UTC) Received: from [IPv6:2607:f3e0:0:4:f025:8813:7603:7e4a] (saphire3.sentex.ca [IPv6:2607:f3e0:0:4:f025:8813:7603:7e4a]) by smarthost1.sentex.ca (8.14.5/8.14.4) with ESMTP id p97JOHZQ063139; Fri, 7 Oct 2011 15:24:17 -0400 (EDT) (envelope-from mike@sentex.net) Message-ID: <4E8F51D4.1060509@sentex.net> Date: Fri, 07 Oct 2011 15:24:04 -0400 From: Mike Tancsa Organization: Sentex Communications User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 MIME-Version: 1.0 To: Jason Wolfe References: <4E8F157A.40702@sentex.net> In-Reply-To: X-Enigmail-Version: 1.1.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.71 on IPv6:2607:f3e0:0:1::12 Cc: freebsd-net@freebsd.org Subject: Re: Intel 82574L interface wedging on em 7.1.9/7.2.3 when MSIX enabled X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Oct 2011 19:24:21 -0000 On 10/7/2011 2:59 PM, Jason Wolfe wrote: > Mike, > > I had a large pool of servers running 7.2.3 with MSI-X enabled during my > testing, but it didn't resolve the issue. I just pulled back the > sys/dev/e1000 directory from 8-STABLE and ran it on 8-RELEASE-p2 though, so > if there were changes made outside of the actual driver code that helped I > may have not seen the benefit. It's possible the lagg is adding some > complication, but when one of the interfaces wedge the lagg continues to > operate over the other link (though half of the traffic simply fails). It > appears the interface just runs out of one of its buffers, and is helpless > to resolve it without a bounce. > > I do recall coming across the ASPM threads, but my Supermicro boards didn't > have the option and many people claimed it didn't resolve it, so I didn't > follow through. I'll do a bit more digging there, thanks. > > Disabling MSI-X has without a doubt completely resolved my problem though. I > would receive about 30 reports/failures a day from my servers when I was > running with it, since disabling it I haven't received a single one in ~40 > days. The servers are currently running with the 7.2.3 driver also, so if > nothing jumps out from my original email I'm happy to re enable it on a > handful of servers and collect some fresh reports. Hi Jason, This sounds like a real drag :( You certainly have WAY more servers to sample from than I do/did (a couple). The problem on my boxes were not very frequent to start with, so it would take a while. But the symptoms were very similar in that I would see queue overruns in the stats when things were wedged. I have other em nics (non 82574) that get the odd overrun when they are busy, but they seem to recover from the situation just fine. The 82574 did not. When you disable MSI-X, you mean via hw.pci.enable_msix=0 across the board, or you disable multi-queue for the NIC, so it uses just one interrupt, rather than separate ones for xmit and recv ? Also, what is the purpose of hw.pci.do_power_nodriver=3 vs 0 (3 means put absolutely everything in D3 state.) net.link.ifqmaxlen 1024 vs 50 (does anything else need to be adjusted of this value is increased?) hw.em.rxd="2048" hw.em.txd="2048" Have you tried leaving these two at the default on 7.2.3 ? if_em.h implies 1024 for each. ---Mike -- ------------------- Mike Tancsa, tel +1 519 651 3400 Sentex Communications, mike@sentex.net Providing Internet services since 1994 www.sentex.net Cambridge, Ontario Canada http://www.tancsa.com/