Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for headroom (0.14 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/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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top