From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4AB0BC5479D for ; Wed, 11 Jan 2023 18:46:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235307AbjAKSqc (ORCPT ); Wed, 11 Jan 2023 13:46:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45554 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235697AbjAKSqX (ORCPT ); Wed, 11 Jan 2023 13:46:23 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 262063C71C for ; Wed, 11 Jan 2023 10:46:22 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id B2FBFB81C0F for ; Wed, 11 Jan 2023 18:46:20 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 31658C433EF; Wed, 11 Jan 2023 18:46:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1673462779; bh=uyWoCOG87dg+gAuT0KEe4d6+Z9NasEQiTVCpuzsGMvE=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=Sf1VBVenABK6qEZ79OU5FkLUixmrHb5F45yXHnQor5N28kSbJTFTE/TagxxK++S6s p2Ppo6wmaD1RFHTTfOTMCUpT4n4+zAGVWR5w8Rp1r/Nld+fk65XsRwRmNYwP/NHAqC jdmzPsqExogtbbYZsJlAt2UIUB0yCF6wpA+ZiBJ+g0tHOlhy0RyGDSup7h1hTYETzc iL6yoJFmvYMjbaDzziIcHMiui4iGiZvPgx9CB5jBhRiAecF7moprtkjxmAqlQ5gWyA /t87a5nbQC7Cr3q3hIv2mLdPWEwniGeZFCQbkVpaltpP8UYlQlbUH0vzSP9ZGnjVst JrneBNOf8ct2g== Date: Wed, 11 Jan 2023 10:46:18 -0800 From: Jakub Kicinski To: jgh@redhat.com Cc: netdev@vger.kernel.org Subject: Re: [RFC PATCH net-next 0/7] NIC driver Rx ring ECN Message-ID: <20230111104618.74022e83@kernel.org> In-Reply-To: <20230111143427.1127174-1-jgh@redhat.com> References: <20230111143427.1127174-1-jgh@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Wed, 11 Jan 2023 14:34:20 +0000 jgh@redhat.com wrote: > Stats counters are incremented in ipv4 and ipv6 input processing, > with results: > > $ nstat -sz *Congest* > #kernel > Ip6InCongestionPkts 0 0.0 > IpExtInCongestionPkts 148454 0.0 > $ Do you have any reason to believe that it actually helps anything? NAPI with typical budget of 64 is easily exhausted (you just need two TSO frames arriving at once with 1500 MTU). Host level congestion is better detected using time / latency signals. Timestamp the packet at the NIC and compare the Rx time to current time when processing by the driver. Google search "Google Swift congestion control".