From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id A1EEBA0547; Fri, 29 Oct 2021 05:30:43 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2996E40688; Fri, 29 Oct 2021 05:30:43 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by mails.dpdk.org (Postfix) with ESMTP id 3A56040395 for ; Fri, 29 Oct 2021 05:30:41 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10151"; a="217761924" X-IronPort-AV: E=Sophos;i="5.87,191,1631602800"; d="scan'208";a="217761924" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Oct 2021 20:30:40 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.87,191,1631602800"; d="scan'208";a="538574433" Received: from fmsmsx602.amr.corp.intel.com ([10.18.126.82]) by fmsmga008.fm.intel.com with ESMTP; 28 Oct 2021 20:30:39 -0700 Received: from fmsmsx612.amr.corp.intel.com (10.18.126.92) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12; Thu, 28 Oct 2021 20:30:39 -0700 Received: from FMSEDG603.ED.cps.intel.com (10.1.192.133) 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.2242.12 via Frontend Transport; Thu, 28 Oct 2021 20:30:39 -0700 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (104.47.70.106) by edgegateway.intel.com (192.55.55.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2242.12; Thu, 28 Oct 2021 20:30:39 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WpFuDa2bbSeM+aeq/gD4yM3e5JAYBR6xNfKvMeXCwPEFlPutJJjzWzDX4dlg26GajhrRCtx2T3DkfsTEU3fZ/d01AaGegQ3jXaK8ROVqIROtn+JkZnCRYv0oJSbnvYzQxTVM3gDlf5ZYaoYJzKbqxcX9knQ5J+p8dErlZILka3Z7j6W6QLHkaQLb+o4Oo2xyKSB7EKiI3V9f+sv5GFfo9IdP3hdGEmI3iEdVHq5uUf2N/fUIwRceGVPsVdJFBXcHRBjX8+g1BXuV6anvVveNjgZv35znMoRCmKarLyoPGnp0Kg1+96aA/2wJHIcxZJ1LBuRHNjfIovkZLlHDondMXQ== 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=Te2RX+uzav53NmqtLhUuTXWBewwT0CIAEcvP7oLIQ/k=; b=mYSDY6fZsS2EysJ6NEAE9fJPNylcLWEIFEJNJsxXx5j2T+CY13HHa4J6IYsPPAAeduXFp78IerjTR6ZqrL2QvvQFzjkOs9y7ppsyaVgsnvciEGbxtu9v01FdjaAspvxYkzcTX5spkzzez2u86MsYLGudnfYsx4qMETaX9WO4YatoHmOD73G5H1QoQlVdvteZePOXoWkMJYhIKCgGALHsESmqq3bj+wM58gQtFgDLwVpmwoYJ/2h0NzlYpGSf9pOsH8DUuOWFcOmeELMjcLKHPcWQyn+1Yew0vlsbLyvCoDLDSpM7O6D5y9UdSRywiemMHiLbOMULewFB/a6/684PMw== 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Te2RX+uzav53NmqtLhUuTXWBewwT0CIAEcvP7oLIQ/k=; b=X43645lIyjJbBVvKc1bmiiJUOwmEb27rTyc3UHaPo4gW69Gcv8YrcIYilZjjvux03FdDgW5NG1wGQcYbVRXMyOFaCaoAikSdKsY3Gd1e1FUXmRrqu89fAC61nOz98ipjIVj8///7ukGbjqVHUtR7ZJRgBu627+7a/To5nH8cNgo= Received: from SJ0PR11MB5150.namprd11.prod.outlook.com (2603:10b6:a03:2d4::18) by SJ0PR11MB5152.namprd11.prod.outlook.com (2603:10b6:a03:2ae::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4649.15; Fri, 29 Oct 2021 03:30:37 +0000 Received: from SJ0PR11MB5150.namprd11.prod.outlook.com ([fe80::1c99:cc97:391:1406]) by SJ0PR11MB5150.namprd11.prod.outlook.com ([fe80::1c99:cc97:391:1406%9]) with mapi id 15.20.4649.015; Fri, 29 Oct 2021 03:30:37 +0000 From: "Jiang, YuX" To: Dmitry Kozlyuk , "dev@dpdk.org" CC: David Marchand , Matan Azrad , Andrew Rybchenko , "Tahhan, Maryam" , "Pattan, Reshma" , Olivier Matz Thread-Topic: [dpdk-dev] [PATCH v8 2/4] mempool: add non-IO flag Thread-Index: AQHXxC5VyobzCM/vwEu9KesAeZb6/6vpYRjg Date: Fri, 29 Oct 2021 03:30:37 +0000 Message-ID: References: <20211018100141.3290956-1-dkozlyuk@nvidia.com> <20211018144059.3303406-1-dkozlyuk@nvidia.com> <20211018144059.3303406-3-dkozlyuk@nvidia.com> In-Reply-To: <20211018144059.3303406-3-dkozlyuk@nvidia.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-version: 11.5.1.3 dlp-reaction: no-action dlp-product: dlpe-windows authentication-results: oss.nvidia.com; dkim=none (message not signed) header.d=none;oss.nvidia.com; dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: c2b70295-7879-4f32-b86c-08d99a8c79ae x-ms-traffictypediagnostic: SJ0PR11MB5152: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:6108; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: KqhS66/Rc9eESY9OzytFoy+A1HJ5nwUgozISMr51PrKqbDI5at8ZBv9CJFy78S5PtMQDG0aPw1AV5reFLT9OJ8vNgp/Mugfcqlraj2g51jrg0RKz5YuDx9E3x+ZbwG9NU6uLtcKwmUr2NS/URCv+TIVVxebYvpCHvs6wQf3KM6Zp0EAu5wUVJDnl2kfDQRo2tb4A2z/idnyE47gZMNOjsgO87z1qCH+A7yLoSpATx4jrAUXkTWKR6tdeQN9cSxZ8kfkCrxB+AT8IR4gmRuo+UBXSPJGwlquX7otsSbfaWzI5OcLM5Kzur+8IfENPUDyn9su/MpIFqgVnBcZQYJASHfwGD/kosUo6vmP2w2c3S+fEz/Yl3NEwqJ/uBDR5arBnwMmsa4AqtcfZx0SzOipYL6qsgTQQ0Uoab9blzPm03H1pvlxE3Ff3gGgEH0sW2JcirAMgIjFoIMHqHnIezj6OMxV7TneNN3KfmvKzhZqI1rxh6bLQyBsyLeRdYsokR4DHyCPPHKlczo9spzyZgjg3P35L6b6k+UNGrQfMnONuj6Opky0C6s0WcO6BSHTWU5eakqEoIou53Qk1QutvE+igVkV0NT38kAy9DLcR5eotdB3sxx90uNjfBFvvNtjceYuaaRYw8IGGhTWbpyXrCwAjaNBG1jP2Go8O5EmDt/1fMHVNSq9Urc82K6vAtopw+Z9YatAibQIvYnD9G3ayitJ2CECcRFOW63eK3S+Enikn2C+8LOjTH1MJaxdAXPoIedkpK2Z+0sNma2J84VZ6HD7fzNxx9aqMSwkOKRSZA50GcoyHb1WzJKezXfhJeoQXL+QDWPPhw890XydVH/7e90VVig== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SJ0PR11MB5150.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(366004)(4326008)(33656002)(53546011)(8936002)(6506007)(38070700005)(83380400001)(66946007)(82960400001)(2906002)(8676002)(26005)(86362001)(7696005)(76116006)(508600001)(9686003)(52536014)(66446008)(64756008)(316002)(66556008)(122000001)(5660300002)(38100700002)(110136005)(66476007)(966005)(186003)(71200400001)(55016002)(54906003); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?4QF8mJ0zGZNXf91pndmyg20JzOaJcI6qtkdpasLvQIxGvgS5i1b7hfQWIZQz?= =?us-ascii?Q?GDLZOIJ1vmdZzqT55BS6dCLxeetwBPj91FZASjz11esQRXi9Ayi3ECxF3Ajk?= =?us-ascii?Q?W2Y8AIwWN/+uqQkFoOZ5xfazSChIE1MYw69KWAxAilTVVWY5lzdx0bT88J+D?= =?us-ascii?Q?e1dCShKEpcy3B3+hRvSM4wF+Z9jlD33PfkLLMDY5ETVPox33iqFhIEXgsw5O?= =?us-ascii?Q?NXzpAw19bxKbdnDS+oEigQRolF6JUH2ed9f1DTPuSwcrD9DPrQwnMGgqeIQX?= =?us-ascii?Q?ArJhnQoVOfR5oIhULfJkbk3XlthDfbxg61TFDHElnyzG/3cKHVzeqoUKMrx2?= =?us-ascii?Q?zIapvi4dj1V4HNbGmgSF+kXGt7JXAOxpDHNaYws+oiU4ststLEoT4w3ZinIZ?= =?us-ascii?Q?gs5oGCFhYF7AiYmIg5BYh9lsWQcB2PRh1lkvCxbmKuih+k0Ca6ZLFvTZtBg9?= =?us-ascii?Q?raP9mUoev/HOGWb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ospCNBF?= =?us-ascii?Q?gtyjzZFO2ZR4D8M5rnZeo38TXW+EzaDoQoizUBTYoOjKAcLWmNC3GIqSf4+v?= =?us-ascii?Q?FpomkZl9SYwd1i7jXDlI5Q8Dz5aGkbZHlA65N4Tg/Q61VyNayagN1XrYKZ4a?= =?us-ascii?Q?VPG1rq1Nlpl5DfWOE6iMXptekZCTG2ExUyRNpzGwblAvhdhr8joyuyY/WEsl?= =?us-ascii?Q?uJ3X5oUlhezzVxWlCpiFen81dJHlCgzEh5m9ihnPn66HfJrVJm8+s2k963Si?= =?us-ascii?Q?IA=3D=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SJ0PR11MB5150.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: c2b70295-7879-4f32-b86c-08d99a8c79ae X-MS-Exchange-CrossTenant-originalarrivaltime: 29 Oct 2021 03:30:37.6322 (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: EGEt9RCBiR2CHNn2nIkPgOmgulXQAmBWRCPmOGSmjTPghUbjDxs0+lasOHr+n1nY9I+DhNogXj5xVvDzccmJlA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR11MB5152 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH v8 2/4] mempool: add non-IO flag X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" > -----Original Message----- > From: dev On Behalf Of Dmitry Kozlyuk > Sent: Monday, October 18, 2021 10:41 PM > To: dev@dpdk.org > Cc: David Marchand ; Matan Azrad > ; Andrew Rybchenko > ; Tahhan, Maryam > ; Pattan, Reshma ; > Olivier Matz > Subject: [dpdk-dev] [PATCH v8 2/4] mempool: add non-IO flag >=20 > Mempool is a generic allocator that is not necessarily used for device IO > operations and its memory for DMA. > Add MEMPOOL_F_NON_IO flag to mark such mempools automatically > a) if their objects are not contiguous; > b) if IOVA is not available for any object. > Other components can inspect this flag > in order to optimize their memory management. >=20 > Discussion: https://mails.dpdk.org/archives/dev/2021-August/216654.html >=20 > Signed-off-by: Dmitry Kozlyuk > Acked-by: Matan Azrad > Reviewed-by: Andrew Rybchenko > --- > app/proc-info/main.c | 6 +- > app/test/test_mempool.c | 114 +++++++++++++++++++++++++ > doc/guides/rel_notes/release_21_11.rst | 3 + > lib/mempool/rte_mempool.c | 10 +++ > lib/mempool/rte_mempool.h | 2 + > 5 files changed, 133 insertions(+), 2 deletions(-) >=20 Hi Dmitry, We meet an issue based on this patch that mempool_autotest execute failed o= n FreeBSD13.0, bug id is https://bugs.dpdk.org/show_bug.cgi?id=3D863, could= you pls have a look? Reproduce steps: 2.lanch app # ./x86_64-native-bsdapp-gcc/app/test/dpdk-test -n 4 -c f 3. execute dpdk command=20 # mempool_autotest common_pool_count=3D1598 no statistics available EAL: Test assert test_mempool_flag_non_io_unset_when_populated_with_valid_i= ova line 781 failed: Cannot get IOVA test failed at test_mempool():1030 Test Failed