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 ¶
Types ¶
type CPUShares ¶
type CPUShares struct {
// contains filtered or unexported fields
}
CPUShares defines data needed for CPU controller.
func (*CPUShares) Decorate ¶
Decorate implements Decorator interface
type Decorator ¶
Decorator allows to decorate launcher output.
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 NewIntSet ¶
NewIntSet returns a new set containing all of the supplied elements.
func NewIntSetFromRange ¶
NewIntSetFromRange creates a set from traditional cgroup set representation. For example, "0-5,34,46-48"
func (IntSet) Add ¶
Add mutates this set to include the supplied element.
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) Contains ¶
Contains returns true if the supplied element is present in 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) Empty ¶
Empty returns true iff this set has exactly zero elements.
func (IntSet) Equals ¶
Equals returns true iff the supplied set is equal to this 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) Remove ¶
Remove mutates this set to remove the supplied element.
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).
func (IntSet) Take ¶
Take returns a new set containing n items from this set. If n is greater than the number of elements in the set, returns an error.
type Isolation ¶
Isolation of resources exposes these interfaces
func NewCPUShares ¶
NewCPUShares instance creation.
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
type Rdtset ¶
Rdtset is an instance of Decorator that used rdtset command for isolation. It allows to set CPU affinity and allocate cache available to those CPUs. See documentation at: experiments/memcached-cat/README.md
Source Files
¶
- cpu.go
- decorator.go
- isolation.go
- memory_size.go
- namespace.go
- rdtset.go
- set.go
- taskset.go