Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2408119imm; Sat, 15 Sep 2018 16:54:47 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZbsSqfnqlkYFVQjZQw3/OZH1YAfEU/Vgik99D5TcwS4qLyBvmZQN0lmbG3V+w4FTWQo1Lv X-Received: by 2002:a62:57dc:: with SMTP id i89-v6mr19146263pfj.45.1537055687653; Sat, 15 Sep 2018 16:54:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537055687; cv=none; d=google.com; s=arc-20160816; b=kpv2QSvImiF9BmJxP5r317lhA+rlhIOITGTJvNXJJ5BhM3WGLmCOSqBX+ih2u165uB 0msGgW9oMhm7yl+n0qpPZM1YWZLa4F3clijzfS4uXJJcjXvB2d7n6M/x/dof65C3LzKV LEEOqdjicBW6F0oVDvrc1TFPvwWS8cjQO8whLqgcftcnSxDX8uMRPB1yqqHPkK1P2Do4 acqYKqQzHCktBIkE4WltNo4pnZmkMyur8SoXMGHqh8COZfS+GHr9rV6Ajuu+0EpWovrq iq7ToZkhWG0corTY8M/DD2lf/CiBCqt4OIo705jEIBfKHA6jT4tJC7cT9XQaUdXrq/J0 2ptQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:openpgp:from:cc:references:to:subject; bh=DyQ87VDyfo9dHzLD72aJE2CVhSvMpqsMVCSMoevtuQY=; b=UR6No17SdhWi0C+3IK1z7IoQz+8sru7dLn52AZh9ksL5Bgn9pkZPH8y2MF9UUw3AYz Awh1c7XBtMwLkBml0bdNWXvoejp4NCsyz9/2mqGCa1f3SnWNm1I9R+z41ClUL77sg2i8 B/QiYVesIo0sBbI9c7fvRbp2yCHkzU4hfzdnmaYa3EIPoL2zMQRoy9lmKnIctfDR7OD5 j+oQYnFeAdaa8DtzdVOccx02dbfn9awI8bxcVAITG6vZBB4HlVuVVKgt3QJfe8QNHobO 1wtp1l4Ldl93TFgWUibyMkQ+IDT+0BFYETuGROTHkvyWbwMjXNVPT8HGcdQ/7Ky0YJ7h sftQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h27-v6si11164916pgh.245.2018.09.15.16.54.32; Sat, 15 Sep 2018 16:54:47 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727972AbeIPFPR (ORCPT + 99 others); Sun, 16 Sep 2018 01:15:17 -0400 Received: from vps-vb.mhejs.net ([37.28.154.113]:33412 "EHLO vps-vb.mhejs.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727099AbeIPFPR (ORCPT ); Sun, 16 Sep 2018 01:15:17 -0400 Received: from MUA by vps-vb.mhejs.net with esmtps (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.90_1) (envelope-from ) id 1g1KON-0004qL-0I; Sun, 16 Sep 2018 01:54:23 +0200 Subject: Re: kernel 4.18.5 Realtek 8111G network adapter stops responding under high system load To: David Arendt References: <4f54989b-9492-420e-374b-d8c9bddf0a7d@prnet.org> Cc: linux-kernel@vger.kernel.org, nic_swsd@realtek.com, netdev@vger.kernel.org From: "Maciej S. Szmigiero" Openpgp: preference=signencrypt Autocrypt: addr=mail@maciej.szmigiero.name; prefer-encrypt=mutual; keydata= xsFNBFpGusUBEADXUMM2t7y9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 A8JnAAAKCRCEf143kM4Jd9nXD/9jstJU6L1MLyr/ydKOnY48pSlZYgII9rSnFyLUHzNcW2c/ qw9LPMlDcK13tiVRQgKT4W+RvsET/tZCQcap2OF3Z6vd1naTur7oJvgvVM5lVhUia2O60kEZ XNlMLFwLSmGXhaAXNBySpzN2xStSLCtbK58r7Vf9QS0mR0PGU2v68Cb8fFWcYu2Yzn3RXf0Y dIVWvaQG9whxZq5MdJm5dknfTcCG+MtmbP/DnpQpjAlgVmDgMgYTBW1W9etU36YW0pTqEYuv 6cmRgSAKEDaYHhFLTR1+lLJkp5fFo3Sjm7XqmXzfSv9JGJGMKzoFOMBoLYv+VFnMoLX5UJAs 0JyFqFY2YxGyLd4J103NI/ocqQeU0TVvOZGVkENPSxIESnbxPghsEC0MWEbGsvqA8FwvU7Xf GhZPYzTRf7CndDnezEA69EhwpZXKs4CvxbXo5PDTv0OWzVaAWqq8s8aTMJWWAhvobFozJ63z afYHkuEjMo0Xps3o3uvKg7coooH521nNsv4ci+KeBq3mgMCRAy0g/Ef+Ql7mt900RCBHu4tk tOhPc3J1ep/e2WAJ4ngUqJhilzyCJnzVJ4cT79VK/uPtlfUCZdUz+jTC88TmP1p5wlucS31k Thy/CV4cqDFB8yzEujTSiRzd7neG3sH0vcxBd69uvSxLZPLGID840k0v5sftPA== Message-ID: <6c14f6d0-ea61-b8e6-57a2-940d32330ed2@maciej.szmigiero.name> Date: Sun, 16 Sep 2018 01:54:17 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.0 MIME-Version: 1.0 In-Reply-To: <4f54989b-9492-420e-374b-d8c9bddf0a7d@prnet.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [ I've added Realtek Linux NIC and netdev mailing lists to CC ] Hi David, On 15.09.2018 23:23, David Arendt wrote: > Hi, > > just a follow up: > > In kernel 4.18.8 the behaviour is different. > > The network is not reachable a number of times, but restarting to be > reachable by itself before it finally is no longer reachable at all. > > Here the logging output: > > Sep 15 17:44:43 server kernel: NETDEV WATCHDOG: enp3s0 (r8169): transmit > queue 0 timed out > Sep 15 17:44:43 server kernel: r8169 0000:03:00.0 enp3s0: link up > Sep 15 18:10:26 server kernel: r8169 0000:03:00.0 enp3s0: link up > Sep 15 18:12:24 server kernel: r8169 0000:03:00.0 enp3s0: link up > Sep 15 18:13:19 server kernel: r8169 0000:03:00.0 enp3s0: link up > Sep 15 18:14:48 server kernel: r8169 0000:03:00.0 enp3s0: link up > Sep 15 18:20:24 server kernel: r8169 0000:03:00.0 enp3s0: link up > Sep 15 18:34:19 server kernel: r8169 0000:03:00.0 enp3s0: link up > Sep 15 18:43:43 server kernel: r8169 0000:03:00.0 enp3s0: link up > Sep 15 18:46:26 server kernel: r8169 0000:03:00.0 enp3s0: link up > Sep 15 19:00:24 server kernel: r8169 0000:03:00.0 enp3s0: link up > > From 17:44 ro 18:46 the network is recovering automatically. After the > up from 19:00, the network is no longer reachable without any additional > message. > > If looking at ifconfig, the counter for TX packets is incrementing, the > counter for RX packets not. > > Here again the driver from 4.17.14 is working flawlessly. Could you please try this patch on top of 4.18.8: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=f74dd480cf4e31e12971c58a1d832044db945670 In my case the problem fixed by the above commit was only limited to bad TX performance but my r8169 NIC models were different from what you have. If this does not help then try bisecting the issue (maybe limited to drivers/net/ethernet/realtek/r8169.c to save time). If the NIC dies after a heavy load it might be possible to generate such load quickly by in-kernel pktgen. If that's not possible then at please least compare NIC register values displayed by "ethtool -d enp3s0" between working and non-working kernels. > Thanks in advance, > David Arendt Maciej > > > On 9/4/18 8:19 AM, David Arendt wrote: >> Hi, >> >> When using kernel 4.18.5 the Realtek 8111G network adapter stops >> responding under high system load. >> >> Dmesg is showing no errors. >> >> Sometimes an ifconfig enp3s0 down followed by an ifconfig enp3s0 up is >> enough for the network adapter to restart responding. Sometimes a reboot >> is necessary. >> >> When copying r8169.c from 4.17.14 to the 4.18.5 kernel, networking works >> perfectly stable on 4.18.5 so the problem seems r8169.c related. >> >> Here the output from lshw: >> >>         *-pci:2 >>              description: PCI bridge >>              product: 8 Series/C220 Series Chipset Family PCI Express >> Root Port #3 >>              vendor: Intel Corporation >>              physical id: 1c.2 >>              bus info: pci@0000:00:1c.2 >>              version: d5 >>              width: 32 bits >>              clock: 33MHz >>              capabilities: pci pciexpress msi pm normal_decode >> bus_master cap_list >>              configuration: driver=pcieport >>              resources: irq:18 ioport:d000(size=4096) >> memory:f7300000-f73fffff ioport:f2100000(size=1048576) >>            *-network >>                 description: Ethernet interface >>                 product: RTL8111/8168/8411 PCI Express Gigabit Ethernet >> Controller >>                 vendor: Realtek Semiconductor Co., Ltd. >>                 physical id: 0 >>                 bus info: pci@0000:03:00.0 >>                 logical name: enp3s0 >>                 version: 0c >>                 serial: >>                 size: 1Gbit/s >>                 capacity: 1Gbit/s >>                 width: 64 bits >>                 clock: 33MHz >>                 capabilities: pm msi pciexpress msix vpd bus_master >> cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt >> 1000bt-fd autonegotiation >>                 configuration: autonegotiation=on broadcast=yes >> driver=r8169 driverversion=2.3LK-NAPI duplex=full >> firmware=rtl8168g-2_0.0.1 02/06/13 latency=0 link=yes multicast=yes >> port=MII speed=1Gbit/s >>                 resources: irq:18 ioport:d000(size=256) >> memory:f7300000-f7300fff memory:f2100000-f2103fff >> >> Thanks in advance for looking into this, >> >> David Arendt >> >> >