Received: by 2002:a05:6358:51dd:b0:131:369:b2a3 with SMTP id 29csp143237rwl; Wed, 9 Aug 2023 12:14:06 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF65eB17zp/RZkq1GBlM9IZq6R5DRi+4HL2R7KH1qCfvBB5adYLMb5RmCwcBCEb2pcYD2UG X-Received: by 2002:a05:6512:3b8a:b0:4fe:3e89:fcb1 with SMTP id g10-20020a0565123b8a00b004fe3e89fcb1mr5017lfv.68.1691608445961; Wed, 09 Aug 2023 12:14:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691608445; cv=none; d=google.com; s=arc-20160816; b=yi9rLBE51+9EOvTG+OPHbtkZHe7EFtvtxYdpu+eLU29Ve4sAikxhwpgHRjB4yLUpjR m78xluAZT6VUkE+XRK/2Imlvv+QGxmvvEwipMoPgJQ/mlJulDrQ97w9Jh4Gna1YbhVjD kpoESE5hIxmqvWVQ2NWoPsm0GrdGR3udhSdp2RVLpURd3akm9PRYcxwWBea9fLRUTwJl 6iojcuZR/V7ZIMArnPj+ylO6hZ71kzGyLBNrw20Y2a9exIHtCKucpw/gCTsT+YB4I1Pd M2Z1kX3a9VcOtym3urS9dGIcUu9XXZmgZqy9++6zLKG5Mu4PtA0FmI8mRpDUM3hB5x/X jcfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=5UJjow88DNwuN/Q/LOhh2RecIKxgxf30adtbDQYrtdA=; fh=wj1IlixCz7H3YnggIb7+stkWDIgWJeC6c++IwS2f/ow=; b=BQQEQT10JhC232DtLLX3VovNX2R18LmvKlw7vjy++OC9E9tHZGvgQU11L9Hj3EurW9 AO2d0TijigOBVoGtbesjmb0E1wxomFCKuN8i7QL+UxLD4JqD2dduDT+k0PazjwfG1Hen X6wmxHIj3cTpMCKRQwA9H3UZ0UTP81JLe2e2iDcgKAgEj+1Nf1iUfLPWK/hbCOwWTo3k Q5Hg+OPFDHGi7zO4p3Ksaixy4nLWSawsejPbHHj1nFJ0GeseSUPcIDpdN78wtBS4F1Wn XprJ6X2NUIX33x1T6OOFXq2bCRQ5GQTDe+rFqeAUUw/5aRNrCVtIQ/kS5Z0pU9o3gb8t LxUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tNtv4qri; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b25-20020a05640202d900b00523384d6840si4917499edx.453.2023.08.09.12.13.40; Wed, 09 Aug 2023 12:14:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tNtv4qri; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231739AbjHIShg (ORCPT + 99 others); Wed, 9 Aug 2023 14:37:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45548 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229969AbjHIShg (ORCPT ); Wed, 9 Aug 2023 14:37:36 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9A3DC1FCC; Wed, 9 Aug 2023 11:37:35 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 2EB1764371; Wed, 9 Aug 2023 18:37:35 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 191A5C433C7; Wed, 9 Aug 2023 18:37:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691606254; bh=1MHKH+VT4pP3zt6uWdZ73JYnRTASX2BWF0tTKLUP1nQ=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=tNtv4qri17Ilzavg6eK79JpHSCs4yVQaN0POB4npvphxrfHheCZxNaUVAZcx982u8 aBTguFR50/2cMS4Hin9uWhHg0LK6poWe+uDpSCHhwdk2/3hbuQ7ZS/9sI22a4zH58s 2XVYQjXiZm0GTlwnRPnkke0Tx4pbHKBGkwOiF7SWJitLeZH/ti8bYGzJzA8o35zIFC w1RIxtRA2yp7S+dddvVJk81/2pnt5a29A09jIlb2Q4PRRu6GFoENQbCPcN5LV0+hwZ 25DAnNpq9CfGSY8OaMw5X/qPk2WutiikDVNnPWGjp2EdBebJilmViNhU/UqTzeRG5S N5/pu5GRnf+Kw== Date: Wed, 9 Aug 2023 11:37:32 -0700 From: Jakub Kicinski To: Hayes Wang Cc: "Limonciello, Mario" , "edumazet@google.com" , LKML , "netdev@vger.kernel.org" , "davem@davemloft.net" , "linux-usb@vger.kernel.org" , "pabeni@redhat.com" , "Paul Menzel" Subject: Re: Error 'netif_napi_add_weight() called with weight 256' Message-ID: <20230809113732.5806b550@kernel.org> In-Reply-To: References: <0bfd445a-81f7-f702-08b0-bd5a72095e49@amd.com> <20230731111330.5211e637@kernel.org> <673bc252-2b34-6ef9-1765-9c7cac1e8658@amd.com> <8fcbab1aa2e14262bea79222bf7a4976@realtek.com> <20230807093727.5249f517@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 9 Aug 2023 13:11:57 +0000 Hayes Wang wrote: > I think it depends on the platform. > Most of the platforms don't have the same situation. > Besides, I think the platform with 100Gbps device may > have faster CPU than that one which I test. > > What would happen, if I set the weight to 256 on the platform > which runs well for the weight of 64? > Doesn't it only influence the slow platform? High weight will cause higher latency for other softirq and RT processing, it's not a good idea. Even with weight/budget of 64 if there's no higher prio work to do the driver will be polled again immediately if it consumed the budget and has more packets. Do you have some actual data on how the device performs with budget of 64 and 256? And maybe perf traces to show where the difference goes?