cgroup

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 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, appHashes []types.Hash) 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 string) ([]*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