Skip to content

Instantly share code, notes, and snippets.

@GermanAizek
Created March 6, 2024 11:34
Show Gist options
  • Save GermanAizek/87f7db128ac41a3bb18951bf92d2c03c to your computer and use it in GitHub Desktop.
Save GermanAizek/87f7db128ac41a3bb18951bf92d2c03c to your computer and use it in GitHub Desktop.
Building linux custom kernel with support NUMA and check result using numactl
$ grep NUMA /usr/src/linux/.config
CONFIG_ARCH_SUPPORTS_NUMA_BALANCING=y
# CONFIG_NUMA_BALANCING is not set
CONFIG_NUMA=y
CONFIG_AMD_NUMA=y
CONFIG_X86_64_ACPI_NUMA=y
# CONFIG_NUMA_EMU is not set
CONFIG_USE_PERCPU_NUMA_NODE_ID=y
CONFIG_ACPI_NUMA=y
CONFIG_NUMA_KEEP_MEMINFO=y 

# apt install numactl

$ numactl --hardware
available: 2 nodes (0) # or 4 nodes with 4 socket cpu
node 0 cpus: 0 1 2 3 4 5 6 7 8 9 10 11
node 0 size: 31942 MB
node 0 free: 7210 MB
node distances:
node   0
  0:  10 
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment