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 smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 58566C369C2 for ; Wed, 16 Apr 2025 22:44:42 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id E44FD82224; Wed, 16 Apr 2025 22:44:41 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id d_lxAThrY_AG; Wed, 16 Apr 2025 22:44:41 +0000 (UTC) X-Comment: SPF check N/A for local connections - client-ip=140.211.166.142; helo=lists1.osuosl.org; envelope-from=intel-wired-lan-bounces@osuosl.org; receiver= DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 3FCDE83AC0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=osuosl.org; s=default; t=1744843481; bh=qTfXOS9wIUtvYZqj3Y6e/HDZwtA+oZwryo4LrIunhhY=; h=Date:From:To:Cc:In-Reply-To:References:Subject:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=n/2tcf9PoivB4cXKJIaXMux2XSH7h0Z5N6M0nZmdf18Jz1Ee6Uh+Nkig0hvmEBbpB mmiHaJeG1z/ZJh7l2BeO7mUPXdgB4s4tyaWclXKss2GF2VjJ+78i76oUnun19ycwGr 1q/MJ12BTl3zT+sUL4YWiILqnU2NaNHfj9GPtjCZ+qCct8pdRhU/TnFziGtz869hIf j9KX+ghVXumLYVTbeq7RQe7SS8NMccS1rspCuDcJe4CkcumLj7e1AuBsgHqYEhQYdQ vpUEKoPiZ8ZLB42q1sUzVIhm5JwaRZms7MiuWtJ0rpfqY79JkR8+oMMmCwSfCynCpU g/RXCleprTyNQ== Received: from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142]) by smtp1.osuosl.org (Postfix) with ESMTP id 3FCDE83AC0; Wed, 16 Apr 2025 22:44:41 +0000 (UTC) Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by lists1.osuosl.org (Postfix) with ESMTP id 105AF444 for ; Wed, 16 Apr 2025 22:44:40 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 0209E60D72 for ; Wed, 16 Apr 2025 22:44:40 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id HkRZJq_rXoIo for ; Wed, 16 Apr 2025 22:44:38 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=2600:3c0a:e001:78e:0:1991:8:25; helo=sea.source.kernel.org; envelope-from=kuba@kernel.org; receiver= DMARC-Filter: OpenDMARC Filter v1.4.2 smtp3.osuosl.org 726536FA20 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 726536FA20 Received: from sea.source.kernel.org (sea.source.kernel.org [IPv6:2600:3c0a:e001:78e:0:1991:8:25]) by smtp3.osuosl.org (Postfix) with ESMTPS id 726536FA20 for ; Wed, 16 Apr 2025 22:44:38 +0000 (UTC) Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sea.source.kernel.org (Postfix) with ESMTP id E400A440E7; Wed, 16 Apr 2025 22:44:36 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7A5C4C4CEE2; Wed, 16 Apr 2025 22:44:37 +0000 (UTC) Date: Wed, 16 Apr 2025 15:44:36 -0700 From: Jakub Kicinski To: Jaroslav Pulchart Cc: Przemek Kitszel , jdamato@fastly.com, intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org, Tony Nguyen , Igor Raits , Daniel Secik , Zdenek Pesek , Eric Dumazet , Martin Karsten , Ahmed Zaki , "Czapnik, Lukasz" , Michal Swiatkowski Message-ID: <20250416154436.179ba4e9@kernel.org> In-Reply-To: References: <4a061a51-8a6c-42b8-9957-66073b4bc65f@intel.com> <20250415175359.3c6117c9@kernel.org> <20250416064852.39fd4b8f@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1744843477; bh=lcZgJn+CvHo3YOwlCWFiXBOitE/C42Pup5tjkuVMIlE=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=eOGZUeCgsqkIQJN3WKGWc29qCuIX7rfm4g9qqXSXauJezCXZ3Dlp9sWL2tTg3JWfD 1bhTySYoAaMiIBmaWt3yTDFyfUR/3pFNnNkUph7SMWizmsmNRwiA0xSkMIX4+u2PjD auheV/4odqN0Ufgv6DnfGYK0UdfyNnGSrw+ls5exWkWwmuAX18sVyEYrLpgxmmWCOn KQOVryisXtvOjf1WQ1jAaYJGmHLJQ6x3Y7CDDuXxj066Ks6cAfW1HsoFzpM978NSNA P0QBwKI4xOJz5vrD2240ElQ0qfPcEKXphiIp9vy0wuBqJg3LEIRWMviuLnDQDXaRIm HrgT4LI2S50dA== X-Mailman-Original-Authentication-Results: smtp3.osuosl.org; dmarc=pass (p=quarantine dis=none) header.from=kernel.org X-Mailman-Original-Authentication-Results: smtp3.osuosl.org; dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=eOGZUeCg Subject: Re: [Intel-wired-lan] Increased memory usage on NUMA nodes with ICE driver after upgrade to 6.13.y (regression in commit 492a044508ad) X-BeenThere: intel-wired-lan@osuosl.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Intel Wired Ethernet Linux Kernel Driver Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-wired-lan-bounces@osuosl.org Sender: "Intel-wired-lan" On Wed, 16 Apr 2025 18:03:52 +0200 Jaroslav Pulchart wrote: > > FWIW you can also try the tools/net/ynl/samples/page-pool > > application, not sure if Intel NICs init page pools appropriately > > but this will show you exactly how much memory is sitting on Rx rings > > of the driver (and in net socket buffers). > > I'm not familiar with the page-pool tool, I try to build it, run it > and nothing is shown. Any hint/menual how to use it? It's pretty dumb, you run it and it tells you how much memory is allocated by Rx page pools. Commit message has an example: https://web.git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=637567e4a3ef6f6a5ffa48781207d270265f7e68 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 76F361E1E09 for ; Wed, 16 Apr 2025 22:44:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744843478; cv=none; b=bYu8Lq/FGYFi/wVMxpILE08K36Sj/gG54hOfDrpyZJTYD0yDRTtFT/Ow1s83dtLNGV095R2JW74qVLhJ6WJE+XVflN9ueSZiDWw/iANWrCnjivVFqoMBjfCWLl9dgGKRpuLFXucoIJeEGVHbBKUG3n8GuXKEC6LFBdTqgTBjKrU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744843478; c=relaxed/simple; bh=lcZgJn+CvHo3YOwlCWFiXBOitE/C42Pup5tjkuVMIlE=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=LLwC3HuxBQ5VSzfzsqSpGCBiImSp8EvIKV0IT5rUC4N08Vtc0sC0Ml/rdfBN56CGyRxq8IzcmelKbMG3tQ7StAk6fHwsWFrpM7c3+uZgW4hRcMGfEOzDXYyYag8z9wwwZPDBOj0Un+vaqA37wU616ltGbj+bzmIZdyLCMNPIQqc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=eOGZUeCg; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="eOGZUeCg" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7A5C4C4CEE2; Wed, 16 Apr 2025 22:44:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1744843477; bh=lcZgJn+CvHo3YOwlCWFiXBOitE/C42Pup5tjkuVMIlE=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=eOGZUeCgsqkIQJN3WKGWc29qCuIX7rfm4g9qqXSXauJezCXZ3Dlp9sWL2tTg3JWfD 1bhTySYoAaMiIBmaWt3yTDFyfUR/3pFNnNkUph7SMWizmsmNRwiA0xSkMIX4+u2PjD auheV/4odqN0Ufgv6DnfGYK0UdfyNnGSrw+ls5exWkWwmuAX18sVyEYrLpgxmmWCOn KQOVryisXtvOjf1WQ1jAaYJGmHLJQ6x3Y7CDDuXxj066Ks6cAfW1HsoFzpM978NSNA P0QBwKI4xOJz5vrD2240ElQ0qfPcEKXphiIp9vy0wuBqJg3LEIRWMviuLnDQDXaRIm HrgT4LI2S50dA== Date: Wed, 16 Apr 2025 15:44:36 -0700 From: Jakub Kicinski To: Jaroslav Pulchart Cc: Przemek Kitszel , jdamato@fastly.com, intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org, Tony Nguyen , Igor Raits , Daniel Secik , Zdenek Pesek , Eric Dumazet , Martin Karsten , Ahmed Zaki , "Czapnik, Lukasz" , Michal Swiatkowski Subject: Re: Increased memory usage on NUMA nodes with ICE driver after upgrade to 6.13.y (regression in commit 492a044508ad) Message-ID: <20250416154436.179ba4e9@kernel.org> In-Reply-To: References: <4a061a51-8a6c-42b8-9957-66073b4bc65f@intel.com> <20250415175359.3c6117c9@kernel.org> <20250416064852.39fd4b8f@kernel.org> 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 Wed, 16 Apr 2025 18:03:52 +0200 Jaroslav Pulchart wrote: > > FWIW you can also try the tools/net/ynl/samples/page-pool > > application, not sure if Intel NICs init page pools appropriately > > but this will show you exactly how much memory is sitting on Rx rings > > of the driver (and in net socket buffers). > > I'm not familiar with the page-pool tool, I try to build it, run it > and nothing is shown. Any hint/menual how to use it? It's pretty dumb, you run it and it tells you how much memory is allocated by Rx page pools. Commit message has an example: https://web.git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=637567e4a3ef6f6a5ffa48781207d270265f7e68