numatopo

package
v1.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 31, 2021 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateOrUpdateNumatopo

func CreateOrUpdateNumatopo(client *versioned.Clientset)

func GetAllResTopoInfo

func GetAllResTopoInfo() map[string]v1alpha1.ResourceInfo

func GetCpusDetail added in v1.0.1

func GetCpusDetail() map[string]v1alpha1.CPUInfo

func GetKubeletConfigFromLocalFile

func GetKubeletConfigFromLocalFile(kubeletConfigPath string) (*kubeletconfigv1beta1.KubeletConfiguration, error)

func GetPolicy

func GetPolicy() map[v1alpha1.PolicyName]string

func GetResReserved added in v1.0.3

func GetResReserved() map[string]string

func GetkubeletConfig

func GetkubeletConfig(confPath string) bool

func NodeInfoRefresh

func NodeInfoRefresh(opt *args.Argument) bool

func RegisterNumaType

func RegisterNumaType(info NumaInfo)

func TopoInfoUpdate

func TopoInfoUpdate(opt *args.Argument) bool

Types

type CpuNumaInfo

type CpuNumaInfo struct {
	NUMANodes   []int
	NUMA2CpuCap map[int]int

	NUMA2FreeCpus map[int][]int
	// contains filtered or unexported fields
}

func NewCpuNumaInfo

func NewCpuNumaInfo() *CpuNumaInfo

func (*CpuNumaInfo) GetCpuDetail added in v1.0.1

func (info *CpuNumaInfo) GetCpuDetail() map[string]v1alpha1.CPUInfo

func (*CpuNumaInfo) GetResourceInfoMap

func (info *CpuNumaInfo) GetResourceInfoMap() v1alpha1.ResourceInfo

func (*CpuNumaInfo) Name

func (info *CpuNumaInfo) Name() string

func (*CpuNumaInfo) Update

func (info *CpuNumaInfo) Update(opt *args.Argument) NumaInfo

type NumaInfo

type NumaInfo interface {
	Name() string
	Update(opt *args.Argument) NumaInfo
	GetResourceInfoMap() v1alpha1.ResourceInfo
	GetCpuDetail() map[string]v1alpha1.CPUInfo
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL