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 6AA97A00C5 for ; Tue, 19 Jul 2022 17:11:27 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E66B940A8B; Tue, 19 Jul 2022 17:11:26 +0200 (CEST) Received: from mail-oi1-f173.google.com (mail-oi1-f173.google.com [209.85.167.173]) by mails.dpdk.org (Postfix) with ESMTP id E233A40A8A for ; Tue, 19 Jul 2022 17:11:24 +0200 (CEST) Received: by mail-oi1-f173.google.com with SMTP id j70so7100086oih.10 for ; Tue, 19 Jul 2022 08:11:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=r5Sf4dKnoIermgsJJ4GUcE4KmrFuCiqbQ1hd2sFBgSA=; b=gO76cyUOWzw2wHaeXqfe110te4m76wY4BIPA4nXVjcW6Hdb6TpABDB7SyXYb8D4IaY XTc5bZC1+nHAvigjJV+uZCpilFLIdhDy/mUxQd2jRxzESeuFYcaomsBym2EgfMBjVEV6 KsO/H8pjVKSYmnU54PF9VmhklOz+pCIbFhYAfUkBW/wenFc8TfMNApgDQvtrXTLgHTck Actp4DVA0K/sSQSboSgGRCYabfnyEsVQx1EiD3+S3OqsJVwwLoZEgcl0tlWbZRKebhyp Hdr3Uia/qOIjfHyq1syrUbkkL+h8YzY4FA5IVbOFMOon4bpmPLtrh2JGq5UAGeG4TpX+ w6mA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=r5Sf4dKnoIermgsJJ4GUcE4KmrFuCiqbQ1hd2sFBgSA=; b=ScKEWKKWFNT4G1f1TmtvnsTpSya1DF0GnbcqfgPs9KYBHsixUYI+/21skyYrSFREXz 4VRw/HSwZvn0Q7ymWlBDlcHYty+ppKrevpWNhDv65d7HhmxZG+hgS5AeEfyxFA8GfyZ4 01BYjIw+fE1e57qH8eaohkWuXANfpz9m5Cl9sJbOkED1aBikr1CFapVOc8TW5odhn4mW a+CbCc5DfVVTEJOflihsWLoS2cS/f02DZN2Ju9i//nC0+853iE6e+UIvLh7zDYjMVt1b QaKJvqLAdOdZwQeovW/HSJaKSdxd2HqYtPw4i1kfKY1HPuDaZf9ls+o9OdUoPSO70Mhf gNZA== X-Gm-Message-State: AJIora/zv+2AnK7YFQv2fdM9KoRzc5WzosNVC+mLiJn1YeuPy+KGDYSe /PiYfcGdailbdWamKl9Q9UWidW8Dcr82oBV42dWtogsR9EO1ag== X-Google-Smtp-Source: AGRyM1sJxDLR9CfSFrK5JCMHsRlqDY/xh/huyh8B/r9nQua2SbnBroY4D4dZ9sSqB673bD9jhkA/BfI85vMiQKt7tuw= X-Received: by 2002:a05:6808:309b:b0:33a:6af5:f9c7 with SMTP id bl27-20020a056808309b00b0033a6af5f9c7mr7036261oib.59.1658243483891; Tue, 19 Jul 2022 08:11:23 -0700 (PDT) MIME-Version: 1.0 From: Antonio Di Bacco Date: Tue, 19 Jul 2022 17:11:13 +0200 Message-ID: Subject: rte_memzone_reserve_aligned always allocate 1GB hugepages irrespective of the size I request I allocate To: users@dpdk.org Content-Type: text/plain; charset="UTF-8" X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org I'm working on a system that has the following hugepages configuration: ## sudo dpdk-hugepages.py -s Node Pages Size Total 2 256 2Mb 512Mb 2 8 1Gb 8Gb 0 256 2Mb 512Mb 0 8 1Gb 8Gb 3 256 2Mb 512Mb 3 8 1Gb 8Gb 1 256 2Mb 512Mb 1 8 1Gb 8Gb Hugepages mounted on /dev/hugepages ## If I try to allocate memory with rte_memzone_reserve_aligned(mem_name, 1024*1024, socket_id, RTE_MEMZONE_2MB | RTE_MEMZONE_SIZE_HINT_ONLY | RTE_MEMZONE_IOVA_CONTIG, RTE_CACHE_LINE_SIZE): it always allocate the memory on 1GB hugepage. If I remove RTE_MEMZONE_SIZE_HINT_ONLY flag, the allocation fails. Regards.