Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp2408457rdg; Mon, 14 Aug 2023 01:11:05 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFRV+n8ElNGoB1H6eAZltsBv3g8YXcimRuzTNN4/yPSueJlg2dEkeXdBvkv7eXWGgVfwmUb X-Received: by 2002:a05:6a21:99a6:b0:13d:7f7b:1926 with SMTP id ve38-20020a056a2199a600b0013d7f7b1926mr14761792pzb.11.1692000664825; Mon, 14 Aug 2023 01:11:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692000664; cv=none; d=google.com; s=arc-20160816; b=fagTd7+6FIKLBy5SIEFkHLFTq7CcJd5AdEoTGPXaHhNG9CjdQeju+vcoddBkxxBVtG yOflZqAjZjYV106al81qRvHWpyBteW4fLZSr6WcXWm+xyIrS61Ds2jfLQpcZSr7E4ysK O0f7iUlQe1LPqWz1BmfviFpmIzrZaeF+WlLgJPB/ykB6aWVtg7dUKiBHerr2vqDm9oTj JoX9Ty/qdDfO0VeKbcpIPg6AeBgAYll/X1KDjxhez5ODUO6FdeDENqFKR8mvtGeJVDZ2 Z0XPhlNGSwMOfyxJiR7OYRDscVnnbS4/N6xDu1/ibJKxV+vWdNLwnLXOIJF7sTd12zfS +UCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:authenticated-by; bh=JWg6lklMriiP6tgF6FFD2cGSI4gS7QPgWEKzbiKCNxU=; fh=piVYF8VaipfXht1f9D69DkAnczYEBSPfl1bUD9M5RWE=; b=iKyi024Dp+LJXHrg2Tp8hSIvVK1V5KdFmQ5OpbRaGlTeUrDjKiOqrZJTMs9Vhuu2iF gpsIx7koxhKbd7A1TwSMDYWLVi4Y9wpPWSrJ/HjGEvn25VMVohtDytRrs6C8CWqGMvv7 6nS2m1J4QTxShmiPza0XkSiawxpkjWjwlkp04EAZTelz3IjAzFxUXU4RWKB6jVtDgUEq mTLjM9EPNYka5vgyaK4MMWkHhwbrcds8rQlrwpmyPbaVmMQMOZr3F7kG/KmPO959dxzG k59aIKFEO82ZuG3P1I2ms27kSrjR4lEUDTSRZRY2N+4T+NxwLmXs7DN/w42IUiVm5dC/ X9jg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b26-20020a6567da000000b0053f3b62c207si7754599pgs.767.2023.08.14.01.10.52; Mon, 14 Aug 2023 01:11:04 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234030AbjHNHIQ convert rfc822-to-8bit (ORCPT + 99 others); Mon, 14 Aug 2023 03:08:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47242 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234036AbjHNHIG (ORCPT ); Mon, 14 Aug 2023 03:08:06 -0400 Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 5C2F2AC; Mon, 14 Aug 2023 00:08:03 -0700 (PDT) Authenticated-By: X-SpamFilter-By: ArmorX SpamTrap 5.77 with qID 37E76suY6029627, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (rtexh36506.realtek.com.tw[172.21.6.27]) by rtits2.realtek.com.tw (8.15.2/2.81/5.90) with ESMTPS id 37E76suY6029627 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 14 Aug 2023 15:06:54 +0800 Received: from RTEXDAG01.realtek.com.tw (172.21.6.100) by RTEXH36506.realtek.com.tw (172.21.6.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.17; Mon, 14 Aug 2023 15:07:13 +0800 Received: from RTEXMBS04.realtek.com.tw (172.21.6.97) by RTEXDAG01.realtek.com.tw (172.21.6.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.7; Mon, 14 Aug 2023 15:07:13 +0800 Received: from RTEXMBS04.realtek.com.tw ([fe80::e138:e7f1:4709:ff4d]) by RTEXMBS04.realtek.com.tw ([fe80::e138:e7f1:4709:ff4d%5]) with mapi id 15.01.2375.007; Mon, 14 Aug 2023 15:07:13 +0800 From: Hayes Wang To: Jakub Kicinski 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' Thread-Topic: Error 'netif_napi_add_weight() called with weight 256' Thread-Index: AQHZw8h1VlKS4AgmjUKpznAl5+SYmK/Tp70AgAAC4ICACvPXQP//7sWAgANr4sD//9pVAIAHlskA Date: Mon, 14 Aug 2023 07:07:13 +0000 Message-ID: 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> <20230809113732.5806b550@kernel.org> In-Reply-To: <20230809113732.5806b550@kernel.org> Accept-Language: zh-TW, en-US Content-Language: zh-TW X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.22.228.6] x-kse-serverinfo: RTEXDAG01.realtek.com.tw, 9 x-kse-antispam-interceptor-info: fallback x-kse-antivirus-interceptor-info: fallback Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-KSE-AntiSpam-Interceptor-Info: fallback X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,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 Jakub Kicinski > Sent: Thursday, August 10, 2023 2:38 AM [...] > 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. I mean that only the slow platform uses more than 64 budget, even I set the weight to 256. That is, for the fast platform, the actual used budget is always less than 64, even the weight is 256. > 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? I tested that slow embedded platform many years ago, so I don't remember the actual data. I think the difference is more than 400Mbps. Best Regards, Hayes