How to solve huge-pages issue

190 views
Skip to first unread message

Pankaj Rodge

unread,
May 29, 2023, 3:54:11 AM5/29/23
to TRex Traffic Generator


I am getting below error

ERROR there is not enough huge-pages memory in your system EAL: Error - exiting with code: 1 Cause: Cannot init nodes mbuf pool nodes-13 Killing Scapy server... Scapy server is killed root@10:/opt/trex/trex-core/scripts# cat /proc/cmdline BOOT_IMAGE=/vmlinuz-4.15.0-140-generic root=/dev/mapper/ubuntu--vg-ubuntu--lv ro net.ifnames=0 biosdevname=0 quiet splash nomodeset nopku rootdelay=90 net.ifnames=1 biosdevname=0 transparent_hugepage=never nosmt kptr_restrict=2 cgroup.memory=nokmem intel_iommu=off numa_gpnodes=-1 hugepagesz=1G hugepages=61 isolcpus=0,1,2,3,4,5,6,7 root@10:/opt/trex/trex-core/scripts# free -h total used free shared buff/cache available Mem: 125G 65G 60G 15M 348M 60G Swap: 3.9G 0B 3.9G root@10:/opt/trex/trex-core/scripts# grep Huge /proc/meminfo AnonHugePages: 0 kB ShmemHugePages: 0 kB HugePages_Total: 2048 HugePages_Free: 0 HugePages_Rsvd: 0 HugePages_Surp: 0 Hugepagesize: 2048 kB



Below is my Trex CFG

- version: 2

  interfaces: ['0c:00.0', '0b:00.0', '14:00.0', '13:00.0', '1c:00.0', '1b:00.0', '05:00.0', '04:00.0']

  port_bandwidth_gb : 50

  port_info:

      - ip: 1.1.1.201

        default_gw: 1.1.1.101

      - ip: 172.168.1.11

        default_gw: 172.168.1.1


      - ip: 1.1.2.201

        default_gw: 1.1.2.102

      - ip: 172.168.2.11

        default_gw: 172.168.2.1


      - ip: 1.1.3.201

        default_gw: 1.1.3.103

      - ip: 172.168.3.11

        default_gw: 172.168.3.1


      - ip: 1.1.4.201

        default_gw: 1.1.4.104

      - ip: 172.168.4.11

        default_gw: 172.168.4.1


  platform:

      master_thread_id: 0

      latency_thread_id: 1

      dual_if:

        - socket: 0

          threads: [2,3,4,5]

        - socket: 0

          threads: [6,7,8,9]

        - socket: 0

          threads: [10,11,12,13]

        - socket: 0

          threads: [14,15,16,17]

Pim van Pelt

unread,
May 29, 2023, 4:21:49 AM5/29/23
to Pankaj Rodge, TRex Traffic Generator
Hoi Pankaj,

If there are not other applications using hugepages, you could try to remove the files (which perhaps a previous run of T-Rex didn't clean up?):

rm /dev/hugepages/*

groet,
Pim

--
You received this message because you are subscribed to the Google Groups "TRex Traffic Generator" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trex-tgn+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/trex-tgn/09522434-3e7e-4d83-ba8d-45085a80e7bbn%40googlegroups.com.


--
Pim van Pelt <p...@ipng.nl>
PBVP1-RIPE - http://www.ipng.nl/
Message has been deleted

Pankaj Rodge

unread,
May 29, 2023, 5:28:20 AM5/29/23
to TRex Traffic Generator
I tried but didn't solve the issue.

Nagaraju Pallapothu

unread,
May 29, 2023, 7:25:23 PM5/29/23
to TRex Traffic Generator
try, the following line in /etc/trex-cfg.yaml

  low_end: true

Reply all
Reply to author
Forward
0 new messages