Mauro Carvalho Chehab | e4a5c33 | 2017-05-16 10:04:34 -0300 | [diff] [blame] | 1 | =============================== |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2 | Numa policy hit/miss statistics |
Mauro Carvalho Chehab | e4a5c33 | 2017-05-16 10:04:34 -0300 | [diff] [blame] | 3 | =============================== |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4 | |
| 5 | /sys/devices/system/node/node*/numastat |
| 6 | |
| 7 | All units are pages. Hugepages have separate counters. |
| 8 | |
Mauro Carvalho Chehab | e4a5c33 | 2017-05-16 10:04:34 -0300 | [diff] [blame] | 9 | =============== ============================================================ |
Geunsik Lim | 36519c9 | 2012-02-25 11:12:23 +0900 | [diff] [blame] | 10 | numa_hit A process wanted to allocate memory from this node, |
| 11 | and succeeded. |
| 12 | |
| 13 | numa_miss A process wanted to allocate memory from another node, |
| 14 | but ended up with memory from this node. |
| 15 | |
| 16 | numa_foreign A process wanted to allocate on this node, |
| 17 | but ended up with memory from another one. |
| 18 | |
| 19 | local_node A process ran on this node and got memory from it. |
| 20 | |
| 21 | other_node A process ran on this node and got memory from another node. |
| 22 | |
| 23 | interleave_hit Interleaving wanted to allocate from this node |
| 24 | and succeeded. |
Mauro Carvalho Chehab | e4a5c33 | 2017-05-16 10:04:34 -0300 | [diff] [blame] | 25 | =============== ============================================================ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 26 | |
| 27 | For easier reading you can use the numastat utility from the numactl package |
Geunsik Lim | 36519c9 | 2012-02-25 11:12:23 +0900 | [diff] [blame] | 28 | (http://oss.sgi.com/projects/libnuma/). Note that it only works |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 29 | well right now on machines with a small number of CPUs. |
| 30 | |