← 返回命令列表

Linux command

numastat 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Show NUMA statistics

numastat

Show per-process NUMA memory

numastat -p [pid]

Show per-node memory info

numastat -m

Show compact output

numastat -c

Show statistics for command

numastat -p $(pgrep [process_name])

说明

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.

参数

-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.

FAQ

What is the numastat command used for?

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.

How do I run a basic numastat example?

Run `numastat` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -p _pid_ do in numastat?

Show per-process stats.