cgroup

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2015 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateCgroups

func CreateCgroups(root string, subcgroup string, serviceNames []string) error

CreateCgroups mounts the cgroup controllers hierarchy for the container but leaves the subcgroup for each app read-write so the systemd inside stage1 can apply isolators to them

func GetOwnCgroupPath

func GetOwnCgroupPath(controller string) (string, error)

GetOwnCgroupPath returns the cgroup path of this process in controller hierarchy

func IsIsolatorSupported

func IsIsolatorSupported(isolator string) bool

IsIsolatorSupported returns whether an isolator is supported in the kernel

func MaybeAddIsolator

func MaybeAddIsolator(opts []*unit.UnitOption, isolator string, limit *resource.Quantity) ([]*unit.UnitOption, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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