gatekeeper icon indicating copy to clipboard operation
gatekeeper copied to clipboard

n_gk_lcores can only be configured with 4

Open ShawnLeung87 opened this issue 1 year ago • 1 comments

Stable version 1.0.0

n_gk_lcores can only be configured with 4, more than 4 reports

"EAL: eal_memalloc_alloc_seg_bulk(): couldn't find suitable memseg_list"

CPU:Intel(R) Xeon(R) Platinum 8280M CPU @ 2.60GHz cpu cores 28 ,numa 2 RAM :384G Hupag default_hugepagesz=1G hugepagesz=1G hugepages=360

ShawnLeung87 avatar Aug 17 '22 10:08 ShawnLeung87

I guess your RAM is DDR4. If so, not being able to have more than 4 instances of the GK block may be fine. Four instances of the GK block on a mainboard with 2 NUMA nodes may already be at the limit of the memory buses. If so, having more instances will slow everything down because they would overload the memory buses.

If you, however, want to proceed anyway, reduce the size of your flow table (parameter flow_ht_size) and the size of your FIB (parameters max_num_ipv4_rules, num_ipv4_tbl8s, max_num_ipv6_rules, and num_ipv6_tbl8s) in the file lua/gk.lua. The example values found in the repository would be a good start.

AltraMayor avatar Aug 17 '22 13:08 AltraMayor