DOKK / manpages / debian 10 / libhwloc-doc / hwloc_distances_s.3.en
hwloc_distances_s(3) Hardware Locality (hwloc) hwloc_distances_s(3)

hwloc_distances_s

#include <hwloc.h>


unsigned relative_depth
unsigned nbobjs
float * latency
float latency_max
float latency_base

Distances between objects.

One object may contain a distance structure describing distances between all its descendants at a given relative depth. If the containing object is the root object of the topology, then the distances are available for all objects in the machine.

If the latency pointer is not NULL, the pointed array contains memory latencies (non-zero values), see below.

In the future, some other types of distances may be considered. In these cases, latency may be NULL.

Matrix of latencies between objects, stored as a one-dimension array. May be NULL if the distances considered here are not latencies. Unless defined by the user, this currently contains latencies between NUMA nodes (as reported in the System Locality Distance Information Table (SLIT) in the ACPI specification), which may or may not be accurate. It corresponds to the latency for accessing the memory of one node from a core in another node.

Values are normalized to get 1.0 as the minimal value in the matrix. Latency from i-th to j-th object is stored in slot i*nbobjs+j.

The multiplier that should be applied to latency matrix to retrieve the original OS-provided latencies. Usually 10 on Linux since ACPI SLIT uses 10 for local latency.

The maximal value in the latency matrix.

Number of objects considered in the matrix. It is the number of descendant objects at relative_depth below the containing object. It corresponds to the result of hwloc_get_nbobjs_inside_cpuset_by_depth().

Relative depth of the considered objects below the object containing this distance information.

Generated automatically by Doxygen for Hardware Locality (hwloc) from the source code.

Fri Feb 8 2019 Version 1.11.12