From: David Howells Subject: Re: r8169 tx batching(?) causing performance problems Date: Wed, 03 Oct 2018 21:19:40 +0100 Message-ID: <21374.1538597980@warthog.procyon.org.uk> References: <20181003.093146.431165270358997515.davem@davemloft.net> <23097.1538562476@warthog.procyon.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Cc: dhowells@redhat.com, nic_swsd@realtek.com, netdev@vger.kernel.org To: David Miller Return-path: Received: from mx1.redhat.com ([209.132.183.28]:43698 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726941AbeJDDJh (ORCPT ); Wed, 3 Oct 2018 23:09:37 -0400 In-Reply-To: <20181003.093146.431165270358997515.davem@davemloft.net> Content-ID: <21373.1538597980.1@warthog.procyon.org.uk> Sender: netdev-owner@vger.kernel.org List-ID: David Miller wrote: > Probably you are seeing some interrupt mitigation. > > It seems there is a difference in how the interrupt mitigation is > programmed on for 8168 chips vs. others by default. Most get > all zeros in the IntrMitigate register, whilst for 8168 chips > a value of 0x5151 is programmed. I'm not sure what that means. I can't seem to find a programmer's manual for the chip. > You can play with ethtool to mess with the coalescing settings > to see if this is part of the problem. These bits from "ethtool -c enp3s0"? rx-usecs: 200 rx-frames: 4 rx-usecs-irq: 0 rx-frames-irq: 0 tx-usecs: 200 tx-frames: 4 tx-usecs-irq: 0 tx-frames-irq: 0 > I bet this might explain the behavior you see after including > even Heiner's TXCFG_AUTO_FIFO patch. Thanks, David