package
0.5.11
Repository: https://github.com/kubewharf/katalyst-core.git
Documentation: pkg.go.dev

# Functions

And is a package level implementation of 'and' between first and masks.
CheckNUMACrossSockets judges whether the given NUMA nodes are located in different sockets.
CountCPUAssignmentCPUs returns sum of cpus among all numas in assignment.
DeepcopyCPUAssignment returns a deep-copied assignments for the given one.
Discover returns CPUTopology based on cadvisor node info.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
GetCoreNumReservedForReclaim generates per numa reserved for reclaim resource value map.
GetCPUAssignmentNUMAs returns memset for cpuset.
GetExtraCPUInfo get extend cpu info from proc system.
GetExtraNetworkInfo get network info from /sys/class/net and system function net.Interfaces.
No description provided by the author
GetKatalystMachineInfo returns KatalystMachineInfo by collecting machine info actually, this function should be only called in initial processes.
No description provided by the author
GetNumaAwareAssignments returns a mapping from NUMA id to cpu core.
No description provided by the author
GetSiblingNUMAs returns numa IDs that lays in the socket with the given numa.
IterateBitMasks iterates all possible masks from a list of bits, issuing a callback on each mask.
MaskToUInt64Array transforms bit mask to uint slices.
MustParse CPUSet constructs a new CPU set from a Linux CPU list formatted string.
NewBitMask creates a new BitMask.
No description provided by the author
No description provided by the author
NewEmptyBitMask creates a new, empty BitMask.
Or is a package level implementation of 'or' between first and masks.
Parse CPUSet constructs a new CPU set from a Linux CPU list formatted string.
ParseCPUAssignmentFormat parses the given assignments into string format.
ParseCPUAssignmentQuantityMap is used to generate cpu resource counting map based on the given CPUSet map.
No description provided by the author
TransformCPUAssignmentFormat transforms cpu assignment string format to cpuset format.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

CPUInfo contains the NUMA, socket, and core IDs associated with a CPU.
No description provided by the author
CPUTopology contains details of node cpu, where : CPU - logical CPU, cadvisor - thread Core - physical CPU, cadvisor - Core Socket - socket, cadvisor - Socket NUMA Node - NUMA cell, cadvisor - Node.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
KatalystMachineInfo is a combination of machine info generated by cadvisor, along with the extra info customized in katalyst environment.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Interfaces

BitMask interface allows hint providers to create BitMasks for TopologyHints.

# Type aliases

CPUDetails is a map from CPU ID to Core ID, Socket ID, and NUMA ID.
No description provided by the author
NUMANodeInfo is a map from NUMANode ID to a list of CPU IDs associated with that NUMANode.