package sysctl
import "k8s.io/kubernetes/pkg/util/sysctl"
Index ¶
- Constants
- func GetSysctl(sysctl string) (int, error)
- func SetSysctl(sysctl string, newVal int) error
Constants ¶
const ( VmOvercommitMemory = "vm/overcommit_memory" VmPanicOnOOM = "vm/panic_on_oom" VmOvercommitMemoryAlways = 1 // kernel performs no memory over-commit handling VmPanicOnOOMInvokeOOMKiller = 0 // kernel calls the oom_killer function when OOM occurs )
Functions ¶
func GetSysctl ¶
GetSysctl returns the value for the specified sysctl setting
func SetSysctl ¶
SetSysctl modifies the specified sysctl flag to the new value
Source Files ¶
sysctl.go
- Version
- v1.1.9-beta.0
- Published
- Feb 23, 2016
- Platform
- js/wasm
- Imports
- 4 packages
- Last checked
- 12 seconds ago –
Tools for package owners.