PROPHET/OS

NAME

numa: the memory nodes of this machine and their distance

SYNOPSIS

numa [--tui]

DESCRIPTION

The memory nodes of this machine and their distance.

A node is a piece of memory with the cores that sit next to it. On a board with one socket there is one node and every distance is ten, which is the norm's word for "as near as memory gets". On two sockets there are two, and a read from the far one costs: Far says how much, as the multiple of a tenth the firmware writes down.

Node is the number the firmware gives the node, not a place in this table. Cores is how many cores it has, MiB its memory, Ranges in how many pieces that memory lies, and Far the largest distance from this node to another one. A row whose Far stands above ten is a node with a far neighbour and is marked.

Under the table stands the whole distance matrix, one row per node, and below it which core sits on which node. - means the distance table of the firmware does not reach that pair: it numbers its nodes by hand and may number them above the count of its own localities.

The rows come out of /state/numa, which the kernel builds out of two ACPI tables: the SRAT says which memory and which core belong to which node, the SLIT says how far two nodes lie apart. A firmware that brings no SRAT says nothing about nodes, and then this says one line and ends with 1 instead of showing a table of no rows. A firmware whose SRAT carries an entry that cannot be read has its table refused as a whole and not read in half: the head line says so.

What is NOT here, named instead of invented: the frame allocator does not use any of this yet. A page is handed out where one is free and not where the core that asks sits, so these numbers describe the machine and not yet what the kernel does with it.

--tui takes the whole screen and keeps the rows live; the arrows and the two page keys move, q leaves.

EXAMPLE

$ numa
[ERROR] numa      this firmware says nothing about memory nodes

SEE ALSO

memory, cpu, acpi, state