[dpdk-dev] NUMA node/socket
Thomas Monjalon
thomas at monjalon.net
Sun Jul 4 03:53:43 CEST 2021
04/07/2021 03:38, Thomas Monjalon:
> There are some mix between NUMA node and socket IDs in DPDK.
> Examples:
> * rte_eth_dev_socket_id() returns the NUMA node.
> * rte_malloc use sockets to allocate the memory
>
> Is it critical?
There is a function, implemented for Windows only,
which distinguishes clearly node and socket
but it assumes there is only 1 node per socket:
unsigned int
eal_socket_numa_node(unsigned int socket_id)
{
return cpu_map.sockets[socket_id].node_id;
}
Reminder: AMD can be configured to have multiple nodes per socket.
More information about the dev
mailing list