Documentation
¶
Index ¶
- func CleanRDTAssingments() (string, error)
- type CPUShares
- type Decorator
- type Decorators
- type IntSet
- func (s IntSet) Add(elem int)
- func (s IntSet) AsRangeString() string
- func (s IntSet) AsSlice() []int
- func (s IntSet) Contains(elem int) bool
- func (s IntSet) Difference(t IntSet) IntSet
- func (s IntSet) Empty() bool
- func (s IntSet) Equals(t IntSet) bool
- func (s IntSet) Intersection(t IntSet) IntSet
- func (s IntSet) Remove(elem int)
- func (s IntSet) Subset(t IntSet) bool
- func (s IntSet) Take(n int) (IntSet, error)
- func (s IntSet) Union(t IntSet) IntSet
- type Isolation
- type MemorySize
- type Rdtset
- type Taskset
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanRDTAssingments ¶
CleanRDTAssingments cleans any existing RDT RMID's assignment.
Types ¶
type CPUShares ¶
type CPUShares struct {
// contains filtered or unexported fields
}
CPUShares defines data needed for CPU controller.
type Decorator ¶
Decorator allows to decorate launcher output.
func NewNamespace ¶
NewNamespace creates new instance of namespace isolation; see: man 7 namespaces.
type Decorators ¶
type Decorators []Decorator
Decorators represents array of Decorator implementations.
func (Decorators) Decorate ¶
func (d Decorators) Decorate(command string) string
Decorate uses all available decorators to modify the command (and implements Decorator interface).
type IntSet ¶
type IntSet map[int]struct{}
IntSet represents a traditional set type so we can do intersections, joins, etc. on core and memory node ids.
func NewIntSetFromRange ¶
NewIntSetFromRange creates a set from traditional cgroup set representation. For example, "0-5,34,46-48"
func (IntSet) AsRangeString ¶
AsRangeString returns a traditional cgroup set representation. For example, "0,1,2,3,4,5,34,46,47,48"
func (IntSet) AsSlice ¶
AsSlice returns a slice of integers that contains all elements from this set.
func (IntSet) Difference ¶
Difference returns a new set that contains all of the elements that are present in this set and not the supplied set. It does not mutate either set.
func (IntSet) Intersection ¶
Intersection returns a new set that contains all of the elements that are present in both this set and the supplied set. It does not mutate either set.
func (IntSet) Subset ¶
Subset returns true iff the supplied set contains all the elements in this set (e.g. s is a subset of t).
type Isolation ¶
Isolation of resources exposes these interfaces
func NewCPUShares ¶
NewCPUShares instance creation.
func NewMemorySize ¶
NewMemorySize creates an instance of input data.
type MemorySize ¶
type MemorySize struct {
// contains filtered or unexported fields
}
MemorySize defines input data
func (*MemorySize) Clean ¶
func (memorySize *MemorySize) Clean() error
Clean removes specified cgroup.
func (*MemorySize) Decorate ¶
func (memorySize *MemorySize) Decorate(command string) string
Decorate implements Decorator interface.
func (*MemorySize) Isolate ¶
func (memorySize *MemorySize) Isolate(PID int) error
Isolate create specified cgroup and associates specified process id