package cgroups
import "github.com/dotcloud/docker/pkg/cgroups"
Index ¶
- Variables
- func FindCgroupMountpoint(subsystem string) (string, error)
- func GetInitCgroupDir(subsystem string) (string, error)
- func GetThisCgroupDir(subsystem string) (string, error)
- type ActiveCgroup
- type Cgroup
Variables ¶
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 ActiveCgroup ¶
type ActiveCgroup interface { Cleanup() error }
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) MemoryReservation int64 `json:"memory_reservation,omitempty"` // Memory reservation or soft_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) CpuQuota int64 `json:"cpu_quota,omitempty"` // CPU hardcap limit (in usecs). Allowed cpu time in a given period. CpuPeriod int64 `json:"cpu_period,omitempty"` // CPU period to be used for hardcapping (in usecs). 0 to use system default. CpusetCpus string `json:"cpuset_cpus,omitempty"` // CPU to use Freezer string `json:"freezer,omitempty"` // set the freeze value for the process Slice string `json:"slice,omitempty"` // Parent slice to use for systemd }
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
pkg/cgroups/fs | Utility for testing cgroup operations. |
pkg/cgroups/systemd |
- Version
- v0.11.0
- Published
- May 7, 2014
- Platform
- js/wasm
- Imports
- 6 packages
- Last checked
- 11 seconds ago –
Tools for package owners.