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 F028043D97 for ; Sun, 31 Mar 2024 23:20:22 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7389A4013F; Sun, 31 Mar 2024 23:20:22 +0200 (CEST) Received: from mail-qv1-f52.google.com (mail-qv1-f52.google.com [209.85.219.52]) by mails.dpdk.org (Postfix) with ESMTP id 41987400EF for ; Sun, 31 Mar 2024 23:20:20 +0200 (CEST) Received: by mail-qv1-f52.google.com with SMTP id 6a1803df08f44-690caa6438aso21145946d6.0 for ; Sun, 31 Mar 2024 14:20:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1711920019; x=1712524819; darn=dpdk.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=nFe2nzK8aVWLYBzwiOgRNBpSUI0trW8E7DhoHcxvpog=; b=e0sSzdWofHnN/RKLMtiqsVfqDzDNNUpgU6alLHlz4jL13nwGbdqUdZ/wvEf9Fo4Jiu HK0+xi7NQd/8IGMhfRQ+JP8SNmCGvP8jlqQGpa5aFQAWkPJvUy04eDak0Z+mIsulA21w BrK7B2JTzvZa11fY7m7isFo/G4zR/7NTPoVJhBrSqF3dwy6zccvTW5VS7/Z3YZ3jyqQU ixyQvxEZD58zsE5Ie3zl3JYJBxI4S8MArgR8DPZq0nxA9pQGZAci2dVfkIr0Lesthp+9 Q7Xz9jVlxjtAw6oqN+zZUrtfp+xfSj6yRgXXN6eY3Ewrh7SuzX9jf0Xfm5AjHk3v9t2R Y6fA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711920019; x=1712524819; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=nFe2nzK8aVWLYBzwiOgRNBpSUI0trW8E7DhoHcxvpog=; b=E4E3FTnI3uXb0F96qgZbVWBPnck9DJPtUCk/GzPLBPowJy4bDaGFSJ55KgjX4KbJBW 2xRdKCQ7ONVEQHpZobz5N3IDCvrgXwUExIe6gX5X9pG/3F5Kr/ZgNaWGUt4/UFth/6zY yShrlg+JNbb+cbCgnzQdpDPVHKAJBZ3y3Bz7sQ0b4hZWEbsi8LDdoXHYdrLzX6LYX3IJ LPPSbsycntOWa5h7Q7CYslOUAnID/8nczo7YF3jqxNzLuHYnNCZBYNVz99FAz69HWmti aNuXLN36uHKg76UmLvyW8baqzD0wCydq6PEj5oUxlE7f8msHU5LTBFEaf6EkTnrzFGNd 8RHg== X-Gm-Message-State: AOJu0YzleX86eCzEUnmYAzvXRgHaZBBkm/YvxVEP8cqiYgIFrKRIhUpg aaPZi8ZU5jorGfF579wISnJvmwn1GEUWnQS7cCgqZFEFsrzmscuN9h2uaII/ngBqksMRu1wBot0 rqjAiIDzpLZS3i7Iy2mET5hpzMaw= X-Google-Smtp-Source: AGHT+IGks5ZV7nzJjz65HkvibuEZVOJn8HDn5t8KNdB9/g3yc+UE2EfLNvAcH6pw7gK8uvtmqb1E2uQf9hnhqT+ufN8= X-Received: by 2002:a0c:d7c2:0:b0:696:8588:6a66 with SMTP id g2-20020a0cd7c2000000b0069685886a66mr7307576qvj.27.1711920019331; Sun, 31 Mar 2024 14:20:19 -0700 (PDT) MIME-Version: 1.0 References: <20240331120633.05256df7@hermes.local> In-Reply-To: <20240331120633.05256df7@hermes.local> From: Lokesh Chakka Date: Mon, 1 Apr 2024 02:50:08 +0530 Message-ID: Subject: Re: No free hugepages reported To: Stephen Hemminger Cc: users Content-Type: multipart/alternative; boundary="000000000000a2e2b70614fb7016" 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 --000000000000a2e2b70614fb7016 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable hi Stephen, Thanks for the reply. Following is the observation... ************************************************************* $ dpdk-hugepages.py -s Node Pages Size Total 2 512 2Mb 1Gb 6 512 2Mb 1Gb Hugepages mounted on /dev/hugepages /mnt/huge $ sudo dpdk-hugepages.py -p 1G --setup 2G Unable to set pages (0 instead of 2 in /sys/devices/system/node/node4/hugepages/hugepages-1048576kB/nr_hugepages). ************************************************************* Regards -- Lokesh Chakka. On Mon, Apr 1, 2024 at 12:36=E2=80=AFAM Stephen Hemminger < stephen@networkplumber.org> wrote: > On Sun, 31 Mar 2024 16:28:19 +0530 > Lokesh Chakka wrote: > > > Hello, > > > > I've installed dpdk in Ubuntu 23.10 with the command "sudo apt -y insta= ll > > dpdk*" > > > > added "nodev /mnt/huge hugetlbfs pagesize=3D1GB 0 0" in /etc/fstab > > added "vm.nr_hugepages=3D1024" in /etc/sysctl.conf > > > > rebooted the machine and then did devbind using the following command: > > > > sudo modprobe vfio-pci && sudo dpdk-devbind.py --bind=3Dvfio-pci 63:00.= 0 > > 63:00.1 > > > > Huge page info is as follows : > > > > ************************************************* > > $ cat /proc/meminfo | grep Huge > > AnonHugePages: 6144 kB > > ShmemHugePages: 0 kB > > FileHugePages: 0 kB > > HugePages_Total: 1024 > > HugePages_Free: 1023 > > HugePages_Rsvd: 0 > > HugePages_Surp: 0 > > Hugepagesize: 2048 kB > > Hugetlb: 2097152 kB > > ************************************************* > > Your hugepages are not setup correctly. The mount is for 1G pages > and the sysctl entry makes 2M pages. > > Did you try using the dpdk-hugepages script? > --000000000000a2e2b70614fb7016 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
hi Stephen,

