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 C5A9BA034F; Wed, 13 May 2020 14:25:13 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id CB9A61D56D; Wed, 13 May 2020 14:25:12 +0200 (CEST) Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-eopbgr150083.outbound.protection.outlook.com [40.107.15.83]) by dpdk.org (Postfix) with ESMTP id BAAEA1D553 for ; Wed, 13 May 2020 14:25:11 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FzaH3OIkUlUQRQ2M+8unGdsJMXqXsGc6AzrNMEznxPFMb4M9F4tjqae2r5gxcAsxr2GBhgGb/GP9wNJMALoWR/tKSXI8t0LKjPFWwI8VgN1QUQ/OZ5sjCvqqN9A/fs8g3T5Wv4ztcPIKANexKPIIhxfnpSEoC41Fj12kz41AxMRzeJdVrvNHiYroqA1hT/dzM/134Zi21EI+2I24ip+QC/+oBuwzqI2ECbgr38yeclPXhhyMVc/XMzK9aZeqNnYINN4t24iNPUH3Y8mDFggPxFyJBud6a/wx4yZ5gv9r6DTQhq4x3bwHJ6NaeH5c27w8NV4/4+YnW+olRWWMG1mI8w== 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=X+NXT3CZyvqEIWlM0PElUVLc12sJ20V1IHfQXF760ZQ=; b=KOyKVD49InjMr8PeY35HDJrFjcB4RM7Baq/cLUsJ5zERyPo0BEE14/x5xkrCuNyqz3ctekaNWlTIgFFU1MTJEsPMki9jNnENq9PyHsGJiBFZb15c4xukfYUOr5ZMfrU7UYNcTbaetLb6suXpcJZ1WsxSZAFVZ2rz11u9SkiN6BucBMT1flAUswTU1wagUj1UjP0r0wLSqJOHDzmwFeVG9woofesaj0bpusKjQvzPWnDbotmrXuQOrrnN3ndelQL/C8nPfVCxrJ6GGkvJ6K10RUrL6Km6hYeGKrZBjJPQSZ/JPXSNLXTG2iXwM7Xh5U8sS7NpaQnrD6xvt44PqyquTw== 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=X+NXT3CZyvqEIWlM0PElUVLc12sJ20V1IHfQXF760ZQ=; b=k+c77SCnlUalbs/Wxd86vEbzOT3zGaeqPHdUJnmpQfBjlfqDMHV3uVqu+o4+s15li+79xB5MXGaZvaJgPY/fGWp1v+8i01sE+btiBy2iG3NTP9JKqmNYZEjnAxbn3k2WgJlGque+D3bdTQjUPKyIlXsaxmz6zNL2KgmIZ+NZj6Q= Received: from AM0PR0502MB4034.eurprd05.prod.outlook.com (2603:10a6:208:12::14) by AM0PR0502MB4019.eurprd05.prod.outlook.com (2603:10a6:208:f::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2979.33; Wed, 13 May 2020 12:25:10 +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 12:25:10 +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/BKilvyyQgAAKWQCAAAVZQIAACkgAgAAuXVA= Date: Wed, 13 May 2020 12:25:10 +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> <20200513123844.618b79f2@sovereign> In-Reply-To: <20200513123844.618b79f2@sovereign> 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: 6483393f-75c6-4199-345e-08d7f738ae0c x-ms-traffictypediagnostic: AM0PR0502MB4019:|AM0PR0502MB4019: 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:336; x-forefront-prvs: 0402872DA1 x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: iV9KNPXuC/klMIxcTpBl/t9/RyawuExsyFu8GEHliBm0qBrYkLUvYCu5PB6bDPndb1nz+kk/DDClW8GZqBp3u0PeLjHIap6s8h5iYPxdcExDkTJ9N/DiGJr44eQhgE3mG5Rqb5nDNmN3famq6pWx5c6tNjuY5udFePmO7TUL7MnTb9plWyhHbAZuz0kVRA6bT8gjeax81i6KXHbBdtWe5ngrlXevZhAsx/oDMza0LpQFaqVAkllp+m2+5a7faLbJX4tcpRvBUNvTkJmqsTjnulKBwpaACpzEbzBEVvABsiffzyuIHXfrIK9rpWNvZxL17lOanT5laFvHeZUuGIoMNa3SE3ZwZMjOHy/0lkqynIkqEC8vGVO4LAukTWQGKSmOh1XiL/APxFJhJGTiUeIpNb1vjDkkXfQiIs3e2ch9qVoFFSdvb4nuICQHkOt7RZ8Po1uWYALbJVsIckmLVMf+Vf7ERYsw0Zw1t73cmCDT/xNUqd+vryzTU22lvyb0WF5vcmVmDTacW/Sdo4m4jZId+w== 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)(136003)(396003)(346002)(376002)(366004)(39860400002)(33430700001)(66446008)(64756008)(71200400001)(8676002)(66946007)(66476007)(7416002)(9686003)(52536014)(86362001)(33440700001)(7696005)(186003)(76116006)(55016002)(5660300002)(8936002)(2906002)(53546011)(26005)(6506007)(66556008)(478600001)(6916009)(33656002)(54906003)(4326008)(316002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: ITMhHUIfxK4UYx7L/CgH49T+owIZfyYhaRaA9a0d5XYLShACW++29+52rro1U7STBKow5BiDxTicqVUFtEjOu4kGkvkB/ZWdvV6WLntlNKhNCEVcJ+wrGP4c1nQ7f3oXy262h1JsTf6K8goiN/OdnYFgxQNUisFNhDBy3Q2pMobDUsQBjWD1Xblc9O3+fdWlB8uIVuyf2dbdvGzxAaeqvt9gDnhhcidBML4W53cp4pbUfsuH/CNMQfL0lQ/RQt8TFQDxTcpWIfy3Bhvs79Kt0Z+LRvH6yn08hn3SBZWgRPhvDm20cuchQx2Gav/c1akqpp9RyooGu0v2dSlx3sA3DFn+OjjSMJjBE/dZLk0EkWor75SF9ecBrlAGlxNGgXes4HFgjwgokcOaj8Y+IFizTiIufoNnQS9YHjKsfwSUGuf2lfwczJlQkk7zbNVO/zVLlGuAY0TQlUCJIlJg9eljbEegalY6ddgngy8zF3YcRmef8dxedhm90L/XZNJ2a3wm 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: 6483393f-75c6-4199-345e-08d7f738ae0c X-MS-Exchange-CrossTenant-originalarrivaltime: 13 May 2020 12:25:10.5599 (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: nEPlaBbRyb+6/sPzndCC5mOBKvNyhAmQqY3j+lgnrKIMMarsC6YFsdtpZVlGYy3kWgKGHIkR6Se80PbhRVpaow== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR0502MB4019 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: Dmitry Kozlyuk > Sent: Wednesday, May 13, 2020 12:39 PM > 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 >=20 > On Wed, 13 May 2020 09:09:22 +0000 > Fady Bader wrote: >=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? > > > > > > > [snip] > [snip] >=20 > I meant the code of the application that calls rte_mempool_create(). Or i= s it > one of the DPDK test applications? 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