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 5A49F43D94 for ; Sun, 31 Mar 2024 12:58:32 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BB55940266; Sun, 31 Mar 2024 12:58:31 +0200 (CEST) Received: from mail-oi1-f180.google.com (mail-oi1-f180.google.com [209.85.167.180]) by mails.dpdk.org (Postfix) with ESMTP id 18F39400EF for ; Sun, 31 Mar 2024 12:58:31 +0200 (CEST) Received: by mail-oi1-f180.google.com with SMTP id 5614622812f47-3c396fec63aso1273145b6e.0 for ; Sun, 31 Mar 2024 03:58:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1711882710; x=1712487510; darn=dpdk.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=uhmno9b7NhAUw3evm6qzOsB1/HqocpxgcjjzIva72aE=; b=bq4gxrsk6OeGTW7VvwAHOznDdKq3nZt3eSxDcJJ+gd+x9r+IaL8LO4sF+JxdBnLnYq ZvIBiNU3gzSvaxPbCopUJSmnSGyHhLzfAOIY6s5ZT6etI048bY026pi+Xsu7gqHRoyxt /6JR0ubjgkax0l+fDlkyUj7Bo3bdMLUU7SO2pO9Db8FygHTBfTFR884Wrf0wHO6/b3Ec U38W9OkPeX2Cw4rjJujLEZPKRjHUKl74YKm9MFgIfRhLb3swrXMhDY536QCPWYChQNib 14gf5ncmjzKr0nl3f+/pouZ0byYWgo5wP5KaRHS+BB5tfiQAtvAgmCJ4P/f/nCQA+5yW W16g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711882710; x=1712487510; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=uhmno9b7NhAUw3evm6qzOsB1/HqocpxgcjjzIva72aE=; b=Axf+LcnL2MlqLzuYgaN9N28mg8oB4gxxtuKIVy3Fqtdq9xvsOcPJ3m3J6ibit5aAgg HQphI9T+PnGTHfQCPVR4SpG79kQktUf6mEj9l5SAv7FwNQ/YbdUweyIsrXnoBPFOZ01x aYp1kmj5Sm11jd305/SN3n+SC4hMbR2jcHv3Q8dNRZrPHxaGw2ZsqtyvaVYcDNbTq2ck Sgm9s0yRK4/7y83iNFANt1U+5pjV6++QG85wOz73HBeBRDHLMen4of/daCnrxL4+/BJu YvpW51rLf6T0+dyF7ICxImhqaSKCqb3QhTSNdm6C7pFgzAVZEP+0PGSYJGYy3yYg9TH/ M+hg== X-Gm-Message-State: AOJu0YzQCzrFWX02A4hTtLAiRnT76sqBpYaxxED2zojhPXfRWpYUAUqn qnlFy+c3yL7/0UBkgNvjS7F3qBvTbqZiytz0f3v/sxxXAsE6kGbV33yosnfiNufGPipArkAGCqp LDxzfgC0pagiuGHGT+F+SDWd4FuIApLiueT4= X-Google-Smtp-Source: AGHT+IE2gg6Glm5mYP9rdlxr5ruE1rhR/xfphcX7+aosmB8PsEAg0lYINEqQwgw4DabPCdgUleWSqn8VnKCUNbYYPLk= X-Received: by 2002:a05:6808:1287:b0:3c3:8a48:b7eb with SMTP id a7-20020a056808128700b003c38a48b7ebmr7916905oiw.42.1711882709980; Sun, 31 Mar 2024 03:58:29 -0700 (PDT) MIME-Version: 1.0 From: Lokesh Chakka Date: Sun, 31 Mar 2024 16:28:19 +0530 Message-ID: Subject: No free hugepages reported To: users Content-Type: multipart/alternative; boundary="000000000000d362ca0614f2c018" 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 --000000000000d362ca0614f2c018 Content-Type: text/plain; charset="UTF-8" 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 ************************************************* output of "dpdk-devbind.py -s" is as follows : ************************************************* Network devices using DPDK-compatible driver ============================================ 0000:63:00.0 'Ethernet Controller E810-C for QSFP 1592' drv=vfio-pci unused=ice 0000:63:00.1 'Ethernet Controller E810-C for QSFP 1592' drv=vfio-pci unused=ice ************************************************* I am seeing the following error while I try to run dpdk-test ************************************************* $ sudo dpdk-test EAL: Detected CPU lcores: 128 EAL: Detected NUMA nodes: 8 EAL: Detected shared linkage of DPDK EAL: Multi-process socket /var/run/dpdk/rte/mp_socket EAL: Selected IOVA mode 'VA' EAL: No free 2048 kB hugepages reported on node 0 EAL: No free 2048 kB hugepages reported on node 1 EAL: No free 2048 kB hugepages reported on node 3 EAL: No free 2048 kB hugepages reported on node 4 EAL: No free 2048 kB hugepages reported on node 5 EAL: No free 2048 kB hugepages reported on node 7 EAL: No free 1048576 kB hugepages reported on node 0 EAL: No free 1048576 kB hugepages reported on node 1 EAL: No free 1048576 kB hugepages reported on node 2 EAL: No free 1048576 kB hugepages reported on node 3 EAL: No free 1048576 kB hugepages reported on node 4 EAL: No free 1048576 kB hugepages reported on node 5 EAL: No free 1048576 kB hugepages reported on node 6 EAL: No free 1048576 kB hugepages reported on node 7 EAL: VFIO support initialized set_mempolicy: Invalid argument set_mempolicy: Invalid argument set_mempolicy: Invalid argument set_mempolicy: Invalid argument set_mempolicy: Invalid argument set_mempolicy: Invalid argument set_mempolicy: Invalid argument set_mempolicy: Invalid argument EAL: Using IOMMU type 1 (Type 1) set_mempolicy: Invalid argument set_mempolicy: Invalid argument set_mempolicy: Invalid argument set_mempolicy: Invalid argument EAL: Probe PCI driver: net_ice (8086:1592) device: 0000:63:00.0 (socket 3) set_mempolicy: Invalid argument set_mempolicy: Invalid argument PANIC in eth_dev_shared_data_prepare(): Cannot allocate ethdev shared data 0: /lib/x86_64-linux-gnu/librte_eal.so.23 (rte_dump_stack+0x41) [788e7385d0b1] 1: /lib/x86_64-linux-gnu/librte_eal.so.23 (__rte_panic+0xc1) [788e7383e1c7] 2: /lib/x86_64-linux-gnu/librte_ethdev.so.23 (788e736f5000+0x8b16) [788e736fdb16] 3: /lib/x86_64-linux-gnu/librte_ethdev.so.23 (rte_eth_dev_allocate+0x31) [788e73709971] 4: /usr/lib/x86_64-linux-gnu/dpdk/pmds-23.0/librte_net_ice.so.23.0 (788e705d1000+0x67465) [788e70638465] 5: /lib/x86_64-linux-gnu/librte_bus_pci.so.23 (788e72fcc000+0x4c76) [788e72fd0c76] 6: /lib/x86_64-linux-gnu/librte_bus_pci.so.23 (788e72fcc000+0x8af4) [788e72fd4af4] 7: /lib/x86_64-linux-gnu/librte_eal.so.23 (rte_bus_probe+0x23) [788e7384bab3] 8: /lib/x86_64-linux-gnu/librte_eal.so.23 (788e73831000+0x123bf) [788e738433bf] 9: dpdk-test (59eca0915000+0x6c9e7) [59eca09819e7] 10: /lib/x86_64-linux-gnu/libc.so.6 (788e72c00000+0x28150) [788e72c28150] 11: /lib/x86_64-linux-gnu/libc.so.6 (__libc_start_main+0x89) [788e72c28209] 12: dpdk-test (59eca0915000+0x6ee85) [59eca0983e85] Aborted ************************************************* Can someone help me identify the issue please.... Thanks & Regards -- Lokesh Chakka. --000000000000d362ca0614f2c018 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello,

