numastat.txt 1.03 KB
Newer Older
1
===============================
Linus Torvalds's avatar
Linus Torvalds committed
2
Numa policy hit/miss statistics
3
===============================
Linus Torvalds's avatar
Linus Torvalds committed
4 5 6 7 8

/sys/devices/system/node/node*/numastat

All units are pages. Hugepages have separate counters.

9
=============== ============================================================
Geunsik Lim's avatar
Geunsik Lim committed
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
numa_hit	A process wanted to allocate memory from this node,
		and succeeded.

numa_miss	A process wanted to allocate memory from another node,
		but ended up with memory from this node.

numa_foreign	A process wanted to allocate on this node,
		but ended up with memory from another one.

local_node	A process ran on this node and got memory from it.

other_node	A process ran on this node and got memory from another node.

interleave_hit 	Interleaving wanted to allocate from this node
		and succeeded.
25
=============== ============================================================
Linus Torvalds's avatar
Linus Torvalds committed
26 27

For easier reading you can use the numastat utility from the numactl package
Geunsik Lim's avatar
Geunsik Lim committed
28
(http://oss.sgi.com/projects/libnuma/). Note that it only works
Linus Torvalds's avatar
Linus Torvalds committed
29 30
well right now on machines with a small number of CPUs.