- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for headroom (0.36 sec)
-
src/runtime/mgcpacer_test.go
} } func applyMemoryLimitHeapGoalHeadroom(goal uint64) uint64 { headroom := goal / 100 * MemoryLimitHeapGoalHeadroomPercent if headroom < MemoryLimitMinHeapGoalHeadroom { headroom = MemoryLimitMinHeapGoalHeadroom } if goal < headroom || goal-headroom < headroom { goal = headroom } else { goal -= headroom } return goal } func TestIdleMarkWorkerCount(t *testing.T) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 19 13:53:21 UTC 2023 - 39.3K bytes - Viewed (0) -
src/runtime/mgclimit.go
// // This is an internal function that deals just with the bucket. Prefer update. // l.lock must be held. func (l *gcCPULimiterState) accumulate(mutatorTime, gcTime int64) { headroom := l.bucket.capacity - l.bucket.fill enabled := headroom == 0 // Let's be careful about three things here: // 1. The addition and subtraction, for the invariants. // 2. Overflow. // 3. Excessive mutation of l.enabled, which is accessed
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 22 22:07:41 UTC 2024 - 17.3K bytes - Viewed (0) -
src/net/net_test.go
func TestCloseWrite(t *testing.T) { switch runtime.GOOS { case "plan9": t.Skipf("not supported on %s", runtime.GOOS) } t.Parallel() deadline, _ := t.Deadline() if !deadline.IsZero() { // Leave 10% headroom on the deadline to report errors and clean up. deadline = deadline.Add(-time.Until(deadline) / 10) } for _, network := range []string{"tcp", "unix", "unixpacket"} { network := network
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jan 22 21:04:44 UTC 2024 - 13.3K bytes - Viewed (0) -
src/os/signal/signal_test.go
Notify(c, syscall.SIGHUP) t.Cleanup(func() { Stop(c) }) var subTimeout time.Duration if deadline, ok := t.Deadline(); ok { subTimeout = time.Until(deadline) subTimeout -= subTimeout / 10 // Leave 10% headroom for propagating output. } for i := 1; i <= 2; i++ { i := i t.Run(fmt.Sprintf("%d", i), func(t *testing.T) { t.Parallel() args := []string{ "-test.v",
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 09 15:34:56 UTC 2023 - 27.2K bytes - Viewed (0) -
src/cmd/cgo/internal/testsanitizers/cc_test.go
err := cmd.Start() if err != nil { t.Fatalf("%v: %v", cmd, err) } if deadline, ok := t.Deadline(); ok { timeout := time.Until(deadline) timeout -= timeout / 10 // Leave 10% headroom for logging and cleanup. timer := time.AfterFunc(timeout, func() { cmd.Process.Signal(syscall.SIGQUIT) }) defer timer.Stop() } if err := cmd.Wait(); err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 09 20:00:56 UTC 2024 - 14.4K bytes - Viewed (0) -
src/compress/flate/huffman_bit_writer.go
// Should preferably be a multiple of 6, since // we accumulate 6 bytes between writes to the buffer. bufferFlushSize = 240 // bufferSize is the actual output byte buffer size. // It must have additional headroom for a flush // which can contain up to 8 bytes. bufferSize = bufferFlushSize + 8 ) // The number of extra bits needed by length code X - LENGTH_CODES_START. var lengthExtraBits = []int8{ /* 257 */ 0, 0, 0,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 29 22:59:14 UTC 2022 - 18.4K bytes - Viewed (0) -
src/vendor/golang.org/x/crypto/internal/poly1305/sum_s390x.s
// value. These limbs are, for the most part, zero extended and // placed into 64-bit vector register elements. Each vector // register is 128-bits wide and so holds 2 of these elements. // Using 26-bit limbs allows us plenty of headroom to accommodate // accumulations before and after multiplication without // overflowing either 32-bits (before multiplication) or 64-bits // (after multiplication). //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:33 UTC 2023 - 17.5K bytes - Viewed (0) -
hack/lib/golang.sh
# As of March 2021 (go 1.16/amd64), the RSS usage is 2GiB by using cached # memory of 15GiB. # This variable can be overwritten at your own risk. # It's defaulting to 20G to provide some headroom. readonly KUBE_PARALLEL_BUILD_MEMORY=${KUBE_PARALLEL_BUILD_MEMORY:-20} readonly KUBE_ALL_TARGETS=( "${KUBE_SERVER_TARGETS[@]}" "${KUBE_CLIENT_TARGETS[@]}" "${KUBE_TEST_TARGETS[@]}"
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Jun 01 16:43:08 UTC 2024 - 32.8K bytes - Viewed (0)