I've installed dp= dk in Ubuntu 23.10 with the command "sudo apt -y install dpdk*"

added=C2=A0 "nodev /mnt/huge hugetlbfs pag= esize=3D1GB 0 0" in /etc/fstab
added "vm.nr_hugepages= =3D1024" in /etc/sysctl.conf

rebooted the mac= hine 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=A06144 kB
ShmemHugePages: =C2=A0 =C2=A0 =C2=A0 =C2=A00 kBFileHugePages: =C2=A0 =C2=A0 =C2=A0 =C2=A0 0 kB
HugePages_Total: =C2=A0= =C2=A01024
HugePages_Free: =C2=A0 =C2=A0 1023
HugePages_Rsvd: =C2=A0= =C2=A0 =C2=A0 =C2=A00
HugePages_Surp: =C2=A0 =C2=A0 =C2=A0 =C2=A00
H= ugepagesize: =C2=A0 =C2=A0 =C2=A0 2048 kB
Hugetlb: =C2=A0 =C2=A0 =C2=A0 = =C2=A0 2097152 kB
*******************************************= ******

output of "dpdk-devbind.py -s" is= as follows :

*******************************= ******************

Network devices using DPDK-compatible driver=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
0000:63:00.= 0 'Ethernet Controller E810-C for QSFP 1592' drv=3Dvfio-pci unused= =3Dice
0000:63:00.1 'Ethernet Controller E810-C for QSFP 1592' d= rv=3Dvfio-pci unused=3Dice

