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 E8F734D123 for ; Wed, 22 Nov 2023 16:21:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="hH4/G4FS" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9677BC433C8; Wed, 22 Nov 2023 16:21:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700670096; bh=YxSTGpi5wCjA4gd/xjRzTNwMG0wkCbpUfELzk/0OBG4=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=hH4/G4FSA5UKzOiAtk6WwvGyXHQCwR3swzXBBLu2R72yrM+IJR/TmUzCOff+4xYBB hp/odjD260CaTfNYcRI2DVL5UMqxOuXS+V+IbB/KQ1+Hzf0rVE395cWrHxcZoFJY8n qf8DgjyxWbX1JI3TUqPhmo4WKoJAzTAqtrgfQyv8P4Q9kcbYomYvgU0TkNl2ZVyM00 S1r72p0E3BgY4SRl/CWZRQ7i8K9sIJyIdtIV6+ZhkGmm9c9Vwvu9r/FFzDSNeHsc1e 97MCjqM7npDY5nTSlSkFKEIgtMB6hg+O6VCODO9f3EjkdCIc3JquRRJL7h9TwK8r1e qt4/hE9tDNaeQ== Message-ID: <114d3f16-2b49-46ab-b02a-dbf6ea9cd7c4@kernel.org> Date: Wed, 22 Nov 2023 17:21:32 +0100 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH net-next v3 07/13] net: page_pool: implement GET in the netlink API Content-Language: en-US To: Jakub Kicinski Cc: davem@davemloft.net, netdev@vger.kernel.org, edumazet@google.com, pabeni@redhat.com, almasrymina@google.com, ilias.apalodimas@linaro.org, dsahern@gmail.com, dtatulea@nvidia.com, willemb@google.com, kernel-team References: <20231122034420.1158898-1-kuba@kernel.org> <20231122034420.1158898-8-kuba@kernel.org> <27b172a5-5161-4fe2-90b1-83b83ef3b073@kernel.org> <20231122080042.212c054d@kernel.org> From: Jesper Dangaard Brouer In-Reply-To: <20231122080042.212c054d@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 11/22/23 17:00, Jakub Kicinski wrote: > On Wed, 22 Nov 2023 15:39:48 +0100 Jesper Dangaard Brouer wrote: >> Can we still somehow list "detached" page_pool's with ifindex==1 >> (LOOPBACK_IFINDEX) ? > > Do you mean filter at the kernel level to dump just them? Or whether > they are visible at all? > I mean if they are visible. > They are visible, with ifindex attribute absent. > Okay, I thought they would be listed with ifindex==1, but good to know. > If you mean filtering - I was considering various filters but it seems > like in "production" use we dump all the page pools, anyway. > The detached ones need to be kept in check, obviously, but the "live" > ones also have to be monitored to make sure they don't eat up too much > memory. > > The code we prepared at Meta for when this gets merged logs: > - sum(inflight-mem), not detached > - sum(inflight-mem), detached > - recycling rate (similar calculation to the sample in the last patch) > > It may be useful in CLI to dump all detached pools but ad-hoc CLI can > just filter in user space, doesn't have to be super efficient. I think it will be okay to let userspace filter these. --Jesper