package cgroups
import "github.com/dotcloud/docker/pkg/cgroups"
Index ¶
- func FindCgroupMountpoint(subsystem string) (string, error)
- func GetInitCgroupDir(subsystem string) (string, error)
- func GetThisCgroupDir(subsystem string) (string, error)
- type Cgroup
Functions ¶
func FindCgroupMountpoint ¶
https://www.kernel.org/doc/Documentation/cgroups/cgroups.txt
func GetInitCgroupDir ¶
func GetThisCgroupDir ¶
Returns the relative path to the cgroup docker is running in.
Types ¶
type Cgroup ¶
type Cgroup struct { Name string `json:"name,omitempty"` Parent string `json:"parent,omitempty"` DeviceAccess bool `json:"device_access,omitempty"` // name of parent cgroup or slice Memory int64 `json:"memory,omitempty"` // Memory limit (in bytes) MemorySwap int64 `json:"memory_swap,omitempty"` // Total memory usage (memory + swap); set `-1' to disable swap int64 `json:"cpu_shares,omitempty"` // CPU shares (relative weight vs. other containers) }
func (*Cgroup) Apply ¶
func (*Cgroup) Cleanup ¶
func (*Cgroup) Join ¶
func (*Cgroup) Path ¶
Source Files ¶
- Version
- v0.9.1
- Published
- Mar 25, 2014
- Platform
- windows/amd64
- Imports
- 9 packages
- Last checked
- 2 seconds ago –
Tools for package owners.