From nobody Fri Aug 5 17:47:42 2022 X-Original-To: stable@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4LztNQ2d3Cz4YY3W for ; Fri, 5 Aug 2022 17:47:50 +0000 (UTC) (envelope-from mike@sentex.net) Received: from smarthost1.sentex.ca (smarthost1.sentex.ca [IPv6:2607:f3e0:0:1::12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smarthost1.sentex.ca", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LztNP5HjLz3jTc; Fri, 5 Aug 2022 17:47:49 +0000 (UTC) (envelope-from mike@sentex.net) Received: from pyroxene2a.sentex.ca (pyroxene19.sentex.ca [199.212.134.19]) by smarthost1.sentex.ca (8.16.1/8.16.1) with ESMTPS id 275Hlgh4094577 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 5 Aug 2022 13:47:42 -0400 (EDT) (envelope-from mike@sentex.net) Received: from [IPV6:2607:f3e0:0:4:f0d5:2e0:4f18:84d6] ([IPv6:2607:f3e0:0:4:f0d5:2e0:4f18:84d6]) by pyroxene2a.sentex.ca (8.16.1/8.15.2) with ESMTPS id 275Hlg43093760 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NO); Fri, 5 Aug 2022 13:47:42 -0400 (EDT) (envelope-from mike@sentex.net) Message-ID: Date: Fri, 5 Aug 2022 13:47:42 -0400 List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-stable@freebsd.org X-BeenThere: freebsd-stable@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.1.0 Subject: Re: igc problems with heavy traffic Content-Language: en-US To: Jim King , stable@freebsd.org, kbowling@FreeBSD.org References: <59b9cec0-d8c2-ce72-b5e9-99d1a1e807f8@sentex.net> <86995d10-af63-d053-972e-dd233029f3bf@jimking.net> <3d874f65-8ce2-8f06-f19a-14cd550166e3@sentex.net> From: mike tancsa In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.84 on 64.7.153.18 X-Rspamd-Queue-Id: 4LztNP5HjLz3jTc X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of mike@sentex.net designates 2607:f3e0:0:1::12 as permitted sender) smtp.mailfrom=mike@sentex.net X-Spamd-Result: default: False [-3.40 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; R_SPF_ALLOW(-0.20)[+ip6:2607:f3e0::/32]; MIME_GOOD(-0.10)[text/plain]; RCVD_IN_DNSWL_LOW(-0.10)[199.212.134.19:received]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_ALL(0.00)[]; MLMMJ_DEST(0.00)[stable@freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; ASN(0.00)[asn:11647, ipnet:2607:f3e0::/32, country:CA]; R_DKIM_NA(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; FREEFALL_USER(0.00)[mike]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; DMARC_NA(0.00)[sentex.net]; TO_DN_SOME(0.00)[]; ARC_NA(0.00)[] X-ThisMailContainsUnwantedMimeParts: N On 8/5/2022 11:41 AM, Jim King wrote: > If I fiddle with the Flow Control settings it seems to make a > difference.  I can do it without bouncing the link.  I wonder what the > Linux driver has as default ? >> >> ie. >> >> sysctl -w dev.igc.1.fc=1 >> sysctl -w dev.igc.0.fc=1 >> >> Does it help in your case ? >> > Thanks for the suggestion.  Unfortunately it doesn't seem to help in > my case.  All four values for flow control give pretty much the same > results with my iperf test. > > Are you able to boot a RELENG_13 stable kernel and test ? I am using a stable kernel from a couple of days ago and setting the fc=0 (you set that on all nics right ?) does work for me both at 2.5G and 1G. Leaving the default causes the nic to bounce on my test boxes. I dont see any obvious big changes in the driver itself since 13.1 came out so I am guessing something else fixed or worked around this bug ? https://cgit.freebsd.org/src/log/?h=stable%2F13&qt=grep&q=igc Been running this loop for 30min without any link bounces #!/bin/sh TARGET=10.1.255.168 I=/usr/local/bin/iperf3 while true do $I -t 60 -c $TARGET sleep 2 $I -P4 -t 60 -c $TARGET sleep 2 $I -R -t 60 -c $TARGET sleep 2 $I  -R -P4 -t 60 -c $TARGET done Anything interesting come up in sysctl -a dev.igc ?     ---Mike