************************************= *************

I am seeing the following error whil= e I try to run dpdk-test

*********************= ****************************
$ sudo dpdk-test
EAL: Detected C= PU lcores: 128
EAL: Detected NUMA nodes: 8
EAL: Detected shared linka= ge of DPDK
EAL: Multi-process socket /var/run/dpdk/rte/mp_socket
EAL:= Selected IOVA mode 'VA'
EAL: No free 2048 kB hugepages reported= on node 0
EAL: No free 2048 kB hugepages reported on node 1
EAL: No = free 2048 kB hugepages reported on node 3
EAL: No free 2048 kB hugepages= reported on node 4
EAL: No free 2048 kB hugepages reported on node 5EAL: No free 2048 kB hugepages reported on node 7
EAL: No free 1048576 = kB hugepages reported on node 0
EAL: No free 1048576 kB hugepages report= ed on node 1
EAL: No free 1048576 kB hugepages reported on node 2
EAL= : No free 1048576 kB hugepages reported on node 3
EAL: No free 1048576 k= B hugepages reported on node 4
EAL: No free 1048576 kB hugepages reporte= d on node 5
EAL: No free 1048576 kB hugepages reported on node 6
EAL:= No free 1048576 kB hugepages reported on node 7
EAL: VFIO support initi= alized
set_mempolicy: Invalid argument
set_mempolicy: Invalid argumen= t
set_mempolicy: Invalid argument
set_mempolicy: Invalid argument
= set_mempolicy: Invalid argument
set_mempolicy: Invalid argument
set_m= empolicy: Invalid argument
set_mempolicy: Invalid argument
EAL: Using= IOMMU type 1 (Type 1)
set_mempolicy: Invalid argument
set_mempolicy:= Invalid argument
set_mempolicy: Invalid argument
set_mempolicy: Inva= lid argument
EAL: Probe PCI driver: net_ice (8086:1592) device: 0000:63:= 00.0 (socket 3)
set_mempolicy: Invalid argument
set_mempolicy: Invali= d argument
PANIC in eth_dev_shared_data_prepare():
Cannot allocate et= hdev shared data
0: /lib/x86_64-linux-gnu/librte_eal.so.23 (rte_dump_sta= ck+0x41) [788e7385d0b1]
1: /lib/x86_64-linux-gnu/librte_eal.so.23 (__rte= _panic+0xc1) [788e7383e1c7]
2: /lib/x86_64-linux-gnu/librte_ethdev.so.23= (788e736f5000+0x8b16) [788e736fdb16]
3: /lib/x86_64-linux-gnu/librte_et= hdev.so.23 (rte_eth_dev_allocate+0x31) [788e73709971]
4: /usr/lib/x86_64= -linux-gnu/dpdk/pmds-23.0/librte_net_ice.so.23.0 (788e705d1000+0x67465) [78= 8e70638465]
5: /lib/x86_64-linux-gnu/librte_bus_pci.so.23 (788e72fcc000+= 0x4c76) [788e72fd0c76]
6: /lib/x86_64-linux-gnu/librte_bus_pci.so.23 (78= 8e72fcc000+0x8af4) [788e72fd4af4]
7: /lib/x86_64-linux-gnu/librte_eal.so= .23 (rte_bus_probe+0x23) [788e7384bab3]
8: /lib/x86_64-linux-gnu/librte_= eal.so.23 (788e73831000+0x123bf) [788e738433bf]
9: dpdk-test (59eca09150= 00+0x6c9e7) [59eca09819e7]
10: /lib/x86_64-linux-gnu/libc.so.6 (788e72c0= 0000+0x28150) [788e72c28150]
11: /lib/x86_64-linux-gnu/libc.so.6 (__libc= _start_main+0x89) [788e72c28209]
12: dpdk-test (59eca0915000+0x6ee85) [5= 9eca0983e85]
Aborted
****= *********************************************

Can someone help me identify the issue please....


= Thanks & Regards
--
Lokesh Chakka.

--000000000000d362ca0614f2c018--