From owner-freebsd-net@FreeBSD.ORG Wed Oct 5 01:01:02 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 304E2106566C for ; Wed, 5 Oct 2011 01:01:02 +0000 (UTC) (envelope-from lacombar@gmail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id B593E8FC0C for ; Wed, 5 Oct 2011 01:01:01 +0000 (UTC) Received: by wyj26 with SMTP id 26so1558396wyj.13 for ; Tue, 04 Oct 2011 18:01:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=yAR1k+9TFwa3DKKiIz+W75fBueOB3LrJJM1vyX0DvyI=; b=Ys+TiApaALKD+56KxNlMMkZfuLWHpL8qMDA38IFMPxCGJXf336wiuSlnizQx9evJuf iCUZVlWI1/JNlakix/2g0c3u/l0ef6kIb1LA7jkmbIRRHV8kTMybdwamTSedjd5K5ChD a0+DVVADqH1UhWDZxAKwaX2ph26QNrDOV4RUU= MIME-Version: 1.0 Received: by 10.227.153.211 with SMTP id l19mr2254150wbw.51.1317776460371; Tue, 04 Oct 2011 18:01:00 -0700 (PDT) Received: by 10.180.103.33 with HTTP; Tue, 4 Oct 2011 18:01:00 -0700 (PDT) In-Reply-To: References: Date: Tue, 4 Oct 2011 21:01:00 -0400 Message-ID: From: Arnaud Lacombe To: Jack Vogel Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-net@freebsd.org Subject: Re: em(4) hang [Was: Re: igb(4) won't start with "igb0: Could not setup receive structures"] 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: Wed, 05 Oct 2011 01:01:02 -0000 Hi, On Thu, Mar 31, 2011 at 9:51 AM, Arnaud Lacombe wrote: > Hi > > [let's start a new thread :)] > > On Wed, Mar 30, 2011 at 2:22 PM, Jack Vogel wrote: >> Read the code in HEAD, em_local_timer() has a test of ALL the rx queues and >> will schedule a task that refreshes mbufs if they are empty. This has >> exactly the >> same effect as checking for some interrupt cause, a cause that is not >> available >> when using MSIX on 82574, but this approach works for everything. >> > ok, it took me a long time to reproduce the issue with em(4) version > 7.1.9, about 3h rather than a few minutes a month ago and only got > ~875 allocations failure vs. several thousand before, here are some > stats: > > # sysctl -a | grep missed > dev.em.0.mac_stats.missed_packets: 1917112 > dev.em.1.mac_stats.missed_packets: 0 > dev.em.2.mac_stats.missed_packets: 0 > dev.em.3.mac_stats.missed_packets: 0 > dev.em.4.mac_stats.missed_packets: 0 > dev.em.5.mac_stats.missed_packets: 0 > For the record, we had this issue at a customer today; the system was still using the driver from 7-STABLE. Fortunately, it should just be a matter of upgrading to the driver from HEAD, which we already know to be good, to fix the issue. Regards, - Arnaud