types

package
v0.20.11 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2021 License: MIT Imports: 3 Imported by: 0

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)

Jump to

Keyboard shortcuts

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