Documentation
¶
Overview ¶
Package sys provides methods to read system information
- Copyright (c) 2018-2025, NVIDIA CORPORATION. All rights reserved.
Package sys provides methods to read system information
- Copyright (c) 2018-2025, NVIDIA CORPORATION. All rights reserved.
Package sys provides methods to read system information
- Copyright (c) 2018-2024, NVIDIA CORPORATION. All rights reserved.
Package sys provides methods to read system information
- Copyright (c) 2018-2024, NVIDIA CORPORATION. All rights reserved.
Package sys provides methods to read system information
- Copyright (c) 2018-2025, NVIDIA CORPORATION. All rights reserved.
Package sys provides methods to read system information
- Copyright (c) 2018-2025, NVIDIA CORPORATION. All rights reserved.
Package sys provides methods to read system information
- Copyright (c) 2018-2025, NVIDIA CORPORATION. All rights reserved.
Index ¶
Constants ¶
View Source
const ( ExtremeLoad = 92 HighLoad = 82 )
used with MaxLoad() floating point; HighLoad < HighLoadWM() < ExtremeLoad
Variables ¶
This section is empty.
Functions ¶
func Containerized ¶
func Containerized() bool
func GoEnvMaxprocs ¶ added in v1.3.24
func GoEnvMaxprocs()
func HighLoadWM ¶ added in v1.3.26
func HighLoadWM() int
"high-load watermark", to maybe throttle when MaxLoad() is above see also (ExtremeLoad, HighLoad) defaults
func MaxLoad ¶ added in v1.3.26
func MaxLoad() (load float64)
return max(1 minute, 5 minute) load average
func MaxParallelism ¶ added in v1.3.26
func MaxParallelism() int
number of intra-cluster broadcasting goroutines
func ProcFDSize ¶ added in v1.3.31
func ProcFDSize() int
Types ¶
type MemStat ¶
type ProcCPUStats ¶
type ProcMemStats ¶
Click to show internal directories.
Click to hide internal directories.