- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 226 for SWAP (0.39 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/server/stats/summary_test.go
assert.Equal(summary.Node.StartTime, systemBootTime) assert.Equal(summary.Node.CPU, cgroupStatsMap["/"].cs.CPU) assert.Equal(summary.Node.Memory, cgroupStatsMap["/"].cs.Memory) assert.Equal(summary.Node.Swap, cgroupStatsMap["/"].cs.Swap) assert.Equal(summary.Node.Network, cgroupStatsMap["/"].ns) assert.Equal(summary.Node.Fs, rootFsStats) assert.Equal(summary.Node.Runtime, &statsapi.RuntimeStats{ContainerFs: imageFsStats, ImageFs: imageFsStats})
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 07 08:12:16 UTC 2024 - 15.1K bytes - Viewed (0) -
src/sync/atomic/value.go
return } } // Swap stores new into Value and returns the previous value. It returns nil if // the Value is empty. // // All calls to Swap for a given Value must use values of the same concrete // type. Swap of an inconsistent type panics, as does Swap(nil). func (v *Value) Swap(new any) (old any) { if new == nil { panic("sync/atomic: swap of nil value into Value") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 20:48:55 UTC 2024 - 5.9K 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/internal/runtime/atomic/types.go
// and if they're equal, swaps i's value with new. // It reports whether the swap ran. // //go:nosplit func (i *Int32) CompareAndSwap(old, new int32) bool { return Casint32(&i.value, old, new) } // Swap replaces i's value with new, returning // i's value before the replacement. // //go:nosplit func (i *Int32) Swap(new int32) int32 { return Xchgint32(&i.value, new) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 14.2K bytes - Viewed (0) -
src/cmd/compile/internal/test/inl_test.go
"(*Uint32).Swap", "(*Uint64).Add", "(*Uint64).CompareAndSwap", "(*Uint64).Load", "(*Uint64).Store", "(*Uint64).Swap", "(*Uintptr).Add", "(*Uintptr).CompareAndSwap", "(*Uintptr).Load", "(*Uintptr).Store", "(*Uintptr).Swap", "(*Pointer[go.shape.int]).CompareAndSwap", "(*Pointer[go.shape.int]).Load", "(*Pointer[go.shape.int]).Store", "(*Pointer[go.shape.int]).Swap", },
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 09 04:07:57 UTC 2024 - 10.7K 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)