cpu

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ConfigModuleName is the configuration section for the CPU controller.
	ConfigModuleName = "cpu"

	// CPUController is the name of the CPU controller.
	CPUController = cache.CPU
)

Variables

This section is empty.

Functions

func Assign

func Assign(c cache.Cache, class string, cpus ...int) error

Assign assigns a set of cpus to a class.

TODO: Drop this function. Don't store cpu class in policy data but implement controller-specific data store in cache.

func GetClasses

func GetClasses() map[string]Class

GetClasses returns all available CPU classes.

Types

type Class

type Class = cfgcpu.Class

Jump to

Keyboard shortcuts

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