rdt

package
v0.2.1-0...-d3ae3b1 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ResctrlMountPath

func ResctrlMountPath() (string, error)

ResctrlMountPath returns path of the mount point to the resctrl filesystem

Types

type Bitmask

type Bitmask uint64

Bitmask represents a generic 64 bit wide bitmask

func ListStrToBitmask

func ListStrToBitmask(str string) (Bitmask, error)

ListStrToBitmask parses a string containing a human-readable list of bit numbers into a bitmask

func (Bitmask) ListStr

func (b Bitmask) ListStr() string

ListStr prints the bitmask in human-readable format, similar to e.g. the cpuset format of the Linux kernel

func (Bitmask) MarshalJSON

func (b Bitmask) MarshalJSON() ([]byte, error)

MarshalJSON implements the Marshaler interface of "encoding/json"

type Control

type Control interface {
	// GetClasses returns the names of RDT classes (or resctrl control groups)
	// available
	GetClasses() []string

	// SetProcessClass assigns a set of processes to a RDT class
	SetProcessClass(string, ...string) error
}

Control is the interface managing Intel RDT resources

func NewControl

func NewControl(resctrlpath string) (Control, error)

NewControl returns new instance of the RDT Control interface

type Info

type Info struct {
	// contains filtered or unexported fields
}

Info contains information about the RDT support in the system

Jump to

Keyboard shortcuts

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