Skip to content
Search

Numactl

lastmod 2025-06-02created 2024-08-193 edits

Example

numactl \
  --cpunodebind=0 \
  --membind=0 \
  python3 your_script.py

Options:

  • --cpunodebind=N - Restrict CPU execution to NUMA node N
  • --membind=N - Restrict memory allocation to NUMA node N
  • --physcpubind=0,1 - Can specify physical CPU numbers directly
  • --interleave=0,1 - Allocate memory in interleaved mode

How to check NUMA settings

  • lscpu | grep NUMA
  • numactl --hardware

See also

author Zer0 sitemap