Actions
Bug #7378
opendpdk: having too few hugepages can lead to segfault on startup
Affected Versions:
Effort:
Difficulty:
Label:
Description
Starting Suri with the usual params and mempool size set to ~262143.
Just one 2MB Hugepage allocated.
The output:
... Config: detect: No rules loaded from /dev/null [SigLoadSignatures:detect-engine-loader.c:351] Info: detect: No signatures supplied. [SigLoadSignatures:detect-engine-loader.c:361] RING: Cannot reserve memory HASH: memory allocation failed ice_fdir_init_filter_list(): Failed to create fdir hash table! ice_fdir_setup(): Failed to init FDIR filter list. ice_flow_init(): Failed to initialize engine 1 ice_dev_init(): Failed to initialize flow Segmentation fault
This is up for a discussion if Suricata should still be responsible for this as the driver crashes Suricata. It is possible however to preestimate the size of hugepages by considering - mempool size, (potentially number of mempools - mempool per interface/queue), mbuf size (mtu + extra).
Updated by OISF Ticketbot about 2 months ago
- Label deleted (
Needs backport to 7.0)
Actions