Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp839067rdb; Thu, 30 Nov 2023 22:55:48 -0800 (PST) X-Google-Smtp-Source: AGHT+IFCLnFcCQKSAA0/G2fvDU5PRitUYxPE8bsKYGKgs9mkyO5XgXqiYhjVKpwSxCcJavBiJhVI X-Received: by 2002:a17:902:ee82:b0:1cc:1ee2:d41d with SMTP id a2-20020a170902ee8200b001cc1ee2d41dmr24335627pld.39.1701413748086; Thu, 30 Nov 2023 22:55:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701413748; cv=none; d=google.com; s=arc-20160816; b=Xkk8+t1FuwLAlGKDWe53iyrojq/BbZYifM+2Et/awdpbI3ydoUbSEWGBbWi+HPKo/0 /U6mkiDdprtBMbDakf0x1/DtTuEfXouiU676R5l/TNDGGG5c9ZTusBK7PzNGrt/lB5+q C7RVmCsy8S0OPZpU4nE5RIDj4+IX22fCeWzSQnafgvP19OmL3N4y+VTFHyHeFJahms0w 56K5hp5CCVvEjqLG9ueqZ6JESdjBznJH7jk+gVgw//87RcA7hpXduj82rOrsYK+o9gc7 Lkftuocoom0bHQZCqwjFg937Qn3ROjQxwXLKUmvyeZJ2nowkPwuB3IMoG+UL9MPFfS/m ApUA== 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=xM1H6wrIelBlUMA1VwAy2CUp5efFWDd/m8inOCF7Bpg=; fh=oZLMSOHRQ2zSitqdPyplCkgCmKQjKn/gJ/DymR+mK+4=; b=Pf/jGiNTvUIDCqD5V/FgqlG2McItQP0JCyGLksKLIS7KjkqTspPKSyOXYKC1/3d8xJ i/EsuTG0Sji1X0CTDLXjJI0z1perDxCjqgfTELKhMPcPA8dQd3yJiOTBzHAktNFl++hJ rgCUIFmbRL+VRBjpunv1pabw+YPTRLTyS2n7TMX/O1tFcryzBCfQFI3zxPhX6rx5gnvQ 1A+jTj8YMrwb5/162jFdRIZVa8tJGhJ9H+P+rao5I95/bWvAT+FfmyMtIHfmnYKgDjYg U47Bg+Mhy8UbQVK1X2uONmHzC0fig+lp5otyu8qv1OSSvEEUNzqsrMLRQ6afYydSru2e ncGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pc0kazKs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id y23-20020a1709027c9700b001cfd66f31ccsi2744104pll.55.2023.11.30.22.55.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 22:55:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pc0kazKs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 02C9480FCCB4; Thu, 30 Nov 2023 22:55:46 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377629AbjLAGzV (ORCPT + 99 others); Fri, 1 Dec 2023 01:55:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42494 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229830AbjLAGzU (ORCPT ); Fri, 1 Dec 2023 01:55:20 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F03D31724 for ; Thu, 30 Nov 2023 22:55:26 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D93EFC433CA; Fri, 1 Dec 2023 06:55:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701413726; bh=rvlUpmCWet3DQSETpKuQuIH6X2X3rucwyaSzL3cBqiA=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=pc0kazKsvlCfPs4Z3xYAx0puK+inFDLkK4qFrkNh8zKe4t1UwmC8qYzYiWmHRUPHJ lcOj9w/9965gZb+M30Y1vBvNU6rkgVBW2tWol+SKtsndToHXvY1LL79b/XeZlWVird HZ2kQbcUuscBK38s/3Vd3Z0lD9d8caViEk02OudksTno6ezB//2npADfKRHfA4w9Kz jqKTO4NWB5faullFHz+7PG8dUi91obE6Mlv4L5GYCm5dYuICUeUov9ll9L3GRLjSn4 HyRxjgh3gKM3QWOitiqCLDCLF+Ro9XzjqmDHH5G18pQXJ7Qi6wDn+01NMhT+EDARgp XWdqR+sSu+/ig== Date: Thu, 30 Nov 2023 22:55:24 -0800 From: Jakub Kicinski To: Alexander Lobakin Cc: "David S. Miller" , Eric Dumazet , Paolo Abeni , Maciej Fijalkowski , Michal Kubiak , Larysa Zaremba , Alexander Duyck , Yunsheng Lin , "David Christensen" , Jesper Dangaard Brouer , Ilias Apalodimas , "Paul Menzel" , , , Subject: Re: [PATCH net-next v5 13/14] libie: add per-queue Page Pool stats Message-ID: <20231130225524.76d41381@kernel.org> In-Reply-To: <289bf666-b985-4dc4-bf0a-16b1ae072757@intel.com> References: <20231124154732.1623518-1-aleksander.lobakin@intel.com> <20231124154732.1623518-14-aleksander.lobakin@intel.com> <20231129062914.0f895d1c@kernel.org> <289bf666-b985-4dc4-bf0a-16b1ae072757@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Thu, 30 Nov 2023 22:55:46 -0800 (PST) On Thu, 30 Nov 2023 17:45:10 +0100 Alexander Lobakin wrote: > > Meh, this way the stats won't survive ifdown/ifup cycles as usually > > page_pools get destroyed on ifdown :z > > In that patch, I backup the PP stats to a device-lifetime container when > > the pool gets destroyed, maybe we could do something similar? > > I still can pull the PP stats to the driver before destroying it, but > there's no way to tell the PP I have some archived stats for it. Maybe > we could have page_pool_params_slow::get_stats() or smth like this? Why do you think the historic values matter? User space monitoring will care about incremental values. It's not like for page pool we need to match the Rx packet count.