From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Dumazet Subject: Re: Strange latency spikes/TX network stalls on Sun Fire X4150(x86) and e1000e Date: Fri, 25 May 2012 19:18:15 +0200 Message-ID: <1337966295.3347.57.camel@edumazet-glaptop> References: <668eeb0d42a1678d9083a58deb3ac40d@visp.net.lb> <88c43001441945e1431609db252b69e7@visp.net.lb> <79d6b56fdf5f4be4656079568d5a7445@visp.net.lb> <4775d023592b876909aceb152f94aa01@visp.net.lb> <1337540825.3361.0.camel@edumazet-glaptop> <1337572583.3361.8.camel@edumazet-glaptop> <6d7500e1c3b4b191c0b5a11003b161d6@visp.net.lb> <1337589005.3361.19.camel@edumazet-glaptop> <1337589620.3361.23.camel@edumazet-glaptop> <1337707497.3361.233.camel@edumazet-glaptop> <1337926938.7753.8.camel@edumazet-glaptop> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Cc: Denys Fedoryshchenko , netdev@vger.kernel.org To: Tom Herbert Return-path: Received: from mail-ey0-f174.google.com ([209.85.215.174]:62204 "EHLO mail-ey0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756553Ab2EYRST (ORCPT ); Fri, 25 May 2012 13:18:19 -0400 Received: by eaak11 with SMTP id k11so302946eaa.19 for ; Fri, 25 May 2012 10:18:18 -0700 (PDT) In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: On Fri, 2012-05-25 at 09:59 -0700, Tom Herbert wrote: > > TX completion has no budget, I am not sure what you mean. > > > Right, it's the budget on RX that can be a factor. TX completion is > done from the NAPI poll routine, so if RX does not complete the NAPI > is rescheduled and TX completion is done again for the same HW > interrupt. > > We need to remove the constraint that netdev_completed can only be > called once per interrupt... Not clear where is this constraint in the code. Under heavy load, we can be in a loop situation, one cpu serving NAPI for a bunch of devices (no more hardware interrupts are delivered since we dont re-enable them at all)