numactl: control NUMA policy for processes and shared memory

Shows or set NUMA policy settings

Typical usage: system administration, troubleshooting

Introduction into numactl

The numactl tool can be used to define a specific NUMA policy related to scheduling and memory placement. The given policy will be applicable to the process and its children.

Installation

When numactl is not installed by default, it can be added to the system using the relevant software package.

Package information for numactl

Operating systemPackage nameInstallation
AlmaLinuxnumactl
dnf install numactl
Arch Linuxnumactl
pacman -S numactl
Debiannumactl
apt install numactl
Fedoranumactl
dnf install numactl
Red Hat Enterprise Linuxnumactl
dnf install numactl
Rocky Linuxnumactl
dnf install numactl
openSUSEnumactl
zypper install numactl
Ubuntunumactl
apt install numactl

Your Linux distribution using a different package? Share your feedback.

Usage

Examples using numactl

Show available NUMA nodes

numactl --hardware

Show NUMA policy information of current process

numactl --show

Frequently Asked Questions

What is the numactl command and its purpose?

The numactl command is a command-line tool to manage NUMA policy of processes and shared memory.

Which package provides the numactl command?

The command numactl is provided by the numactl package.

Related and similar commands

Linux has a lot of tools and commands available and sometimes you just need that little other tool. Here is a list of commands that are similar or related to numactl:

Related and similar commands to numactl
CommandCategorySummary
basenamefilesStrips directory and file name suffix from a given path
chrtprocessesSets Linux scheduler policy and priority for a process or command
killprocessesSending signals to processes
niceprocessesRuns commands with specified priority
peekfdprocessesTracks a process and show file descriptor activity
pidofprocessesReturns process IDs for a process name
pidstatmonitoringMonitoring CPU, memory, and disk activity
pidwaitprocessesWait for process to stop
pmapprocessesShows memory mapping of process
prtstatprocessesShows process details for selected process like state, CPU and memory usage
pscapcapabilitiesDisplay available capabilities for running processes
pslogloggingShows which log files a process has opened
pstreeprocessesShow active processes and children like a tree
pwdxprocessesShows current working directory of a process
reniceprocessesChanges the priority of running processes
slabtopmemoryShows slab usage of kernel
smemmemoryShow memory usage including swap
straceprocess inspectionInspects running process
unitsdata conversionConverts a unit into another one, like from Celcius to Fahrenheit
watchprocessesMonitors changes in output of specified command