- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for IsSwapOn (0.1 sec)
-
pkg/kubelet/util/swap/swap_util.go
klog.InfoS("Swap is on", "/proc/swaps contents", procSwapsStr) return len(procSwapsLines) > 1 } // IsSwapOn detects whether swap in enabled on the system by inspecting // /proc/swaps. If the file does not exist, an os.NotFound error will be returned. // If running on windows, swap is assumed to always be false. func IsSwapOn() (bool, error) { isSwapOnHelper := func() (bool, error) { if sysruntime.GOOS == "windows" {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 27 10:07:06 UTC 2024 - 4.2K bytes - Viewed (0) -
pkg/kubelet/cm/container_manager_linux.go
subsystems, err := GetCgroupSubsystems() if err != nil { return nil, fmt.Errorf("failed to get mounted cgroup subsystems: %v", err) } isSwapOn, err := swap.IsSwapOn() if err != nil { return nil, fmt.Errorf("failed to determine if swap is on: %w", err) } if isSwapOn { if failSwapOn { return nil, fmt.Errorf("running with swap on is not supported, please disable swap or set --fail-swap-on flag to false") }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 21 10:18:16 UTC 2024 - 35.1K bytes - Viewed (0)