From owner-freebsd-bugs@freebsd.org Thu Feb 4 21:53:27 2016 Return-Path: Delivered-To: freebsd-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 95797A9CF14 for ; Thu, 4 Feb 2016 21:53:27 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 83D96C6D for ; Thu, 4 Feb 2016 21:53:27 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u14LrRvq057619 for ; Thu, 4 Feb 2016 21:53:27 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 206932] 8111 card stops responding under high load in netmap mode Date: Thu, 04 Feb 2016 21:53:27 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 10.2-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: software-freebsd@interfasys.ch X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Feb 2016 21:53:27 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D206932 Bug ID: 206932 Summary: 8111 card stops responding under high load in netmap mode Product: Base System Version: 10.2-STABLE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: freebsd-bugs@FreeBSD.org Reporter: software-freebsd@interfasys.ch I've filed a bug report with netmap, but it seems the FreeBSD project is us= ing a different tree, so I'm reporting it here as well. I've reproduced the problem with * 10.1 * 10.2 * 10.2 with the netmap + re code from 11-CURRENT * 10.2 with netmap from the official repository (master) The problem is always the same Using pkt-gen and after 20 or so "batches", the card is overloaded and stops responding. I've tried various driver settings (polling, fast queue, no MSI, irq filtering, etc.), but nothing helped. There is a driver from Realtek, but it doesn't support netmap, so I've trie= d to patch it, but I've got exactly the same results as described in other netmap issues. Only one batch makes it. If I limit the rate, it fails after the to= tal of each batch matches the one of a default batch. One thing I've noticed in my tests is that the generic software implementat= ion (which works flawlessly, but eats a lot of CPU) has 1024 queues and when looking at the number of mbufs used with netstat, I can see that 1024 are in use. In dmesg, I can see that the realtek driver support 256 queues, but in nets= tat, it uses 512 and sometimes even more (erratic changes up to 600+ at which po= int things fail). Could this be the reason? Is this fixable in netmap or is this a driver iss= ue which should be reported in the FreeBSD project? Details about the card ``` re0: port 0xe000-0xe0ff mem 0x81300000-0x81300fff,0xa0100000-0xa0103fff irq 17 at dev= ice 0.0 on pci2 re0: Using 1 MSI-X message re0: turning off MSI enable bit. re0: Chip rev. 0x4c000000 re0: MAC rev. 0x00000000 miibus0: on re0 rgephy0: PHY 1 on miibus0 rgephy0: none, 10baseT, 10baseT-FDX, 10baseT-FDX-flow, 100baseTX, 100baseTX-FDX, 100baseTX-FDX-flow, 1000baseT-FDX, 1000baseT-FDX-master, 1000baseT-FDX-flow, 1000baseT-FDX-flow-master, auto, auto-flow re0: Using defaults for TSO: 65518/35/2048 re0: netmap queues/slots: TX 1/256, RX 1/256 re0@pci0:2:0:0: class=3D0x020000 card=3D0x012310ec chip=3D0x816810ec rev=3D= 0x0c hdr=3D0x00 vendor =3D 'Realtek Semiconductor Co., Ltd.' device =3D 'RTL8111/8168B PCI Express Gigabit Ethernet controller' class =3D network subclass =3D ethernet bar [10] =3D type I/O Port, range 32, base 0xe000, size 256, enabled bar [18] =3D type Memory, range 64, base 0x81300000, size 4096, enabl= ed bar [20] =3D type Prefetchable Memory, range 64, base 0xa0100000, size 16384, enabled ``` --=20 You are receiving this mail because: You are the assignee for the bug.=