fs2

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2022 License: Apache-2.0 Imports: 21 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const UnifiedMountpoint = "/sys/fs/cgroup"

Variables

This section is empty.

Functions

func CreateCgroupPath

func CreateCgroupPath(path string, c *configs.Cgroup) (Err error)

CreateCgroupPath creates cgroupv2 path, enabling all the supported controllers.

func NewManager

func NewManager(config *configs.Cgroup, dirPath string) (cgroups.Manager, error)

NewManager creates a manager for cgroup v2 unified hierarchy. dirPath is like "/sys/fs/cgroup/user.slice/user-1001.slice/session-1.scope". If dirPath is empty, it is automatically set using config.

func OOMKillCount

func OOMKillCount(path string) (uint64, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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