Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for headroom (0.12 sec)

  1. src/runtime/mgcpacer.go

    		// have for smaller heaps.
    		headroom = memoryLimitMinHeapGoalHeadroom
    	}
    	if goal < headroom || goal-headroom < headroom {
    		goal = headroom
    	} else {
    		goal = goal - headroom
    	}
    	// Don't let us go below the live heap. A heap goal below the live heap doesn't make sense.
    	if goal < c.heapMarked {
    		goal = c.heapMarked
    	}
    	return goal
    }
    
    const (
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 55.4K bytes
    - Viewed (0)
  2. src/internal/poll/splice_linux_test.go

    	// Exploit the timeout of "go test" as a timer for the subsequent verification.
    	timeout := 5 * time.Minute
    	if deadline, ok := t.Deadline(); ok {
    		timeout = deadline.Sub(time.Now())
    		timeout -= timeout / 10 // Leave 10% headroom for cleanup.
    	}
    	expiredTime := time.NewTimer(timeout)
    	defer expiredTime.Stop()
    
    	// Trigger garbage collection repeatedly, waiting for all pipes in sync.Pool
    	// to either be deallocated and closed, or to time out.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 21:49:26 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  3. 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)
  4. src/runtime/tracetime.go

    // how long it takes to call through the scheduler.
    // We could be more aggressive and bump this up to 128 ns while still getting
    // useful data, but the extra bit doesn't save us that much and the headroom is
    // nice to have.
    //
    // Hitting this target resolution is easy in the nanotime case: just pick a
    // division of 64. In the cputicks case it's a bit more complex.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:17:41 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  8. src/cmd/vendor/golang.org/x/sys/unix/ztypes_linux.go

    	Rx XDPRingOffset
    	Tx XDPRingOffset
    	Fr XDPRingOffset
    	Cr XDPRingOffset
    }
    
    type XDPUmemReg struct {
    	Addr            uint64
    	Len             uint64
    	Chunk_size      uint32
    	Headroom        uint32
    	Flags           uint32
    	Tx_metadata_len uint32
    }
    
    type XDPStatistics struct {
    	Rx_dropped               uint64
    	Rx_invalid_descs         uint64
    	Tx_invalid_descs         uint64
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 251K bytes
    - Viewed (0)
  9. src/database/sql/sql_test.go

    	type deadliner interface {
    		Deadline() (time.Time, bool)
    	}
    	if td, ok := t.(deadliner); ok {
    		if deadline, ok := td.Deadline(); ok {
    			timeout = time.Until(deadline)
    			timeout = timeout * 19 / 20 // Give 5% headroom for cleanup and error-reporting.
    		}
    	}
    
    	deadline := time.Now().Add(timeout)
    	for {
    		if fn() {
    			return true
    		}
    		if time.Until(deadline) < pollDuration {
    			return false
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 111.6K bytes
    - Viewed (0)
  10. CHANGELOG/CHANGELOG-1.26.md

    - Kube-apiserver: `gzip` compression switched from level 4 to level 1 to improve large list call latencies in exchange for higher network bandwidth usage (10-50% higher). This increases the headroom before very large unpaged list calls exceed request timeout limits. ([#112299](https://github.com/kubernetes/kubernetes/pull/112299), [@shyamjvs](https://github.com/shyamjvs))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 14 16:24:51 UTC 2024
    - 425.7K bytes
    - Viewed (0)
Back to top