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 apt -y install
> dpdk*"
>
> added "nodev /mnt/huge hugetlbfs pagesize=1GB 0 0" in /etc/fstab
> added "vm.nr_hugepages=1024" in /etc/sysctl.conf
>
> rebooted the machine and then did devbind using the following command:
>
> sudo modprobe vfio-pci && sudo dpdk-devbind.py --bind=vfio-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?