Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp6781971rwb; Mon, 5 Dec 2022 18:11:42 -0800 (PST) X-Google-Smtp-Source: AA0mqf7V72nE2vvxIFjCvFLAcgqWFGMhknyMMu+6LKXHiDC79mdMsWKYmKoR+Q8G2IWVTs+gCaKW X-Received: by 2002:a17:90a:7444:b0:219:d415:d7cd with SMTP id o4-20020a17090a744400b00219d415d7cdmr7960850pjk.89.1670292702517; Mon, 05 Dec 2022 18:11:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670292702; cv=none; d=google.com; s=arc-20160816; b=LRIe7eAf8rc6qnIWYbon5opvKa9c8JCWmqoKsJYB/2G8vPMnQgkL/JJUtcSeE1cN+P ffqiRNJY9TzjNzUuEakmgPAbAI2ciAkVgGP6g3PqLS2Wsh/rYrBMzdWshEx80BAq6DCs bIpNvt9YWrJ0oI73nAVkf8cXuA7Wao2erEAiDnoWlbqVLMilwFKXBIeuCfk1wlGLZbBD 1QJuVm5hZ7ROqMMmLjOFw1aU3FRB8haMiD301l3quaqUA9Ym1dCTGPMgln3ems0TPUyk xsExHV6cNh4x/eNZUudcGbKvl6kNvS7kK0BLN1N59kI/LcxESrhg72tc/i/GpBhZIugm EBGw== 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=TIB5iMFzg1Fkwmj5kErQ7nK2t9syks3lxxOR/v9EbxA=; b=w0DUNR9v6vSuWck5fAaZ83G95TtZBOY663eT6QriYO3OcLK6KBpNP2uvoKrN7ylg11 ef+NDi2iBvVjG5HDpG7fk0mHVENWLT7BHbMD7d5rrbM1+e2FfoQ9om1L45lxlQNEhrXh Nzkh1/z9kozBpge4UHgRfbQ8F74N+QNjqWBDDoPUtbJhKESqwrK02JP1qiMgs5qTPwM2 4EocnCToKbl1hI8ciYpTsDHK8Uy6JFSea/pKRQaszqYUdv+VohysP4o6ebyw3HFSVuZf kpFwAdkFs+IPbER0DiNhlJ7riCrzIfAwjq/b2rdssqqa8f7XqrLcsV2sASr6ISpR6ctA WJMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=n2znrPla; 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 ck12-20020a17090afe0c00b00219c54ac7dfsi5457120pjb.70.2022.12.05.18.11.32; Mon, 05 Dec 2022 18:11:42 -0800 (PST) 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=n2znrPla; 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 S233033AbiLFBxW (ORCPT + 79 others); Mon, 5 Dec 2022 20:53:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57836 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230036AbiLFBxT (ORCPT ); Mon, 5 Dec 2022 20:53:19 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 89B7012D27; Mon, 5 Dec 2022 17:53:18 -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 45CC5B81607; Tue, 6 Dec 2022 01:53:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 688BCC433C1; Tue, 6 Dec 2022 01:53:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1670291595; bh=TIB5iMFzg1Fkwmj5kErQ7nK2t9syks3lxxOR/v9EbxA=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=n2znrPlavG0M+tdsb/fC8mvZ1EfWMA/q8H3YB3FryOejbNuNQ+T7r7WWbgTZhGPp4 1Y9T7sjQbQZpanF+NHIUc5h3K85xt/bstXrTd7Gv1plHwQK1T0Sou/PBVJRCBoGIC2 02gb0HgoSAvPKjI39MwISyAtwvr936lYJDjDIAFZRZ3vn91n4OWh7D/hLZaxIndi+u kkKUxgGhTjMGYvsjeWT4z61dU56QnSzMDH+DpOaeCGbfCaFuibkv5NJQyrX8tGObNC A5k2sc+dV9mT5QemKfvynSwDVwqhVsyVaEHuQ9rhFty/nu6PxyVVsMS/U4eaaQvh3I PJQJyR+aLqkfg== Date: Mon, 5 Dec 2022 17:53:14 -0800 From: Jakub Kicinski To: Cc: , , , , , , , , , , Subject: Re: [PATCH linux-next] net: record times of netdev_budget exhausted Message-ID: <20221205175314.0487527a@kernel.org> In-Reply-To: <202212031612057505056@zte.com.cn> References: <202212031612057505056@zte.com.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 Sat, 3 Dec 2022 16:12:05 +0800 (CST) yang.yang29@zte.com.cn wrote: > A long time ago time_squeeze was used to only record netdev_budget > exhausted[1]. Then we added netdev_budget_usecs to enable softirq > tuning[2]. And when polling elapsed netdev_budget_usecs, it's also > record by time_squeeze. > For tuning netdev_budget and netdev_budget_usecs respectively, we'd > better distinguish netdev_budget exhausted from netdev_budget_usecs > elapsed, so add a new recorder to record netdev_budget exhausted. You're tuning netdev_budget and netdev_budget_usecs ? You need to say more because I haven't seen anyone do that before. time_squeeze is extremely noisy and annoyingly useless, we need to understand exactly what you're doing before we accept any changes to this core piece of code.