cgroup

package
v1.44.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2020 License: Apache-2.0 Imports: 8 Imported by: 85

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetHierarchicalMemoryLimit added in v1.40.1

func GetHierarchicalMemoryLimit() int64

GetHierarchicalMemoryLimit returns hierarchical memory limit

func GetMemoryLimit

func GetMemoryLimit() int64

GetMemoryLimit returns cgroup memory limit

func UpdateGOMAXPROCSToCPUQuota

func UpdateGOMAXPROCSToCPUQuota()

UpdateGOMAXPROCSToCPUQuota updates GOMAXPROCS to cgroup CPU quota if GOMAXPROCS isn't set in environment var.

This function must be called after logger.Init().

Types

This section is empty.

Jump to

Keyboard shortcuts

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