Libbpf userspace function bpf_map__set_numa_node
Set the NUMA node the map is or will be created on.
Definition
int bpf_map__set_numa_node(struct bpf_map *map, __u32 numa_node);
Parameters
map
: Pointer to the BPF map.numa_node
: NUMA node the map is or will be created on.
Return
0
on success, a negative error in case of failure.
Usage
Setting a NUMA node might improve performance if the map is expected to be accessed a lot from that NUMA domain. This is an advanced option and should only be used if you know what you are doing.
This value can only be modified before the map is loaded.
Example
Docs could be improved
This part of the docs is incomplete, contributions are very welcome