From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 202613D75 for ; Fri, 1 Dec 2023 06:55:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="pc0kazKs" 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> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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.