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 779A4A0032; Fri, 29 Oct 2021 11:37:06 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 674984111F; Fri, 29 Oct 2021 11:37:06 +0200 (CEST) Received: from AZHDRRW-EX01.nvidia.com (azhdrrw-ex01.nvidia.com [20.51.104.162]) by mails.dpdk.org (Postfix) with ESMTP id C780A410E0 for ; Fri, 29 Oct 2021 11:37:04 +0200 (CEST) Received: from NAM10-MW2-obe.outbound.protection.outlook.com (104.47.55.102) by mxs.oss.nvidia.com (10.13.234.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.858.15; Fri, 29 Oct 2021 02:37:03 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FlRtv7lpdN/In05tzvL4ZoliZBlH1pTW7IqR0OXi6o1nuN9/0miFBU0ma8Npajdt4f1k07plWXr59r5s8DDkeN7KM2crykXbgjd9jHvkyF/E3/n4Z97j+G5R3xQSPzhtyinmhS160y0PLnaJsOAjggucw5aH7NzCsrNvMhRGkSww+yNvDoJqUAlllINGUycZpySVPmE1RjCv2vgzinx5yrxH4mmn/TfScFRSc0kXLpoQ7iBYE3WDD7uQUVIL5I3tEbYFFreF2RKQ/HXz42aKT1sZuTgqwGihUxf4dg6wbroGl9HioV/9OHQ2gA81apAFS1GwPqIK75MHrfBXilYVjw== 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=gxxBDNgTl6a9Gjxac7gqQesJY+yCCE+CVPZF2hkJuCQ=; b=Z0plQxdez5pQhEz9VsL3+QaWgU9b0ZRZlVPi33lDCLAee2ejgnCQmLF6ZCMEEQtJVMUexG1M8OJd6cdM/0MLJfxSSQ+nmcz9tUCmsfVBpONNDocl/XqoKD/vMW0fJq9wsdl8oaBjztfzhXKebOxJS9LJ5PF5OgiZf45oiC1aY+oaZO5Ws1ST0QsXGsOUC36ZabDnrZeNl8//sm9iClRKW1znC9I68yzDA6QREzFrDBLwQH8hKDcXNHeqC4i2OzE1g3vNdBK99La3mt6ng+RzcPys0z+Uk1RMNhnE/RGH9VFz8HYxdfX3DL//iLTG2iqHU14jU2DNfCWCX5Lo0HUFpA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=gxxBDNgTl6a9Gjxac7gqQesJY+yCCE+CVPZF2hkJuCQ=; b=QqjgzJ40tV00BjpBAvmlqQRYQ3o0LNP/cTq+M6XyN5TwoeFYOVMo7CpJEtN9+qK84r67rxil5+JKwDVhEudtjsU9kySBHLGaCQ+pjQgaKNGNHZ9guHscGcIjBv4SVzx3uSNgbeX8B1qlVl7AXkACcVhsBEt48oQnFbHNFpZmbuvb5qNuJ9T7MN5r/Qee137mfAD66VfSLfF1jUSUMcwVciRP+X4FNB8UYYDln/p5ctWykOTirG0T98Ua2BKpePT2M4RE9G2AAt9guIN4LiQhCK7rQ1yBULTDjs0JBXTnOBsFGayYq67SYSYUG2d7ZsQUaJwxkwvXxlsBdsIoAsOlfg== Received: from CH0PR12MB5091.namprd12.prod.outlook.com (2603:10b6:610:be::10) by CH0PR12MB5076.namprd12.prod.outlook.com (2603:10b6:610:e3::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4628.18; Fri, 29 Oct 2021 09:37:03 +0000 Received: from CH0PR12MB5091.namprd12.prod.outlook.com ([fe80::59bf:640f:7140:ab97]) by CH0PR12MB5091.namprd12.prod.outlook.com ([fe80::59bf:640f:7140:ab97%9]) with mapi id 15.20.4649.015; Fri, 29 Oct 2021 09:37:03 +0000 From: Dmitry Kozlyuk To: Olivier Matz CC: "dev@dpdk.org" , YuX Jiang , "Andrew Rybchenko" Thread-Topic: [PATCH] app/test: fix mempool test failure on FreeBSD Thread-Index: AQHXzKgviH71LUgYFEKBCVmgCeYPfKvpt2zg Date: Fri, 29 Oct 2021 09:37:03 +0000 Message-ID: References: <20211029084051.679233-1-dkozlyuk@nvidia.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: 6wind.com; dkim=none (message not signed) header.d=none;6wind.com; dmarc=none action=none header.from=nvidia.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 19edff6b-19b1-4e50-2798-08d99abfaa1e x-ms-traffictypediagnostic: CH0PR12MB5076: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8273; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: hcmVVtfLiXMFtG6hz6mIbdEeHThBAUYpfGTrp69IvA6bOZXDYsbwZGDGoeEkOdnC0SuC77iuJ49frgExe1jFIkQTdpTfAZhyduKgZRcjpTbXLDTgokce+vIiIzSI3OMJp+RHbLkLwQ/SgfoLZLWz/v+LR8znnppLxcOuEqhKtZqS8jY4RTMed+f50vsGx5s+u3hiIBT1/SaoqSaXze5UMupynbBgLwQKiD1Iue1Tya6BOoCGOpvwEKkwC+h7JJMx1dxCMcS0tyTPG0A/E8qQkUd28WWqsc2I7P3wCTyGEq+6zxGT2au7y5Wmd+ZDN7uSyD1CxAg6952s/9/cuaZCyCJwnxt1CwGcJbkvFhNcHsalpe66FoagfN5+4ogHFd8IZhYM/jj2a67DThj3W+037/7zOJHuCAhxn+70kqa+U6FhuyDSRBmLPeyR/NFX4WeYOCEz3wjwsjiLMmi08JbsPWfxnKa61jOlz5Q5wqXEq9ry/CVJAxgvTogq5JTMjcfyvkgikjupUX8JbVBxhzTGozSv/6p7zmpN5Av0dR7SdMcFiziEPVeZdiNlK+MKjSEFC/meiiCKcGmD7B+8zzv9Y/zYBYGL3JqkQJLX0EF9GVt87iQ/tv8AHB+lghDQDyADlXEIY7NgPCZQEc22rB3zQszPLMi0jr+t8PGIT/wm/hepjSOg+HfJQnKxHPe0tSchHUXO+XgQu54Mc2u7bRqgww== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CH0PR12MB5091.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(64756008)(76116006)(6862004)(8936002)(86362001)(5660300002)(38100700002)(508600001)(38070700005)(54906003)(33656002)(66556008)(66446008)(107886003)(66476007)(9686003)(55016002)(316002)(2906002)(186003)(8676002)(26005)(83380400001)(66946007)(7696005)(4326008)(122000001)(53546011)(71200400001)(6506007)(52536014); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?koi8-r?Q?ojHwFh5Y4GPCX0arxXPEXy5zesN40x9d05Rf5jUmdWDgGp6W/WkT4EZ+KCadgn?= =?koi8-r?Q?0PfU6Tm/dJp11XWXbiEMCusE12ZKnVbJ6tcDfE2iSe3uxwyCPLswl0iXMyesu0?= =?koi8-r?Q?Dgo92OzETRn0zyBVxV7F5iWvHYXoI4ZNfoPsx7REOECD4MatVL6xf/L3yEIcfX?= =?koi8-r?Q?Iw/CXWCvOKqbh5yNPhf3NK/c7vUScKm0ymqRcf+riYUrq3tZVG7Hm5ENDfweXI?= =?koi8-r?Q?94ukT1VS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GPXV0ctXPg2+V+tfgqiMiVH+mYKOde4X5jYQu2PU?= =?koi8-r?Q?bRvSbMas8xFraAQbS9napHRQEbPZ6wWdVQupVJ25H1q70CQKvtSQVjN5g2ChAP?= =?koi8-r?Q?uAQI5XPLdIvKHfvB0ns+gWRoPfAya6+wTmO2eK2KSwdTnKA3j0wy61/xpcEU7Z?= =?koi8-r?Q?pVbafGCXFi5dWHhzgxbm875DEHTeQWndnKcZc/jFiMml136bpQdVs0j1q9TfEt?= =?koi8-r?Q?G5lygmKf9k10Z9sSG5mCOcL3HqtvAjQPCnHA1vMxWCC3GvknX59YG5m2DLaH4s?= =?koi8-r?Q?Olph1+Y+WzPxSlVEIbjkw+0bS0TT0etdLiNs8NpXCihip13iu41JEzRZaYzram?= =?koi8-r?Q?REgSUB7CHA0XoZwFODKF+9WBFL3KgS0JwzU0HcM+p6iGxFTyosQZ3kYr0d1I4t?= =?koi8-r?Q?PucT/EgLZ2uASXyzUyGayvvTLqW1EQJwLFjPDRL2W0kUGiwfFXEQG8V5G82ssx?= =?koi8-r?Q?PVmGy7dhwg=3D=3D?= Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CH0PR12MB5091.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 19edff6b-19b1-4e50-2798-08d99abfaa1e X-MS-Exchange-CrossTenant-originalarrivaltime: 29 Oct 2021 09:37:03.1706 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: cHCea9TWFtzN6JJPSodP7dJ+T04Fhzk9/+3OLfQ31ov9nhV7cGFtVFA+Tx31deT/8g82EWxM3cIGutAFGeoq2g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH0PR12MB5076 Subject: Re: [dpdk-dev] [PATCH] app/test: fix mempool test failure on FreeBSD 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: Olivier Matz > Sent: 29 =CF=CB=D4=D1=C2=D2=D1 2021 =C7. 12:35 > To: Dmitry Kozlyuk > Cc: dev@dpdk.org; YuX Jiang ; Andrew Rybchenko > > Subject: Re: [PATCH] app/test: fix mempool test failure on FreeBSD >=20 > External email: Use caution opening links or attachments >=20 >=20 > Hi Dmitry, >=20 > On Fri, Oct 29, 2021 at 11:40:50AM +0300, Dmitry Kozlyuk wrote: > > FreeBSD EAL does not implement rte_mem_virt2iova() > > that was used in mempool_autotest, causing it to fail: > > > > EAL: Test assert > test_mempool_flag_non_io_unset_when_populated_with_valid_iova > > line 781 failed: Cannot get IOVA > > test failed at test_mempool():1030 > > Test Failed > > > > Change unit test to use rte_memzone_reserve() to allocate memory, > > which allows to obtain IOVA directly. > > > > Bugzilla ID: 863 > > Fixes: 11541c5c81dd ("mempool: add non-IO flag") > > > > Reported-by: YuX Jiang > > Signed-off-by: Dmitry Kozlyuk >=20 > Reviewed-by: Olivier Matz >=20 > However, I launched the test like this and it failed: >=20 > $ ./build/app/test/dpdk-test --no-huge -m 512 > EAL: Detected CPU lcores: 12 > EAL: Detected NUMA nodes: 1 > EAL: Detected shared linkage of DPDK > EAL: Multi-process socket /run/user/12489/dpdk/rte/mp_socket > EAL: Selected IOVA mode 'VA' > APP: HPET is not enabled, using TSC as default timer > RTE>>mempool_autotest > (...) > EAL: Test assert test_mempool_events line 585 failed: Failed to populate > mempool empty1: Success > test failed at test_mempool():1019 > Test Failed >=20 > It appears that the failure comes from: >=20 > int > rte_mempool_populate_anon(struct rte_mempool *mp) > { > (...) > /* can't use MMAP_LOCKED, it does not exist on BSD */ > if (rte_mem_lock(addr, size) < 0) { > =3D> rte_mem_unmap(addr, size); > return 0; > } >=20 > The errno here is 12 (ENOMEM). This is because of the default ulimit for > max locked memory: (kbytes, -l) 65536 >=20 > If I increase it to 128000, it works. >=20 > Would it make sense to decrease the size of the pools so that we don't > reach this limit? Good catch, will send a v2. > (...) > > @@ -789,12 +791,12 @@ > test_mempool_flag_non_io_unset_when_populated_with_valid_iova(void) > > /* > > * Since objects from the pool are never used in the test, > > * we don't care for contiguous IOVA, on the other hand, > > - * reiuring it could cause spurious test failures. > > + * reqiuring it could cause spurious test failures. >=20 > nice try :D