LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

numastat

displays memory statistics for NUMA systems

TLDR

Show NUMA statistics
$ numastat
copy
Show per-process NUMA memory
$ numastat -p [pid]
copy
Show per-node memory info
$ numastat -m
copy
Show compact output
$ numastat -c
copy
Show statistics for command
$ numastat -p $(pgrep [process_name])
copy

SYNOPSIS

numastat [options] [pattern|pid...]

DESCRIPTION

numastat displays memory statistics for NUMA (Non-Uniform Memory Access) systems. It shows per-node memory allocation, hits, misses, and process memory distribution.Understanding NUMA statistics helps optimize application performance on multi-socket systems.

PARAMETERS

-p pid

Show per-process stats.
-m
Show memory info.
-c
Compact output.
-n
Show original format.
-s node
Sort by node.
-z
Skip zero values.

STATISTICS EXPLAINED

$ numa_hit   - Allocation on intended node
numa_miss  - Allocation on different node
numa_foreign - Other node allocations here
interleave_hit - Interleave policy success
local_node - Local allocations
other_node - Remote allocations
copy

EXAMPLE OUTPUT

$                  node0       node1
numa_hit        1234567      987654
numa_miss           100         200
local_node      1234467      987454
other_node          100         200
copy

INSTALL

sudo apt install numactl
copy
sudo dnf install numactl
copy
sudo pacman -S numactl
copy
sudo apk add numactl-tools
copy
sudo zypper install numactl
copy
brew install numactl
copy
nix profile install nixpkgs#numactl
copy

CAVEATS

Only relevant on NUMA systems. Statistics cumulative since boot. Requires /sys/devices/system/node/.

HISTORY

numastat is part of numactl, providing NUMA statistics similar to the original SGI IRIX numastat command.

SEE ALSO

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid