From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hiroaki SHIMODA Subject: Re: Strange latency spikes/TX network stalls on Sun Fire X4150(x86) and e1000e Date: Wed, 6 Jun 2012 17:43:03 +0900 Message-ID: <20120606174303.0bfc9868.shimoda.hiroaki@gmail.com> References: <668eeb0d42a1678d9083a58deb3ac40d@visp.net.lb> <88c43001441945e1431609db252b69e7@visp.net.lb> <79d6b56fdf5f4be4656079568d5a7445@visp.net.lb> <20120529232518.e5b41759.shimoda.hiroaki@gmail.com> <1338959413.2760.3686.camel@edumazet-glaptop> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Tom Herbert , Denys Fedoryshchenko , netdev@vger.kernel.org, e1000-devel@lists.sourceforge.net, jeffrey.t.kirsher@intel.com, jesse.brandeburg@intel.com, davem@davemloft.net To: Eric Dumazet Return-path: Received: from mail-pz0-f46.google.com ([209.85.210.46]:36698 "EHLO mail-pz0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752555Ab2FFInH (ORCPT ); Wed, 6 Jun 2012 04:43:07 -0400 Received: by dady13 with SMTP id y13so8487646dad.19 for ; Wed, 06 Jun 2012 01:43:07 -0700 (PDT) In-Reply-To: <1338959413.2760.3686.camel@edumazet-glaptop> Sender: netdev-owner@vger.kernel.org List-ID: On Wed, 06 Jun 2012 07:10:13 +0200 Eric Dumazet wrote: > On Tue, 2012-05-29 at 23:25 +0900, Hiroaki SHIMODA wrote: > > > If I understand the code and spec correctly, TX interrupts are > > generated when TXDCTL.WTHRESH descriptors have been accumulated > > and write backed. > > > > I tentatively changed the TXDCTL.WTHRESH to 1, then it seems > > that latency spikes are disappear. > > > > drivers/net/ethernet/intel/e1000e/e1000.h > > @@ -181,7 +181,7 @@ struct e1000_info; > > #define E1000_TXDCTL_DMA_BURST_ENABLE \ > > (E1000_TXDCTL_GRAN | /* set descriptor granularity */ \ > > E1000_TXDCTL_COUNT_DESC | \ > > - (5 << 16) | /* wthresh must be +1 more than desired */\ > > + (1 << 16) | /* wthresh must be +1 more than desired */\ > > (1 << 8) | /* hthresh */ \ > > 0x1f) /* pthresh */ > > > > > Was this patch officially submitted ? > > Thanks ! Sorry for long delay. I'll post. (I have no idea how to fix this problem as keeping TXDCTL.WTHRESH to 5)