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 586DDA034F; Wed, 13 May 2020 11:22:20 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id E3FD71D171; Wed, 13 May 2020 11:22:19 +0200 (CEST) Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-eopbgr60081.outbound.protection.outlook.com [40.107.6.81]) by dpdk.org (Postfix) with ESMTP id 082EF1D15D for ; Wed, 13 May 2020 11:22:19 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Q9lmF6tYPoGRSi9Z4ZvJ2dYOAiG6gB64JYbcgY7Yf/ZgV2FFfMLXLlFPE5LgW0gXyYLJ7nGKcUAbbnZacxLYhwrTLD6134+RsKu707aV2K8/nxWYQJmRBpjj9S+K/hyTxFBJjo0608fvx/TT53BPOHbamO35A+BiNmhkgSROjTU1F2iGi0CxryqarmN3RlOlmXjXHOaPG214TXSAK6MaVfvB4sWHfHjG6kJbVT9yXWoUd2ftGCdX+SnuHaUh4t9v52rGSIbdb5vJTulkDZIIt5mgpaDZtukobK8YKYlVJqAztikeapq0I9HrlqNllizsErxnXeGH3TJbVAIMnoSmbg== 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=C+R2ynylnqM3eS2WEP/5VmgIbA6ulewcJFSXfZldeec=; b=iBiNxBZ53Avhwnttk4q/vOGXvUfsfOAiKwar/2olOvV4DzZ6IMEXXB/i/0j2ztfvoiIFcdbWD+T6zjKza7tZkAe1c5/Evk6DTX4sJOUVmHHYPIen2lSiv2Bzsdh+emtBKoPNwoJPk0MHAYzfCRqgEKLAT6p0bjk8nFH2Gsb6/R6K3V36M2DjNr/Pha94VbPKpFNw6sJMDXySyMOfSS3x7vo1n7UkLE1VR47cN0tz72otUgLx5MtvbSEPfRnG8gnuqtKxyt1BDOvW50P5/nrHIBvFiYqce/lQRRkfNlCPOmi/skFBcMT+pz0YiBOQGrvLXyBNUr51g9TZX0V5cdZdeQ== 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=C+R2ynylnqM3eS2WEP/5VmgIbA6ulewcJFSXfZldeec=; b=pZOouHagBGFdpAdHFzkxIaa+viO133iTg/4KiSb/boq8kkYwfdPuF/9UIxblVqxdEc0vw1OfEJUBZlUqxDjE/VLXtjusINomMgCSCbheSbb+RA8brS3DRlt6qT/neorlDduO0LnjT6aBw9pyBKQWHkbApr0dCH4yFnJUjJ0T4Zc= Received: from AM0PR0502MB4034.eurprd05.prod.outlook.com (2603:10a6:208:12::14) by AM0PR0502MB3633.eurprd05.prod.outlook.com (2603:10a6:208:16::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2979.28; Wed, 13 May 2020 09:22:18 +0000 Received: from AM0PR0502MB4034.eurprd05.prod.outlook.com ([fe80::a0ec:2aee:7f28:8d22]) by AM0PR0502MB4034.eurprd05.prod.outlook.com ([fe80::a0ec:2aee:7f28:8d22%7]) with mapi id 15.20.2979.033; Wed, 13 May 2020 09:22:17 +0000 From: Fady Bader To: Dmitry Kozlyuk CC: "dev@dpdk.org" , "Dmitry Malloy (MESHCHANINOV)" , Narcisa Ana Maria Vasile , Tal Shnaiderman , Thomas Monjalon , Harini Ramakrishnan , Omar Cardona , Pallavi Kadam , Ranjit Menon , John McNamara , Marko Kovacevic , Anatoly Burakov Thread-Topic: [PATCH v4 8/8] eal/windows: implement basic memory management Thread-Index: AQHWHbfQx0ufnJgIC0i7LHh3WkZ/BKilvyyQgAAKWQCAAAVZQIAABMxw Date: Wed, 13 May 2020 09:22:17 +0000 Message-ID: References: <20200410164342.1194634-1-dmitry.kozliuk@gmail.com> <20200428235015.2820677-1-dmitry.kozliuk@gmail.com> <20200428235015.2820677-9-dmitry.kozliuk@gmail.com> <20200513114248.6183d14f@sovereign> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: gmail.com; dkim=none (message not signed) header.d=none;gmail.com; dmarc=none action=none header.from=mellanox.com; x-originating-ip: [79.176.112.213] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 98030b09-2ca6-4225-25ee-08d7f71f21d2 x-ms-traffictypediagnostic: AM0PR0502MB3633:|AM0PR0502MB3633: x-ld-processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:313; x-forefront-prvs: 0402872DA1 x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: L6fubpnZpLLKJ+8J9w2IbIcOKnIZ1LnUFhtSaQyCBqZNO5v+Xb2+cRHIVd0ZHg1QWAIld4JS5ibdsTBNCxIJvbMpZCmYkaAIbcU2N1hwQEMZg+lI/+EvR59yg6j2wDyh+AuBVXX8Z/9BHqeP1VtFWe4hmtxle27TSjLwBe2Jx0bi+RtzTKDrP6lZX8fFF+e3fReeNAlnaWRYZuCbUF2ur2JzS++qyxIUqgetxulhrIqtgKdzVPGeMorNaRgcECiwx4xx5+YjQX2K1dxNNjrfwOh3wPL+IfeNjWSkZDAFJYIUQENgojs0XjbXCy4foL9F02OYj1jocagXCaAm0JwdAnuAnuDvQFlHjppCGJ28WMXnNTAIYOOm6IEusmwNxSqU9nEqTFV0C4QdSLPGdowRc8PIQ4T0ECFfb1pM88m/lcuFjO8U/qGGAIKicRjXSefErVZgZEFGgSCEX+kBt0MNyMOYys8M6apxJHU20dvXduPRpEB3zpfPJFBKwYhodH/dSDqxL267KVdEsl5WEyV4hQ== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM0PR0502MB4034.eurprd05.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(366004)(346002)(376002)(136003)(39860400002)(396003)(33430700001)(2940100002)(76116006)(52536014)(54906003)(66556008)(186003)(7416002)(66446008)(64756008)(66476007)(9686003)(26005)(6506007)(7696005)(55016002)(53546011)(4326008)(316002)(66946007)(8936002)(71200400001)(33656002)(2906002)(6916009)(33440700001)(86362001)(8676002)(478600001)(5660300002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: xm1htV5W/Bbi1fFKdFZq5J4LAK65WwCiCQnx1mf8KkU7h8U9KYaf9GhbU33AwvJzozeQ8MxG92jHCzzyEtEceQfHg8mYMQGbag9Hq+hftKD5QzPtpEACqzNk+aKhFvX2RaWPUMqZnoWuSlqDvxIbh7C3Plc1he/7wO/dJXXnB4Gw+M8/4rdzt2xe+RO76bdgMzHt2Yaydi/11dpuIQm1xCwTRYMjdpyLp4+OjwQdXp/BZ6L+Bj5UKvhq7EHna669Pb3keZ91FwByp22ghDTX1FGu0V0O5rwjGpmlVHYgLI7/T8+tfz7y2qf8+A6Ju3Mjy67rFnz/91Eos/QdLcMiUzQb5v+VitGrsYyo+RtrDzMjzZjN1ggYdj4sxMzWrcJ1LJIWDKW/32KpfBCBqyLj/rech0baDVN2o6z7MbRePmf8Vi/fA/UdhEB9ZeHQ9KnPZrGluog1neyqd7eiayDcN7yRNPKDeAMgfQBZeDN14gZ92IrpwQU4kjYqigjHJNl/ 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: 98030b09-2ca6-4225-25ee-08d7f71f21d2 X-MS-Exchange-CrossTenant-originalarrivaltime: 13 May 2020 09:22:17.8612 (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: vINpYS6LbFxFlb3lapEFPx3wW3zoTlQDqx+czieLKArTIVMdlH8oYAT7vljVbe+wJjhady5SJOVFuaLcYHdtBQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR0502MB3633 Subject: Re: [dpdk-dev] [PATCH v4 8/8] eal/windows: implement basic memory management 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" > -----Original Message----- > From: Fady Bader > Sent: Wednesday, May 13, 2020 12:09 PM > To: Dmitry Kozlyuk > Cc: dev@dpdk.org; Dmitry Malloy (MESHCHANINOV) > ; Narcisa Ana Maria Vasile > ; Tal Shnaiderman ; > Thomas Monjalon ; Harini Ramakrishnan > ; Omar Cardona > ; Pallavi Kadam ; > Ranjit Menon ; John McNamara > ; Marko Kovacevic > ; Anatoly Burakov > > Subject: RE: [PATCH v4 8/8] eal/windows: implement basic memory > management >=20 >=20 >=20 > > -----Original Message----- > > From: Dmitry Kozlyuk > > Sent: Wednesday, May 13, 2020 11:43 AM > > To: Fady Bader > > Cc: dev@dpdk.org; Dmitry Malloy (MESHCHANINOV) > > ; Narcisa Ana Maria Vasile > > ; Tal Shnaiderman > ; > > Thomas Monjalon ; Harini Ramakrishnan > > ; Omar Cardona > > ; Pallavi Kadam ; > > Ranjit Menon ; John McNamara > > ; Marko Kovacevic > > ; Anatoly Burakov > > > > Subject: Re: [PATCH v4 8/8] eal/windows: implement basic memory > > management > > > > On Wed, 13 May 2020 08:24:12 +0000 > > Fady Bader wrote: > > > > > Hi Dmitry, > > > I'm using your latest memory management patchset and getting an > > > error in the function VirualAlloc2 in eal_mem_commit, error code: > > > 0x57 (ERROR_INVALID_PARAMETER). I'm using Windows server 2019 > build > > 17763, > > > and followed the steps to Grant *Lock pages in memory* Privilege. > > > > > > The parameters that are sent to the function are: > > > GetCurrentProcess() is -1. > > > requested_addr is 0x0000025b`93800000. > > > Size is 0x200000 (sysInfo.dwAllocationGranularity is 0x10000). > > > Flags is 0x20007000. > > > Also, Socket_id is 0. > > > > > > The call stack is: > > > 00 dpdk_mempool_test!eal_mem_commit+0x253 > > > 01 dpdk_mempool_test!alloc_seg+0x1b0 > > > 02 dpdk_mempool_test!alloc_seg_walk+0x2a1 > > > 03 dpdk_mempool_test!rte_memseg_list_walk_thread_unsafe+0x81 > > > 04 dpdk_mempool_test!eal_memalloc_alloc_seg_bulk+0x1a5 > > > 05 dpdk_mempool_test!alloc_pages_on_heap+0x13a > > > 06 dpdk_mempool_test!try_expand_heap_primary+0x1dc > > > 07 dpdk_mempool_test!try_expand_heap+0xf5 > > > 08 dpdk_mempool_test!alloc_more_mem_on_socket+0x693 > > > 09 dpdk_mempool_test!malloc_heap_alloc_on_heap_id+0x2a7 > > > 0a dpdk_mempool_test!malloc_heap_alloc+0x184 > > > 0b dpdk_mempool_test!malloc_socket+0xf9 > > > 0c dpdk_mempool_test!rte_malloc_socket+0x39 > > > 0d dpdk_mempool_test!rte_zmalloc_socket+0x31 > > > 0e dpdk_mempool_test!rte_zmalloc+0x2d > > > 0f dpdk_mempool_test!rte_mempool_create_empty+0x1c9 > > > 10 dpdk_mempool_test!rte_mempool_create+0xf8 > > > > Hi Fady, > > > > Can you share the code snippet causing this? > > >=20 I got it from dpdk\app\test\test_mempool Line 496: /* create a mempool (without cache) */ mp_nocache =3D rte_mempool_create("test_nocache", MEMPOOL_SIZE, MEMPOOL_ELT_SIZE, 0, 0, NULL, NULL, my_obj_init, NULL, SOCKET_ID_ANY, 0); >=20 > > -- > > Dmitry Kozlyuk