hugepages on both sockets
Stephen Hemminger
stephen at networkplumber.org
Sun Apr 6 17:38:07 CEST 2025
On Sun, 6 Apr 2025 00:56:45 +0000
"Lombardo, Ed" <Ed.Lombardo at netscout.com> wrote:
> Hi Dmitry,
> You pointed out a good point. I passed the literal "--socket-mem=2048,2048" in the array provided to rte_eal_init() function, where DPDK EAL tries to tokenize in place the string and it crashes trying to modify a readonly memory. I don't know why DPDK does this. But now I know, and I now see four rtemap_x files created for two sockets.
The function rte_eal_init() expects arguments to be like the arguments passed to main().
Those arguments are not read-only. You need to use strdup (or strdupa) to make mutable versions.
More information about the users
mailing list