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 7B9C3C77B72 for ; Mon, 17 Apr 2023 23:37:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230249AbjDQXhc (ORCPT ); Mon, 17 Apr 2023 19:37:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59894 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230137AbjDQXhb (ORCPT ); Mon, 17 Apr 2023 19:37:31 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DA7AC59E2 for ; Mon, 17 Apr 2023 16:37:01 -0700 (PDT) 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 dfw.source.kernel.org (Postfix) with ESMTPS id CB1C462B29 for ; Mon, 17 Apr 2023 23:36:05 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CCF8CC433EF; Mon, 17 Apr 2023 23:36:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1681774565; bh=fMi2MjdIuohmFlNCMVjDK96WJ0oW3grC2Eq+4bQULx4=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=VzfKc6EdkAfjnK7UzL9XQ/OPCXZU8RQp5vK63f+F7Xoflvvh299U5bYBDTj7DKwMt goGbO/tVwG8iBsBFhSkuJGoUpMGO/Okwl5n42e4vGeiusBpOItU4NCM8/0kldpTPMK WtpUfOJvXgDigMN6j+GGNLph0r16d798206dc4mDS7u85vR2IZOOx9Q4BugcsLz/u5 bVAFVJrHTXGsojFiz5ElVUjE4YtWA4Epp4R93FvEhpxFUeDJXegh5mSW+kYF5y+UZj JD6dks8H71p2qfQfZO00jYC//J2VWXbHI12FV3z6oRGLEAD7P2BsRnQm7MCeCKzyR+ Dkygsr44b/hgw== Date: Mon, 17 Apr 2023 16:36:03 -0700 From: Jakub Kicinski To: Lorenzo Bianconi Cc: netdev@vger.kernel.org, hawk@kernel.org, ilias.apalodimas@linaro.org, davem@davemloft.net, edumazet@google.com, pabeni@redhat.com, lorenzo.bianconi@redhat.com, jdamato@fastly.com Subject: Re: [PATCH net-next] net: page_pool: add pages and released_pages counters Message-ID: <20230417163603.30be79bf@kernel.org> In-Reply-To: References: <20230414184653.21b4303d@kernel.org> <20230417111204.08f19827@kernel.org> 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 Mon, 17 Apr 2023 23:39:40 +0200 Lorenzo Bianconi wrote: > > Yup, that sounds better. > > ack, fine. I am now wondering if these counters are useful just during > debugging or even in the normal use-case. I was wondering about it too, FWIW, I think the most useful info is the number of outstanding references. But it may be a little too unflexible as a statistic. BPF attached to the trace point may be a better choice there, and tracepoints are already in place.