Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CpusetNode ¶
type CpusetNode struct { sync.RWMutex //cpuset node id //show available: 2 nodes (0-1) Id string //the node include cpusets //show node 0 cpus: 0 1 2 3 4 5 6 7 8 9 10 11 24 25 26 27 28 29 30 31 32 33 34 35 Cpuset []string //allocated cpuset of container //the cpuset belongs to only one container AllocatedCpuset []string }
func (*CpusetNode) AllocateCpuset ¶
func (c *CpusetNode) AllocateCpuset(number int) ([]string, error)
func (*CpusetNode) Capacity ¶
func (c *CpusetNode) Capacity() int
func (*CpusetNode) ReleaseCpuset ¶
func (c *CpusetNode) ReleaseCpuset(cpuset []string)
Click to show internal directories.
Click to hide internal directories.