Documentation
¶
Index ¶
- Constants
- func GetAllowedCPUList(fs vfs.VFS, statusFile string) ([]int, error)
- func GetCPUToNUMANodeMap(fs vfs.VFS, sysNodeDir string, cpuIDs []int) (map[int]int, error)
- func GetCPUsPerNUMANode(fs vfs.VFS, sysfsdir string) (map[int][]int, error)
- func GetPCIDeviceNUMANode(fs vfs.VFS, sysPCIDir string, devs []string) (map[string]int, error)
- func GetPCIDeviceToNumaNodeMap(fs vfs.VFS, sysBusPCIDir string, pciDevs []string) (map[string]int, error)
- func GetPCIDevicesFromEnv(environ []string) []string
- func MakeCPUsToNUMANodeMap(cpusPerNUMA map[int][]int) map[int]int
- type Resources
- type Result
Constants ¶
View Source
const ( SysDevicesSystemNodeDir = "devices/system/node" SysBusPCIDevicesDir = "bus/pci/devices/" )
Variables ¶
This section is empty.
Functions ¶
func GetCPUToNUMANodeMap ¶
func GetCPUsPerNUMANode ¶
func GetPCIDeviceNUMANode ¶
func GetPCIDevicesFromEnv ¶
Types ¶
type Resources ¶
type Resources struct {
CPUToNUMANode map[int]int `json:"cpus"`
PCIDevsToNUMANode map[string]int `json:"pcidevices"`
}
func NewResources ¶
func (*Resources) CheckAlignment ¶
Click to show internal directories.
Click to hide internal directories.