cisco-system-traffic-generator/trex-core

Sub-numa clustering is not supported with 2xE810 NICs

il-alexk opened this issue · 0 comments

Trex can't allocate hugepages with Sub-NUMA clustering enabled, no issues if I disable the SNC in the BIOS. Likely to be related to https://groups.google.com/g/trex-tgn/c/F_BSC4c4VxA, was it really fixed?

Here is the output from my system, trex command is shown the last. Tested with v3.03 and v3.04.

# lshw -c network -businfo
Bus info          Device     Class          Description
=======================================================
pci@0000:31:00.0             network        Ethernet Controller E810-C for QSFP
pci@0000:33:00.0             network        Ethernet Controller E810-C for QSFP
pci@0000:ca:00.0             network        Ethernet Controller E810-C for QSFP
pci@0000:cc:00.0             network        Ethernet Controller E810-C for QSFP

# lscpu
Architecture:                       x86_64
CPU op-mode(s):                     32-bit, 64-bit
Byte Order:                         Little Endian
Address sizes:                      46 bits physical, 57 bits virtual
CPU(s):                             80
On-line CPU(s) list:                0-79
Thread(s) per core:                 1
Core(s) per socket:                 40
Socket(s):                          2
NUMA node(s):                       4
Vendor ID:                          GenuineIntel
CPU family:                         6
Model:                              106
Model name:                         Intel(R) Xeon(R) Platinum 8380 CPU @ 2.30GHz
Stepping:                           6
CPU MHz:                            800.000
CPU max MHz:                        2300.0000
CPU min MHz:                        800.0000
BogoMIPS:                           4600.00
Virtualisation:                     VT-x
L1d cache:                          3.8 MiB
L1i cache:                          2.5 MiB
L2 cache:                           100 MiB
L3 cache:                           120 MiB
NUMA node0 CPU(s):                  0-19
NUMA node1 CPU(s):                  20-39
NUMA node2 CPU(s):                  40-59
NUMA node3 CPU(s):                  60-79
Flags:                              fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art
                                     arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid dca sse4_1
                                     sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb cat_l3 invpcid_single intel_ppin ssbd mba ibrs ibp
                                    b stibp ibrs_enhanced tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid cqm rdt_a avx512f avx512dq rdseed adx smap av
                                    x512ifma clflushopt clwb intel_pt avx512cd sha_ni avx512bw avx512vl xsaveopt xsavec xgetbv1 xsaves cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local split_lock_detec
                                    t wbnoinvd dtherm arat pln pts avx512vbmi umip pku ospke avx512_vbmi2 gfni vaes vpclmulqdq avx512_vnni avx512_bitalg tme avx512_vpopcntdq la57 rdpid fsrm md_clear pc
                                    onfig flush_l1d arch_capabilities


#cat /proc/meminfo
MemTotal:       263746736 kB
MemFree:        179996776 kB
MemAvailable:   179457068 kB
Buffers:           44508 kB
Cached:           532924 kB
SwapCached:            0 kB
Active:           156868 kB
Inactive:         828024 kB
Active(anon):       3296 kB
Inactive(anon):   410992 kB
Active(file):     153572 kB
Inactive(file):   417032 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:       2097148 kB
SwapFree:        2097148 kB
Dirty:               324 kB
Writeback:             0 kB
AnonPages:        407612 kB
Mapped:           282080 kB
Shmem:              9264 kB
KReclaimable:      74200 kB
Slab:             317024 kB
SReclaimable:      74200 kB
SUnreclaim:       242824 kB
KernelStack:       23920 kB
PageTables:        14528 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:    100416084 kB
Committed_AS:    5396136 kB
VmallocTotal:   13743895347199 kB
VmallocUsed:      306496 kB
VmallocChunk:          0 kB
Percpu:           100992 kB
HardwareCorrupted:     0 kB
AnonHugePages:         0 kB
ShmemHugePages:        0 kB
ShmemPmdMapped:        0 kB
FileHugePages:         0 kB
FilePmdMapped:         0 kB
HugePages_Total:      64
HugePages_Free:       63
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:    1048576 kB
Hugetlb:        67108864 kB
DirectMap4k:      299020 kB
DirectMap2M:    11929600 kB
DirectMap1G:    257949696 kB

#sudo numactl --hardware
available: 4 nodes (0-3)
node 0 cpus: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
node 0 size: 64098 MB
node 0 free: 41619 MB
node 1 cpus: 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
node 1 size: 64459 MB
node 1 free: 47202 MB
node 2 cpus: 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
node 2 size: 64507 MB
node 2 free: 48002 MB
node 3 cpus: 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79
node 3 size: 64500 MB
node 3 free: 38942 MB
node distances:
node   0   1   2   3
  0:  10  11  20  20
  1:  11  10  20  20
  2:  20  20  10  11
  3:  20  20  11  10

# ./_t-rex-64 -c 16 --no-watchdog --mbuf-factor 30 -i --cfg ...../configs/trex_two_nics.yaml
Starting  TRex v3.03 please wait  ...
 set driver name net_ice
 driver capability  : TCP_UDP_OFFLOAD  TSO  SLRO
 set dpdk queues mode to DROP_QUE_FILTER
 Number of ports found: 2
zmq publisher at: tcp://*:4500
 wait 1 sec .
port : 0
------------
link         :  link : Link Up - speed 100000 Mbps - full-duplex
promiscuous  : 0
port : 1
------------
link         :  link : Link Up - speed 100000 Mbps - full-duplex
promiscuous  : 0
 number of ports         : 2
 max cores for 2 ports   : 16
 tx queues per port      : 18
 -------------------------------
RX core uses TX queue number 16 on all ports
 core, c-port, c-queue, s-port, s-queue, lat-queue
 ------------------------------------------
 1        0      0       1       0     17
 2        0      1       1       1    255
 3        0      2       1       2    255
 4        0      3       1       3    255
 5        0      4       1       4    255
 6        0      5       1       5    255
 7        0      6       1       6    255
 8        0      7       1       7    255
 9        0      8       1       8    255
 10        0      9       1       9    255
 11        0     10       1      10    255
 12        0     11       1      11    255
 13        0     12       1      12    255
 14        0     13       1      13    255
 15        0     14       1      14    255
 16        0     15       1      15    255
 -------------------------------
 ERROR there is not enough huge-pages memory in your system