Questo contenuto non è disponibile nella lingua selezionata.
Chapter 30. Profiling memory allocation with numastat
With the numastat
tool, you can display statistics over memory allocations in a system.
The numastat
tool displays data for each NUMA node separately. You can use this information to investigate memory performance of your system or the effectiveness of different memory policies on your system.
30.1. Default numastat statistics Copia collegamentoCollegamento copiato negli appunti!
By default, the numastat
tool displays statistics over these categories of data for each NUMA node:
numa_hit
- The number of pages that were successfully allocated to this node.
numa_miss
-
The number of pages that were allocated on this node because of low memory on the intended node. Each
numa_miss
event has a correspondingnuma_foreign
event on another node. numa_foreign
-
The number of pages initially intended for this node that were allocated to another node instead. Each
numa_foreign
event has a correspondingnuma_miss
event on another node. interleave_hit
- The number of interleave policy pages successfully allocated to this node.
local_node
- The number of pages successfully allocated on this node by a process on this node.
other_node
- The number of pages allocated on this node by a process on another node.
High numa_hit
values and low numa_miss
values (relative to each other) indicate optimal performance.
30.2. Viewing memory allocation with numastat Copia collegamentoCollegamento copiato negli appunti!
You can view the memory allocation of the system by using the numastat
tool.
Prerequisites
Install the
numactl
package:yum install numactl
# yum install numactl
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Procedure
View the memory allocation of your system:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow