cgroup

package
v1.71.0-cluster Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2021 License: Apache-2.0 Imports: 8 Imported by: 85

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AvailableCPUs added in v1.50.0

func AvailableCPUs() int

AvailableCPUs returns the number of available CPU cores for the app.

func GetGOGC added in v1.63.0

func GetGOGC() int

GetGOGC returns GOGC value for the currently running process.

See https://golang.org/pkg/runtime/#hdr-Environment_Variables for more details about GOGC

func GetHierarchicalMemoryLimit added in v1.40.1

func GetHierarchicalMemoryLimit() int64

GetHierarchicalMemoryLimit returns hierarchical memory limit https://www.kernel.org/doc/Documentation/cgroup-v1/memory.txt

func GetMemoryLimit

func GetMemoryLimit() int64

GetMemoryLimit returns cgroup memory limit

Types

This section is empty.

Jump to

Keyboard shortcuts

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