Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for stw (0.2 sec)

  1. src/internal/trace/gc.go

    	// is in the range [0, 1].
    	Util float64
    }
    
    // UtilFlags controls the behavior of MutatorUtilization.
    type UtilFlags int
    
    const (
    	// UtilSTW means utilization should account for STW events.
    	// This includes non-GC STW events, which are typically user-requested.
    	UtilSTW UtilFlags = 1 << iota
    	// UtilBackground means utilization should account for
    	// background mark workers.
    	UtilBackground
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 26K bytes
    - Viewed (0)
  2. src/internal/trace/event/go122/event.go

    	EvGoStatus            // goroutine status at the start of a generation [timestamp, goroutine ID, thread ID, status]
    
    	// STW.
    	EvSTWBegin // STW start [timestamp, kind]
    	EvSTWEnd   // STW done [timestamp]
    
    	// GC events.
    	EvGCActive           // GC active [timestamp, seq]
    	EvGCBegin            // GC start [timestamp, seq, stack ID]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  3. src/runtime/mgclimit.go

    }
    
    // finishGCTransition notifies the limiter that the GC transition is complete
    // and releases ownership of it. It also accumulates STW time in the bucket.
    // now must be the timestamp from the end of the STW pause.
    func (l *gcCPULimiterState) finishGCTransition(now int64) {
    	if !l.transitioning {
    		throw("finishGCTransition called without starting one?")
    	}
    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/trace.go

    	// This is necessary to ensure the consistency of the STW events. If we're feeling
    	// adventurous we could lift this restriction and add a STWActive event, but the
    	// cost of maintaining this consistency is low. We're not going to hold this semaphore
    	// for very long and most STW periods are very short.
    	// Once we hold worldsema, prevent preemption as well so we're not interrupted partway
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:17:41 UTC 2024
    - 37.1K bytes
    - Viewed (0)
  5. src/runtime/export_test.go

    var ReadUnaligned64 = readUnaligned64
    
    func CountPagesInUse() (pagesInUse, counted uintptr) {
    	stw := stopTheWorld(stwForTestCountPagesInUse)
    
    	pagesInUse = mheap_.pagesInUse.Load()
    
    	for _, s := range mheap_.allspans {
    		if s.state.get() == mSpanInUse {
    			counted += s.npages
    		}
    	}
    
    	startTheWorld(stw)
    
    	return
    }
    
    func Fastrand() uint32          { return uint32(rand()) }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:50:53 UTC 2024
    - 46.1K bytes
    - Viewed (0)
  6. src/runtime/metrics_test.go

    	}
    	t.Errorf(`time.Sleep did not contribute enough to "idle" class: minimum idle time = %.5fs`, minIdleCPUSeconds)
    }
    
    // Call f() and verify that the correct STW metrics increment. If isGC is true,
    // fn triggers a GC STW. Otherwise, fn triggers an other STW.
    func testSchedPauseMetrics(t *testing.T, fn func(t *testing.T), isGC bool) {
    	m := []metrics.Sample{
    		{Name: "/sched/pauses/stopping/gc:seconds"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:52:17 UTC 2024
    - 45K bytes
    - Viewed (0)
  7. src/runtime/traceruntime.go

    	trace.seqGC++
    }
    
    // STWStart traces a STWBegin event.
    func (tl traceLocker) STWStart(reason stwReason) {
    	// Although the current P may be in _Pgcstop here, we model the P as running during the STW. This deviates from the
    	// runtime's state tracking, but it's more accurate and doesn't result in any loss of information.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:31:00 UTC 2024
    - 25.7K bytes
    - Viewed (0)
  8. src/runtime/extern.go

    		# MB globals scannable global size, or /gc/scan/globals:bytes
    		# P          number of processors used, or /sched/gomaxprocs:threads
    	The phases are stop-the-world (STW) sweep termination, concurrent
    	mark and scan, and STW mark termination. The CPU times
    	for mark/scan are broken down in to assist time (GC performed in
    	line with allocation), background GC time, and idle GC time.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:52:17 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  9. src/internal/trace/oldtrace.go

    }
    
    const (
    	// Block reasons
    	sForever = iota
    	sPreempted
    	sGosched
    	sSleep
    	sChanSend
    	sChanRecv
    	sNetwork
    	sSync
    	sSyncCond
    	sSelect
    	sEmpty
    	sMarkAssistWait
    
    	// STW kinds
    	sSTWUnknown
    	sSTWGCMarkTermination
    	sSTWGCSweepTermination
    	sSTWWriteHeapDump
    	sSTWGoroutineProfile
    	sSTWGoroutineProfileCleanup
    	sSTWAllGoroutinesStackTrace
    	sSTWReadMemStats
    	sSTWAllThreadsSyscall
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  10. src/internal/trace/internal/oldtrace/parser.go

    			}
    			evGC = nil
    		case EvSTWStart:
    			evp := &evSTW
    			if *evp != nil {
    				return fmt.Errorf("previous STW is not ended before a new one (time %d)", ev.Ts)
    			}
    			*evp = ev
    		case EvSTWDone:
    			evp := &evSTW
    			if *evp == nil {
    				return fmt.Errorf("bogus STW end (time %d)", ev.Ts)
    			}
    			*evp = nil
    		case EvGCSweepStart:
    			p := ps[ev.P]
    			if p.evSweep != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 21:15:28 UTC 2024
    - 46.8K bytes
    - Viewed (0)
Back to top