Thanks for the r= eply. Following is the observation...

************= *************************************************
$ dpdk-hugepage= s.py -s
Node Pages Size Total
2 =C2=A0 =C2=A0512 =C2=A0 2Mb =C2=A0 = =C2=A01Gb
6 =C2=A0 =C2=A0512 =C2=A0 2Mb =C2=A0 =C2=A01Gb

Hugepage= s mounted on /dev/hugepages /mnt/huge

$ sudo d= pdk-hugepages.py -p 1G --setup 2G
Unable to set pages (0 instead of 2 in= /sys/devices/system/node/node4/hugepages/hugepages-1048576kB/nr_hugepages)= .
***********************************************************= **


Regards
-= -
Lokesh Chakka.


On Mon, Apr 1, 2024 at 12:36=E2=80=AFAM Stephen Hemming= er <stephen@networkplumber= .org> wrote:
On Sun, 31 Mar 2024 16:28:19 +0530
Lokesh Chakka <lvenkatakumarchakka@gmail.com> wrote:

> Hello,
>
> I've installed dpdk in Ubuntu 23.10 with the command "sudo ap= t -y install
> dpdk*"
>
> added=C2=A0 "nodev /mnt/huge hugetlbfs pagesize=3D1GB 0 0" i= n /etc/fstab
> added "vm.nr_hugepages=3D1024" in /etc/sysctl.conf
>
> rebooted the machine and then did devbind using the following command:=
>
> sudo modprobe vfio-pci && sudo dpdk-devbind.py --bind=3Dvfio-p= ci 63:00.0
> 63:00.1
>
> Huge page info is as follows :
>
> *************************************************
> $ cat /proc/meminfo | grep Huge
> AnonHugePages:=C2=A0 =C2=A0 =C2=A0 6144 kB
> ShmemHugePages:=C2=A0 =C2=A0 =C2=A0 =C2=A0 0 kB
> FileHugePages:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A00 kB
> HugePages_Total:=C2=A0 =C2=A0 1024
> HugePages_Free:=C2=A0 =C2=A0 =C2=A01023
> HugePages_Rsvd:=C2=A0 =C2=A0 =C2=A0 =C2=A0 0
> HugePages_Surp:=C2=A0 =C2=A0 =C2=A0 =C2=A0 0
> Hugepagesize:=C2=A0 =C2=A0 =C2=A0 =C2=A02048 kB
> Hugetlb:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A02097152 kB
> *************************************************

Your hugepages are not setup correctly. The mount is for 1G pages
and the sysctl entry makes 2M pages.

Did you try using the dpdk-hugepages script?
--000000000000a2e2b70614fb7016--