numactl: control NUMA policy for processes and shared memory
Shows or set NUMA policy settings
Typical usage: system administration, troubleshootingIntroduction 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 system | Package name | Installation |
---|---|---|
AlmaLinux | numactl |
|
Arch Linux | numactl |
|
Debian | numactl |
|
Fedora | numactl |
|
Red Hat Enterprise Linux | numactl |
|
Rocky Linux | numactl |
|
openSUSE | numactl |
|
Ubuntu | 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:
Command | Category | Summary |
---|---|---|
basename | files | Strips directory and file name suffix from a given path |
chrt | processes | Sets Linux scheduler policy and priority for a process or command |
kill | processes | Sending signals to processes |
nice | processes | Runs commands with specified priority |
peekfd | processes | Tracks a process and show file descriptor activity |
pidof | processes | Returns process IDs for a process name |
pidstat | monitoring | Monitoring CPU, memory, and disk activity |
pidwait | processes | Wait for process to stop |
pmap | processes | Shows memory mapping of process |
prtstat | processes | Shows process details for selected process like state, CPU and memory usage |
pscap | capabilities | Display available capabilities for running processes |
pslog | logging | Shows which log files a process has opened |
pstree | processes | Show active processes and children like a tree |
pwdx | processes | Shows current working directory of a process |
renice | processes | Changes the priority of running processes |
slabtop | memory | Shows slab usage of kernel |
smem | memory | Show memory usage including swap |
strace | process inspection | Inspects running process |
units | data conversion | Converts a unit into another one, like from Celcius to Fahrenheit |
watch | processes | Monitors changes in output of specified command |