package
25.1.0+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 system.NumCPU().
GetCgroupCPU returns the CPU usage and quota for the current cgroup.
GetMemoryInactiveFileUsage attempts to retrieve the cgroup memory inactive_file value (in bytes) for the current process.
GetMemoryLimit attempts to retrieve the cgroup memory limit for the current process.
GetMemoryUsage attempts to retrieve the cgroup memory usage value (in bytes) for the current process.