Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 150 for preemption (0.17 sec)

  1. src/runtime/mgcmark.go

    	// most this size. Since we can scan 1–2 MB/ms, 128 KB bounds
    	// scan preemption at ~100 µs.
    	//
    	// This must be > _MaxSmallSize so that the object base is the
    	// span base.
    	maxObletBytes = 128 << 10
    
    	// drainCheckThreshold specifies how many units of work to do
    	// between self-preemption checks in gcDrain. Assuming a scan
    	// rate of 1 MB/ms, this is ~100 µs. Lower values have higher
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 21:25:11 UTC 2024
    - 52.5K bytes
    - Viewed (0)
  2. pkg/scheduler/schedule_one.go

    		// will fit due to the preemption. It is also possible that a different pod will schedule
    		// into the resources that were preempted, but this is harmless.
    
    		if !fwk.HasPostFilterPlugins() {
    			logger.V(3).Info("No PostFilter plugins are registered, so no preemption will be performed")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 06 13:28:08 UTC 2024
    - 43.4K bytes
    - Viewed (0)
  3. pkg/kubelet/metrics/metrics.go

    			StabilityLevel: metrics.ALPHA,
    		},
    		[]string{"eviction_signal"},
    	)
    	// Preemptions is a Counter that tracks the cumulative number of pod preemptions initiated by the kubelet.
    	// Broken down by preemption signal. A preemption is only recorded for one resource, the sum of all signals
    	// is the number of preemptions on the given node.
    	Preemptions = metrics.NewCounterVec(
    		&metrics.CounterOpts{
    			Subsystem:      KubeletSubsystem,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 22 15:13:25 UTC 2024
    - 45.6K bytes
    - Viewed (0)
  4. src/runtime/testdata/testprog/lockosthread.go

    			for time.Now().Before(start) {
    			}
    
    			// Add work to the local runq to trigger early startm
    			// in handoffp.
    			go func() {}()
    
    			runtime.LockOSThread()
    			runtime.Gosched() // add a preemption point.
    			wg.Done()
    		}()
    	}
    
    	wg.Wait()
    	// If both LockOSThreads completed then we did not hit the race.
    	println("OK")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 20:00:09 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  5. src/runtime/lock_sema.go

    				break
    			}
    		}
    	}
    	gp.m.mLockProfile.recordUnlock(l)
    	gp.m.locks--
    	if gp.m.locks < 0 {
    		throw("runtime·unlock: lock count")
    	}
    	if gp.m.locks == 0 && gp.preempt { // restore the preemption request in case we've cleared it in newstack
    		gp.stackguard0 = stackPreempt
    	}
    }
    
    // One-time notifications.
    func noteclear(n *note) {
    	n.key = 0
    }
    
    func notewakeup(n *note) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:57:37 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  6. src/runtime/lock_js.go

    // license that can be found in the LICENSE file.
    
    //go:build js && wasm
    
    package runtime
    
    import _ "unsafe" // for go:linkname
    
    // js/wasm has no support for threads yet. There is no preemption.
    
    const (
    	mutex_unlocked = 0
    	mutex_locked   = 1
    
    	note_cleared = 0
    	note_woken   = 1
    	note_timeout = 2
    
    	active_spin     = 4
    	active_spin_cnt = 30
    	passive_spin    = 1
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 21:02:20 UTC 2023
    - 7.3K bytes
    - Viewed (0)
  7. src/runtime/stack.go

    	// We are interested in preempting user Go code, not runtime code.
    	// If we're holding locks, mallocing, or preemption is disabled, don't
    	// preempt.
    	// This check is very early in newstack so that even the status change
    	// from Grunning to Gwaiting and back doesn't happen in this case.
    	// That status change by itself can be viewed as a small preemption,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:31:00 UTC 2024
    - 41.1K bytes
    - Viewed (0)
  8. pkg/scheduler/eventhandlers.go

    }
    
    func preCheckForNode(nodeInfo *framework.NodeInfo) queue.PreEnqueueCheck {
    	// Note: the following checks doesn't take preemption into considerations, in very rare
    	// cases (e.g., node resizing), "pod" may still fail a check but preemption helps. We deliberately
    	// chose to ignore those cases as unschedulable pods will be re-queued eventually.
    	return func(pod *v1.Pod) bool {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 21:21:04 UTC 2024
    - 24K bytes
    - Viewed (0)
  9. src/runtime/stkframe.go

    	//   to use for symbolic information.
    	//
    	// - If this is the innermost frame, then PC is where
    	//   execution will continue, but it may not be the
    	//   instruction following a CALL. This may be from
    	//   cooperative preemption, in which case this is the
    	//   instruction after the call to morestack. Or this may be
    	//   from a signal or an un-started goroutine, in which case
    	//   PC could be any instruction, including the first
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 15:10:48 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  10. pkg/kubelet/lifecycle/predicate.go

    		return PodAdmitResult{
    			Admit:   false,
    			Reason:  "InvalidNodeInfo",
    			Message: "Kubelet cannot get node info.",
    		}
    	}
    	admitPod := attrs.Pod
    
    	// perform the checks that preemption will not help first to avoid meaningless pod eviction
    	if rejectPodAdmissionBasedOnOSSelector(admitPod, node) {
    		return PodAdmitResult{
    			Admit:   false,
    			Reason:  "PodOSSelectorNodeLabelDoesNotMatch",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Oct 19 00:47:50 UTC 2023
    - 10.9K bytes
    - Viewed (0)
Back to top