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 6E5A9A034F; Wed, 13 May 2020 11:38:48 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 473C91D14A; Wed, 13 May 2020 11:38:48 +0200 (CEST) Received: from mail-lj1-f193.google.com (mail-lj1-f193.google.com [209.85.208.193]) by dpdk.org (Postfix) with ESMTP id 38F581D148 for ; Wed, 13 May 2020 11:38:46 +0200 (CEST) Received: by mail-lj1-f193.google.com with SMTP id l19so17042279lje.10 for ; Wed, 13 May 2020 02:38:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=lCOXMjpzTXXfj/u+7sPnsKqwDi3sG7IRJcfgf8MEQEs=; b=llkEhdrssSshClWSITDjr90QpguyPv5NAwzTa5jg36nMnBeWbsdmn9w76OlmtOpFOU xAK8WFly+h6X5oRduUssuwxqbfmTQsexJR+ZaqeYA4vOrYBEo7GUFdqawomZS+oW3KQV DQFWKEOfy15h3bl3asQyOlyGBaJfskALhlEGBDz2HGiSC7dHonQpBtWsGGeH/tjNKL40 nSGdUPqYChORV6yOlGaGtGYvzLI7lMfvvKIBwIZk/ku+NLpGjiXJZNiYNpqih5IGaNEh eNM0T43amKcmOhYjjJJKeqKvFpYkAmxO/K96UkV6BEx1IEFxdCIo+QJAJezEM/t/wCth VXAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=lCOXMjpzTXXfj/u+7sPnsKqwDi3sG7IRJcfgf8MEQEs=; b=RDGw8ddtxdaFbiu6eLJc+w01PG/xayxVmPKywNp+wztJvSkA3bo91JLl6TPTTdFxV4 wq5UFJkjBakxKHK2tYGsn6HxohreBqny5ZNHJf8Lw6duIM0/Sue0Nh48KM7Jb1TqQZXr nyCJOhef7+IIPm/NxmttJ8Ja3jSM4E/aYilvzVz4Av7lsCl94IcFFywoeSx+H9sCCIl0 YbHDSDborPaGpK/qslHEjWfHUEYF0mChjJ0zOoBPJsdb84sJWGYSLvV+8T28IDcb10QO 3wYVXe6mR0xHOX6PtLChAIabszp4D98Qhdoiva4QwTf+4+KkFGk4lqxw7pA6zioEEMMf XP2w== X-Gm-Message-State: AOAM53010Lxqp2kbYs5PLBxOZTXtzqGbCGGZoaPbNa8AVd/br4l3IkfX oSEYbeZgrk2KfsO4WR0XjUQ= X-Google-Smtp-Source: ABdhPJwuhqIh+GQ3yh47qBEVAHnsWKXVcLGYR/lg0SDb9aUvYNIQ/zUefZTNkyUP9mzY3hX1gYZ/ZA== X-Received: by 2002:a05:651c:201a:: with SMTP id s26mr2302474ljo.207.1589362725694; Wed, 13 May 2020 02:38:45 -0700 (PDT) Received: from sovereign (broadband-37-110-65-23.ip.moscow.rt.ru. [37.110.65.23]) by smtp.gmail.com with ESMTPSA id h6sm14701743ljj.29.2020.05.13.02.38.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 May 2020 02:38:45 -0700 (PDT) Date: Wed, 13 May 2020 12:38:44 +0300 From: Dmitry Kozlyuk 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 Message-ID: <20200513123844.618b79f2@sovereign> In-Reply-To: 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> X-Mailer: Claws Mail 3.17.4 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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" On Wed, 13 May 2020 09:09:22 +0000 Fady Bader wrote: > > -----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] I meant the code of the application that calls rte_mempool_create(). Or is it one of the DPDK test applications? -- Dmitry Kozlyuk