config

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2021 License: Apache-2.0 Imports: 3 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MBAModeToInt

func MBAModeToInt(mode string) (int, error)

MBAModeToInt converts suppored MBA modes (none, percentage or mbps) into PQOS compatible values (-1, 0 and 1 respectively)

return error if invalid mode given

Types

type CachePool

type CachePool struct {
	MaxAllowedShared uint `toml:"max_allowed_shared"`
	Guarantee        uint `toml:"guarantee"`
	Besteffort       uint `toml:"besteffort"`
	Shared           uint `toml:"shared"`
	Shrink           bool `toml:"shrink"`
}

CachePool represents cache pool layout configuration

func NewCachePoolConfig

func NewCachePoolConfig() *CachePool

NewCachePoolConfig reads cache pool layout configuration

type InfraGroup

type InfraGroup struct {
	CacheWays uint     `toml:"cacheways"`
	CPUSet    string   `toml:"cpuset"`
	Tasks     []string `toml:"tasks"`
}

InfraGroup represents infra group configuration

func NewInfraConfig

func NewInfraConfig() *InfraGroup

NewInfraConfig reads InfraGroup configuration

type OSGroup

type OSGroup struct {
	CacheWays uint   `toml:"cacheways"`
	CPUSet    string `toml:"cpuset"`
}

OSGroup represents os group configuration

func NewOSConfig

func NewOSConfig() *OSGroup

NewOSConfig reads OSGroup configuration

type RDTConfig

type RDTConfig struct {
	MBAMode string `toml:"mbaMode"`
}

RDTConfig contains RDT related configuration flags from rmd.toml

Jump to

Keyboard shortcuts

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