package
20.2.19+incompatible
Repository: https://github.com/cockroachdb/cockroach.git
Documentation: pkg.go.dev

# Functions

AdjustMaxProcs sets GOMAXPROCS (if not overridden by env variables) to be the CPU limit of the current cgroup, if running inside a cgroup with a cpu limit lower than runtime.NumCPU().
GetCgroupCPU returns the CPU usage and quota for the current cgroup.
GetMemoryLimit attempts to retrieve the cgroup memory limit for the current process.

# Structs

CPUUsage returns CPU usage and quotas for an entire cgroup.