- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 116 for SWAP (0.04 sec)
-
src/sync/atomic/type.go
// Store atomically stores val into x. func (x *Bool) Store(val bool) { StoreUint32(&x.v, b32(val)) } // Swap atomically stores new into x and returns the previous value. func (x *Bool) Swap(new bool) (old bool) { return SwapUint32(&x.v, b32(new)) != 0 } // CompareAndSwap executes the compare-and-swap operation for the boolean value x. func (x *Bool) CompareAndSwap(old, new bool) (swapped bool) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:37:29 UTC 2024 - 8.5K bytes - Viewed (0) -
pkg/kubelet/util/swap/swap_util.go
func isSwapOnAccordingToProcSwaps(procSwapsContent []byte) bool { procSwapsContent = bytes.TrimSpace(procSwapsContent) // extra trailing \n procSwapsStr := string(procSwapsContent) procSwapsLines := strings.Split(procSwapsStr, "\n") // If there is more than one line (table headers) in /proc/swaps then swap is enabled klog.InfoS("Swap is on", "/proc/swaps contents", procSwapsStr)
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/kuberuntime/kuberuntime_container_linux.go
} } return lcr } // configureContainerSwapResources configures the swap resources for a specified (linux) container. // Swap is only configured if a swap cgroup controller is available and the NodeSwap feature gate is enabled.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 22:40:29 UTC 2024 - 17.2K bytes - Viewed (0) -
src/sync/atomic/doc.go
// Share memory by communicating; // don't communicate by sharing memory. // // The swap operation, implemented by the SwapT functions, is the atomic // equivalent of: // // old = *addr // *addr = new // return old // // The compare-and-swap operation, implemented by the CompareAndSwapT // functions, is the atomic equivalent of: // // if *addr == old { // *addr = new
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 07 21:14:51 UTC 2024 - 11.7K bytes - Viewed (0) -
pkg/kubelet/util/swap/swap_util_test.go
limitations under the License. */ package swap import "testing" func TestIsSwapEnabled(t *testing.T) { testCases := []struct { name string procSwapsContent string expectedEnabled bool }{ { name: "empty", procSwapsContent: "", expectedEnabled: false, }, { name: "with swap enabled, one partition", procSwapsContent: `
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 21 10:18:16 UTC 2024 - 1.6K bytes - Viewed (0) -
src/sync/atomic/atomic_test.go
func() { SwapInt32(nil, 0) }, func() { (*Int32)(nil).Swap(0) }, func() { SwapUint32(nil, 0) }, func() { (*Uint32)(nil).Swap(0) }, func() { SwapInt64(nil, 0) }, func() { (*Int64)(nil).Swap(0) }, func() { SwapUint64(nil, 0) }, func() { (*Uint64)(nil).Swap(0) }, func() { SwapUintptr(nil, 0) }, func() { (*Uintptr)(nil).Swap(0) }, func() { SwapPointer(nil, nil) },
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:37:29 UTC 2024 - 71.4K bytes - Viewed (0) -
pkg/kubelet/kuberuntime/kuberuntime_container_linux_test.go
swapBehavior: types.LimitedSwap, addContainerWithoutRequests: true, addGuaranteedContainer: false, }, // All the above examples with Swap disabled on node { name: "Swap disabled on node, cgroups v1, LimitedSwap, Burstable QoS", swapDisabledOnNode: true, cgroupVersion: cgroupV1, qosClass: v1.PodQOSBurstable,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 22:40:29 UTC 2024 - 41K bytes - Viewed (0) -
src/net/rpc/debug.go
func (s serviceArray) Less(i, j int) bool { return s[i].Name < s[j].Name } func (s serviceArray) Swap(i, j int) { s[i], s[j] = s[j], s[i] } func (m methodArray) Len() int { return len(m) } func (m methodArray) Less(i, j int) bool { return m[i].Name < m[j].Name } func (m methodArray) Swap(i, j int) { m[i], m[j] = m[j], m[i] } type debugHTTP struct { *Server } // Runs at /debug/rpc
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 2.3K bytes - Viewed (0) -
pkg/kubelet/kuberuntime/helpers.go
func (b podsByID) Len() int { return len(b) } func (b podsByID) Swap(i, j int) { b[i], b[j] = b[j], b[i] } func (b podsByID) Less(i, j int) bool { return b[i].ID < b[j].ID } type containersByID []*kubecontainer.Container func (b containersByID) Len() int { return len(b) } func (b containersByID) Swap(i, j int) { b[i], b[j] = b[j], b[i] }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 22 02:01:31 UTC 2024 - 12K bytes - Viewed (0) -
src/math/rand/v2/rand.go
// Shuffle pseudo-randomizes the order of elements using the default Source. // n is the number of elements. Shuffle panics if n < 0. // swap swaps the elements with indexes i and j. func Shuffle(n int, swap func(i, j int)) { globalRand.Shuffle(n, swap) } // NormFloat64 returns a normally distributed float64 in the range // [-math.MaxFloat64, +math.MaxFloat64] with
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 02:25:49 UTC 2024 - 12.8K bytes - Viewed (0)