From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 48216A04FA; Thu, 6 Feb 2020 10:52:00 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id A2BFB1C0D8; Thu, 6 Feb 2020 10:51:52 +0100 (CET) Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-eopbgr60052.outbound.protection.outlook.com [40.107.6.52]) by dpdk.org (Postfix) with ESMTP id 8B4C71C0D2 for ; Thu, 6 Feb 2020 10:51:51 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jwiZucHOIFSWk6nA1TzccaWArayn26q5fhfUyoFyHDQoYofEbN18xCfgavFteAx817yinafBPPXtEQxaNfe8Q9My0nxkplNPSWs54lCbrfgSuOy4CTjpXZCcT4XHEES9cmzppR2hnbDaDEMXLxPpqUsogVBOg94cBbpG9WTuWZI/crns720XMFBnpelE/2FqSmZh4urjlMMc/2FTbXgXsFiFBebtsWIxJ21LTWJ5Wwg51ZzIKmsaJMxmtBTpVg8SXd+74QLiLmxnCTtrVUoxaPO9LkJxyM3Oq44eV0CGm9xTcXvidz+0QihNzL97mHSQlNJKn5xgmH2iClCc1Czt3Q== 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-SenderADCheck; bh=Ex9+EIpXR58RTFCYREVjw8AQE0/dCG91uNFJ3Wmjg8g=; b=AizppQ/8Y7hHZv4851BlqaKg/4weUEwzpte6wwcx/iZXRezFYaofSETERSaIpDjZd5dfwxTPbnxFBu2mVHE4Ko4LczO1QSFqA+khZvp1ZIlGTBcE+RfiQhNrGkkulSKofCKMV+JTSAD7GQ3kcTPgK53eJtQwuc2W57GfkohNCDXYefcxcNe2d8bOQcYWvJ2Dx2g0QPeW1u4nCBCPfYzikPPrYx+C7Vvihb0iN1WL12hQeDKAlhkR+uZoXFNUHA5Qg209jQsmGcjG5vvvL3PnMPKc4cdC8H3FNqr++oGmnOfXt8lF/rOkkNVT6YnbiGtsxln+UvjqmZVNHZwNJUvdog== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=mellanox.com; dmarc=pass action=none header.from=mellanox.com; dkim=pass header.d=mellanox.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Ex9+EIpXR58RTFCYREVjw8AQE0/dCG91uNFJ3Wmjg8g=; b=YFSNAqk5kuOQ+mca0Z1YRloLqzRzgezMOux9SbWSW9RioPPXNXLVvKho1X3TEOJ3VREpi1jdFGrVQVlazp9cGzjG6ITLucDY44UjjMlQXJMdHwQDajqPG4xwUGS0V/MGFU5F3DtneOgVpg7pwxDDD8+m1EpNuxUtZeBmuxNQ8n4= Received: from AM4PR05MB3265.eurprd05.prod.outlook.com (10.171.188.154) by AM4PR05MB3220.eurprd05.prod.outlook.com (10.171.188.142) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2707.23; Thu, 6 Feb 2020 09:51:50 +0000 Received: from AM4PR05MB3265.eurprd05.prod.outlook.com ([fe80::68eb:ad79:71f4:110f]) by AM4PR05MB3265.eurprd05.prod.outlook.com ([fe80::68eb:ad79:71f4:110f%3]) with mapi id 15.20.2686.035; Thu, 6 Feb 2020 09:51:49 +0000 From: Slava Ovsiienko To: Olivier Matz CC: "dev@dpdk.org" , Matan Azrad , Raslan Darawsheh , Ori Kam , Shahaf Shuler , "stephen@networkplumber.org" , "thomas@mellanox.net" Thread-Topic: [PATCH] app/test: add test for mbuf with pinned external buffer Thread-Index: AQHV3MXguqi83uQ9kki4jh6LKaFHlagN0ziggAAYvdA= Date: Thu, 6 Feb 2020 09:51:49 +0000 Message-ID: References: <20191118094938.192850-1-shahafs@mellanox.com> <1579897518-29362-1-git-send-email-viacheslavo@mellanox.com> <20200206081726.GM22738@platinum> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=viacheslavo@mellanox.com; x-originating-ip: [95.164.10.10] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: d57bcc31-cc77-4191-fdd9-08d7aaea2ff6 x-ms-traffictypediagnostic: AM4PR05MB3220:|AM4PR05MB3220: x-ld-processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtFwd x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:9508; x-forefront-prvs: 0305463112 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(376002)(39860400002)(346002)(396003)(366004)(136003)(189003)(199004)(54906003)(71200400001)(316002)(2940100002)(7696005)(52536014)(76116006)(66946007)(64756008)(66446008)(66556008)(66476007)(26005)(186003)(5660300002)(86362001)(4326008)(55016002)(9686003)(33656002)(478600001)(2906002)(8676002)(6506007)(53546011)(8936002)(81156014)(81166006)(6916009); DIR:OUT; SFP:1101; SCL:1; SRVR:AM4PR05MB3220; H:AM4PR05MB3265.eurprd05.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: V5heO2SV4FYh0GjWrpGenXBvuHIAxtNA7nfSJ/As3xJnXrSn/msC6gyp3xdJUG7+6ZAwgP6jtYOeiOWAaFXvMQE+bU5rVeZIkdxYo7m/OVDwd/7/GbNLiCo9otB1vhGzlT9oUwRN10F023dPWuQH7ci2TtnO9rGmSAmzG5tj30haVfv7K2w1xxWSYvpmvd1d6asHe6fUUi5krRICBPiul93Tk5627a87lqavEbofMOw73ufycQZZBd/p8DXu1SxXMmR+DOYe4+u7C8OMAxZKRBfViyMdLoNNgKrrdHY1LjPlamkTMYYj7W5itEfhPfLJqb/YxOZFKAnB+bnTfj63IO2qWzcYMviTi5lmyY871ysVwcq7lghagrpfyZe/Gdo8ST5Wgwd69mkf/wPDzfcUhOIiUsUGEHU3D5WSgywzLmMqjnxiXfeJJNzWPvJuHtq9 x-ms-exchange-antispam-messagedata: DJM0KP309kC3UvrwyvBXDcyQDXsQNKhVkg2BNqhR2zjJsQhYWCj1F+eGfQfrDg9Opdfy7NVVYlbMKe69+I5MXdGsO7Xvpty6k4a+FImQ6i7x/oWOaCZOt0hrMY6UfLodw9llIrVTdni+LJDKZ5AzXQ== Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: d57bcc31-cc77-4191-fdd9-08d7aaea2ff6 X-MS-Exchange-CrossTenant-originalarrivaltime: 06 Feb 2020 09:51:49.8980 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: +2M0caN/YvZcvVHlRLseeeYT191D2Fllyo+OLuJIrOOxhgdYqb67MQVXYv5p1XrIn6C8GDPC3RNMjtT+nCdw9Okaf1+fBA+y8u5J0wSIBmE= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR05MB3220 Subject: Re: [dpdk-dev] [PATCH] app/test: add test for mbuf with pinned external buffer X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 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" I checked with 2M huge pages - fork() works OK on my host, does not work ov= er 1G. RH7.2/3.10.327. Will try other kernels. With best regards, Slava > -----Original Message----- > From: Slava Ovsiienko > Sent: Thursday, February 6, 2020 10:25 > To: Olivier Matz > Cc: dev@dpdk.org; Matan Azrad ; Raslan Darawsheh > ; Ori Kam ; Shahaf Shuler > ; stephen@networkplumber.org; > thomas@mellanox.net > Subject: RE: [PATCH] app/test: add test for mbuf with pinned external buf= fer >=20 > Olivier, thanks for the reviewing. > I'll remove the comment and send the v2. > I use 1G huge pages, will retest over 2M and continue finding why my host > fails. >=20 > With best regards, Slava >=20 > > -----Original Message----- > > From: Olivier Matz > > Sent: Thursday, February 6, 2020 10:17 > > To: Slava Ovsiienko > > Cc: dev@dpdk.org; Matan Azrad ; Raslan > Darawsheh > > ; Ori Kam ; Shahaf Shuler > > ; stephen@networkplumber.org; > > thomas@mellanox.net > > Subject: Re: [PATCH] app/test: add test for mbuf with pinned external > > buffer > > > > Hi, > > > > On Fri, Jan 24, 2020 at 08:25:18PM +0000, Viacheslav Ovsiienko wrote: > > > This patch adds unit test for the mbufs allocated from the special > > > pool with pinned external data buffers. > > > > > > The pinned buffer mbufs are tested in the same way as regular ones > > > with taking into account some specifics of cloning/attaching. > > > > > > Signed-off-by: Viacheslav Ovsiienko > > > > Looks good to me, you can add my ack in the v2, once we understand the > > issue with verify_mbuf_check_panics(). > > > > > @@ -1199,10 +1212,11 @@ > > > buf =3D rte_pktmbuf_alloc(pktmbuf_pool); > > > if (buf =3D=3D NULL) > > > return -1; > > > + /* > > > printf("Checking good mbuf initially\n"); > > > if (verify_mbuf_check_panics(buf) !=3D -1) > > > return -1; > > > - > > > + */ > > > printf("Now checking for error conditions\n"); > > > > > > if (verify_mbuf_check_panics(NULL)) { @@ -2411,6 +2425,120 @@ > > struct > > > test_case { > > > > Note: on my platform, it still works if I remove this comment. > > > > Regards, > > Olivier