Documentation ¶
Overview ¶
Package node gets information about the system's NUMA nodes. This looks at the sysfs's node tree and extracts information about each node. If the node tree doesn't exist on the system, instead of node information, an os.ErrNotExist will be returned.
Index ¶
Constants ¶
const CPUList = "cpulist"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Node ¶
type Node struct { ID int32 `json:"id"` // max_numa_node returns an int (in C) CPUList string `json:"cpu_list"` }
Information about a specific node.
type Profiler ¶
type Profiler struct {
// contains filtered or unexported fields
}
Profiler is used to process the system's sysfs node information.
func (*Profiler) CPUList ¶
CPUList returns the string found in the CPUList file or any error that occurs.
func (*Profiler) Get ¶
Get the node information. If the node tree doesn't exist an os.ErrNotExist will be returned. During processing, any error will be returned along with a nil for nodes.
func (*Profiler) SysFSSystemPath ¶
SysFSSystemPath enables overriding the default value. This is for testing and should be used outside of tests.