NUMACTL(8) Linux Administrator's Manual NUMACTL(8) (NAME) numactl - NUMA (SYNOPSIS) numactl [ --all ] [ --balancing ] [ --interleave nodes ] [ --weighted-interleave nodes ] [ --preferred node ] [ --preferred-many nodes ] [ --membind nodes ] [ --cpunodebind nodes ] [ --physcpubind cpus ] [ --localalloc ] [--] command {arguments ...} numactl --show numactl --hardware [--cpu-compress] numactl --version numactl [ --huge ] [ --offset offset ] [ --shmmode shmmode ] [ --length length ] [ --strict ] [ --shmid id ] --shm shmkeyfile | --file tmpfsfile [ --touch ] [ --dump ] [ --dump-nodes ] memory policy (DESCRIPTION) numactl NUMA . . . numactl -- . nodes N,N,N N-N N,N-N N-N,N-N . (relative nodes) +N,N,N +N-N +N,N-N . + cpuset . !N-N N-N N-N. + !+N-N . same (nodemask) . all cpuset . : netdev:DEV DEV. file:PATH PATH. ip:HOST HOST. block:PATH PATH. pci:[seg:]bus:dev[:func] PCI. block udev /dev file: . : --all, -a cpuset / . --interleave=nodes, -i nodes (interleave) . (round robin) nodes . . --interleave --membind --cpunodebind . --weighted-interleave=nodes, -w nodes . /sys/kernel/mm/mempolicy/weighted_interleave/node* . . --membind=nodes, -m nodes . . nodes . --cpunodebind=nodes, -N nodes command nodes. . nodes . --physcpubind=cpus, -C cpus process cpus. processor /proc/cpuinfo cpuset . "all" cpuset . (cpus) N,N,N N-N N,N-N N-N,N-N . (relative cpus) +N,N,N +N-N +N,N-N . + cpuset . !N-N N-N N-N. + !+N-N . --localalloc, -l . --preferred=node, -p node node . . . --balancing, -b NUMA . --membind, -m . --preferred-many=nodes, -P nodes nodes . . . --show, -s NUMA . --hardware, -H . --cpu-compress . . numactl SYSV shmfs/hugetlbfs . --version numactl . . . --shm --shmid --file ( --interleave --localalloc --preferred --preferred-many --membind). --huge SYSV (huge pages) . --shmid --shm . --offset . 0 . m ( ) g ( ) k ( ) . --strict (faulted in) . . --shmmode shmmode --shmid --shm . shmmode . --length length length . . . m ( ) g ( ) k ( ) . --shmid id id. --shm shmkeyfile ftok(3) shmkeyfile . --file tmpfsfile tmpfs hugetlbfs. --touch . . --dump (dump) . --dump-nodes ( !). : all number number1{,number2} number1 number2 number1-number2 number1 number2 ! nodes (EXAMPLES) numactl --physcpubind=+0-4,8-12 myapplic arguments myapplic 0-4 8-12 cpuset . numactl --interleave=all bigdatabase arguments bigdatabase . numactl --weighted-interleave=all bigdatabase arguments bigdatabase . numactl --cpunodebind=0 --membind=0,1 process process 0 0 1. numactl --cpunodebind=0 --membind=0,1 -- process -l (-l) numactl . numactl --cpunodebind=0 --balancing --membind=0,1 process process 0 0 1. NUMA . numactl --cpunodebind=netdev:eth0 --membind=netdev:eth0 network-server network-server eth0 . numactl --preferred=1 numactl --show 1 . numactl --preferred-many=0x3 numactl --show 1 2 . numactl --length 1g --shm /tmp/shmkey --interleave=all sysv 1g /tmp/shmkey . tmpfs : numactl --membind=2 dd if=/dev/zero of=/dev/shm/A bs=1M count=1024 numactl --membind=3 dd if=/dev/zero of=/dev/shm/A seek=1024 bs=1M count=1024 numactl --localalloc /dev/shm/file file localalloc. (NOTES) NUMA (NUMA policy aware). . (metacharacters) sh -c (wrapper) . hugetlbfs truncate . numactl . . . --cpubind ( ) --cpunodebind --physcpubind . (FILES) /proc/cpuinfo . proc(5) . /sys/devices/system/node/node*/numastat (memory hit) NUMA. (COPYRIGHT) Copyright 2002,2004 Andi Kleen, SuSE Labs. numactl (GNU GPL v.2) . (SEE ALSO) set_mempolicy(2) , get_mempolicy(2) , mbind(2) , sched_setaffinity(2) , sched_getaffinity(2) , proc(5) , ftok(3) , shmat(2) , migratepages(8) SuSE Labs Mar 2004 NUMACTL(8)