Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp446763rdb; Thu, 30 Nov 2023 08:46:41 -0800 (PST) X-Google-Smtp-Source: AGHT+IGlnzVSGCLi6mJdcIogkV/ROmsOQnmNIoX40e92g8499yRtW90MmtjonuVJjVEALCG4LD0q X-Received: by 2002:a05:6a20:428b:b0:18c:ae67:c202 with SMTP id o11-20020a056a20428b00b0018cae67c202mr15456883pzj.37.1701362801015; Thu, 30 Nov 2023 08:46:41 -0800 (PST) Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id bx41-20020a056a02052900b005c5e2ac7c3csi1734557pgb.732.2023.11.30.08.46.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 08:46:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=HlAwCwwh; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id DF9388029AA7; Thu, 30 Nov 2023 08:46:24 -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 S232327AbjK3QqD (ORCPT + 99 others); Thu, 30 Nov 2023 11:46:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58250 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232292AbjK3QqB (ORCPT ); Thu, 30 Nov 2023 11:46:01 -0500 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C0C6E1A3; Thu, 30 Nov 2023 08:46:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1701362767; x=1732898767; h=message-id:date:subject:from:to:cc:references: in-reply-to:content-transfer-encoding:mime-version; bh=ILv7ebFaOudQN/S4+Evz4tYInXQYrGcqq9pOWdjff1U=; b=HlAwCwwh8usSZTOHfERBoKuRm24f76DtiWRjDCk1z75o/vzgDCASsclS VZJltxL3KQ6GC/fUj/aU8fXxAoJPY8SxLMCgGdQLkatsc23wI/60vUpZy 1RxnbYnZfcaRNrwKWcSV7ARlRHgd0nyrIbpg9/YTgTFIvU/lIruoqaL/L Jg/kRNYMLIwYwSF48CjKdZ1zBOxhcvEuL7agvHLEzZ6pocQZ3jSTeUeuq X/p5DvJvc8pY40s4kzRfRLF4jTFROuj7k5OOlhHB/PGW5XatVIbJ6aRb2 g22G3ci2e2M9iaRZPWnbCypjcty39qdC86dRIIw0K3bk5YpXF2+HsG9AW g==; X-IronPort-AV: E=McAfee;i="6600,9927,10910"; a="373538838" X-IronPort-AV: E=Sophos;i="6.04,239,1695711600"; d="scan'208";a="373538838" Received: from orviesa001.jf.intel.com ([10.64.159.141]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Nov 2023 08:46:07 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.04,239,1695711600"; d="scan'208";a="17463787" Received: from fmsmsx601.amr.corp.intel.com ([10.18.126.81]) by orviesa001.jf.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 30 Nov 2023 08:46:07 -0800 Received: from fmsmsx611.amr.corp.intel.com (10.18.126.91) by fmsmsx601.amr.corp.intel.com (10.18.126.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.34; Thu, 30 Nov 2023 08:46:05 -0800 Received: from fmsmsx612.amr.corp.intel.com (10.18.126.92) by fmsmsx611.amr.corp.intel.com (10.18.126.91) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.34; Thu, 30 Nov 2023 08:46:04 -0800 Received: from fmsedg602.ED.cps.intel.com (10.1.192.136) by fmsmsx612.amr.corp.intel.com (10.18.126.92) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.34 via Frontend Transport; Thu, 30 Nov 2023 08:46:04 -0800 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (104.47.59.168) by edgegateway.intel.com (192.55.55.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.34; Thu, 30 Nov 2023 08:46:04 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Rs2Rmg4KyfRaEq548RYo5OIA0mct5wdvYPDcA9mMrZCL77q5WI63ol2WcK/45X7Y4JyGLikJEut1sJ/4Psdr2I3JfMKnCf/23bstCcOFatBcyQMqp7TRw/VQ14yJW9O4U7/Zeq4a5uPutHkzO+ZDEi69enDWasvfCs0Tkwl5uV4v2d+Tq0t0LMt1WMzxoieLB46inUFn7WAhGmLbprEj04ahO20x/HXRtxS1ya5cWqfSPpW8Xk3skZcD4u/6DDu47075dxyL5b0rv0GxRFZ6GxXMt9lcxKlzVhu9vkbKSRc8lqHH0CVvBbLoDFcdEwi4PtunhwFUI+MgLu8DEriLeA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=OLs8DxON27iZw44aB9vSAjpUkZWLT4kjQI84X3gMwG8=; b=NkZnmD901O6wIyp9y1LCNGvGxGOzE4dfzGSu7Exe3bKvEBDEg1IDkQZXNz9jqEIwBuv0QwYgrMW3ygKn/b/r9cpNI9AgPQ3JE8dXAeTdySw6fgW4DFmO4uLQHa/7Zt2ncxVYVFXcYPSFYrpyNrbk+5TMDCHcUXRK3HtOEThrj174HYNChKQi1kR5kWDDgpfaSFfypmikd4zhG5TUIY47hJlwTeq5hpCgB5ipRthlt6GzuVwxOyIglYRA+u3O4Iz9nh7I2aTNh0m3eZz4SkIveJ1/ti0q9xDQ3rc51YbRb8u1Fj7xseqcocwf8KmhoS8A2swuiv+0szYNv51M5qvjvQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from DM6PR11MB3625.namprd11.prod.outlook.com (2603:10b6:5:13a::21) by SJ0PR11MB5790.namprd11.prod.outlook.com (2603:10b6:a03:422::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7046.23; Thu, 30 Nov 2023 16:46:02 +0000 Received: from DM6PR11MB3625.namprd11.prod.outlook.com ([fe80::36be:aaee:c5fe:2b80]) by DM6PR11MB3625.namprd11.prod.outlook.com ([fe80::36be:aaee:c5fe:2b80%7]) with mapi id 15.20.7046.024; Thu, 30 Nov 2023 16:46:02 +0000 Message-ID: <289bf666-b985-4dc4-bf0a-16b1ae072757@intel.com> Date: Thu, 30 Nov 2023 17:45:10 +0100 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH net-next v5 13/14] libie: add per-queue Page Pool stats From: Alexander Lobakin To: Jakub Kicinski 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" , , , References: <20231124154732.1623518-1-aleksander.lobakin@intel.com> <20231124154732.1623518-14-aleksander.lobakin@intel.com> <20231129062914.0f895d1c@kernel.org> Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-ClientProxiedBy: DUZP191CA0059.EURP191.PROD.OUTLOOK.COM (2603:10a6:10:4fa::13) To DM6PR11MB3625.namprd11.prod.outlook.com (2603:10b6:5:13a::21) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6PR11MB3625:EE_|SJ0PR11MB5790:EE_ X-MS-Office365-Filtering-Correlation-Id: 168ff1e3-c086-4946-a8aa-08dbf1c3d683 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: F44cDLw6pWqlGW2y1PKCqfXNupJocdruwDSZLwQnd29pJ0NmH/DPblX3WW+uWYCsRq84PiQ3idn+eYk+RJQG+YikEq3tXMM2g6fvWHELdeD7k1sj6aagtupgUN+IriqdWJxJk3kDrZUILsAbnsQSh4DNUkI0B5Myh0aUO+cYicBeL6F7R7AbhgNablxd+9E2OXajpbXMlBE9uRGJgp+E/Az1XIJhczUlgcwVb2B477CoJ87vCbDs4tEKKbUNqkgjcVJqIBJ5QKG/oISBSu+PhyuJG39OsmU2MFZK8UN2i0b05uvh4hHBUL9xB0x8twztwC6FRBh12TWrcqo0HUcubfTajjXZTfyPLD1psjv8qrStid2AgpNrT7hJOZrl/IJyqVOj9/5D7Kq9x3ww6xLk93dO/CRrw9+7YlNo4abcSyiRJd+TJsuoN2PrJwXBSUxiG6+brYiR5AWRo/abQBYVCd4m/naHFbVXaQdKhnTFAKYGAgi7egB4tGWH2SEOTZyz/x76ODTFPd2lCHxGeIhYhK4/tCSzEe5+YB6QZjmviWI+hPKKuNDfbTp4wqj7PsWcAcvWhLW0IwfETeBeALjwbcpcJya608iqEIF6Js+egDrih8I/mjOO5JF5n46FxHogZfOtWW1hfRIRepZI5+NjmQ== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM6PR11MB3625.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(136003)(396003)(376002)(366004)(346002)(39860400002)(230922051799003)(451199024)(1800799012)(186009)(64100799003)(2616005)(26005)(6512007)(41300700001)(83380400001)(66946007)(66476007)(66556008)(6916009)(31686004)(36756003)(5660300002)(82960400001)(7416002)(54906003)(316002)(8936002)(31696002)(4326008)(86362001)(8676002)(6666004)(6506007)(2906002)(478600001)(6486002)(38100700002)(43740500002)(45980500001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?Y29VTEZ0aTB5YXhFMTFSM3VSbkVjVFdSaFkzMGVEWDRlbUE4OXVLMDFwTW94?= =?utf-8?B?T09OQ041djFrYTdhNStnbkx0RC9PMFdtSzZnZGxTZmNyQ2hUcWFWVC9Kajlu?= =?utf-8?B?dTBlY09vbTB6QjFtLzNxd0p0clpJa2pKcHNEMEtYb2hRRDhUTVVsKzZOb3E4?= =?utf-8?B?ajE4N0x1cE1GNERUanhDN3BZOGxLMGlCTnJpLzFGWEt5VUxxbENZVHY2SWlu?= =?utf-8?B?a1VEakVGUy9PeFhMaWRnYTV5aEZBd1hoYmdocG5YVVBHcnRGRW85RmZVMTUr?= =?utf-8?B?ZThtU2ZnOHZsNTRua2FiUmhMT3lRTWF4OW9EQWVDVWxyMHFxMFYvcEtmaUpi?= =?utf-8?B?djBaUWdINjVXT1hjS3ozdDAyaG9CUUhxeHRNQ2l6MVEwTnFCbXBhNGZQelRE?= =?utf-8?B?REVMMmxGamFHVnBjS0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8aa-08dbf1c3d683 X-MS-Exchange-CrossTenant-AuthSource: DM6PR11MB3625.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Nov 2023 16:46:02.5775 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: ys1TSeGNfgzk0ymw72feSavBaj9n4zSV+OTi/4HNhM+hFPgzsBOqeSNXoIowRULoH/XvH2Xft1YbN7jdaYUYkPg1LkZlh5hh2CGmYIBrXGo= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR11MB5790 X-OriginatorOrg: intel.com X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, 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 08:46:25 -0800 (PST) From: Alexander Lobakin Date: Thu, 30 Nov 2023 17:01:23 +0100 > From: Jakub Kicinski > Date: Wed, 29 Nov 2023 06:29:14 -0800 > >> On Wed, 29 Nov 2023 14:40:33 +0100 Alexander Lobakin wrote: >>>> Expand the libie generic per-queue stats with the generic Page Pool >>>> stats provided by the API itself, when CONFIG_PAGE_POOL_STATS is >>>> enabled. When it's not, there'll be no such fields in the stats >>>> structure, so no space wasted. >>> >>> Do I get it correctly that after Page Pool Netlink introspection was >>> merged, this commit makes no sense and we shouln't add PP stats to the >>> drivers private ones? >> >> Yes, 100%. > > 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? > >> >> FWIW I am aware that better tooling would be good so non-developers >> could access to the PP Netlink :( I'm thinking we should clean up >> YNL lib packaging a little and try to convince iproute2 maintainers >> to accept simple CLI built on top of it. Thanks, Olek