Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for HeapGoal (0.12 sec)

  1. src/runtime/mgcpacer.go

    		if extHeapGoal > hardGoal {
    			extHeapGoal = hardGoal
    		}
    		heapGoal = extHeapGoal
    	}
    	if int64(live) > heapGoal {
    		// We're already past our heap goal, even the extrapolated one.
    		// Leave ourselves some extra runway, so in the worst case we
    		// finish by that point.
    		const maxOvershoot = 1.1
    		heapGoal = int64(float64(heapGoal) * maxOvershoot)
    
    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/runtime/mgcpacer_test.go

    	return float64(r.heapGoal - r.heapTrigger)
    }
    
    func (r *gcCycleResult) triggerRatio() float64 {
    	return float64(r.heapTrigger-r.heapLive) / float64(r.heapGoal-r.heapLive)
    }
    
    func (r *gcCycleResult) String() string {
    	return fmt.Sprintf("%d %2.1f%% %d->%d->%d (goal: %d)", r.cycle, r.gcUtilization*100, r.heapLive, r.heapTrigger, r.heapPeak, r.heapGoal)
    }
    
    func assertInEpsilon(t *testing.T, name string, a, b, epsilon float64) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 19 13:53:21 UTC 2023
    - 39.3K bytes
    - Viewed (0)
  3. src/runtime/traceruntime.go

    }
    
    // HeapGoal reads the current heap goal and emits a HeapGoal event.
    func (tl traceLocker) HeapGoal() {
    	heapGoal := gcController.heapGoal()
    	if heapGoal == ^uint64(0) {
    		// Heap-based triggering is disabled.
    		heapGoal = 0
    	}
    	tl.eventWriter(traceGoRunning, traceProcRunning).commit(traceEvHeapGoal, traceArg(heapGoal))
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:31:00 UTC 2024
    - 25.7K bytes
    - Viewed (0)
  4. src/internal/trace/parser.go

    	EvHeapAlloc         = 33 // gcController.heapLive change [timestamp, heap live bytes]
    	EvHeapGoal          = 34 // gcController.heapGoal change [timestamp, heap goal bytes]
    	EvTimerGoroutine    = 35 // denotes timer goroutine [timer goroutine id]
    	EvFutileWakeup      = 36 // denotes that the previous wakeup of this goroutine was futile [timestamp]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:31:04 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  5. src/runtime/metrics.go

    	a.buckHashSys = memstats.buckhash_sys.load()
    	a.gcMiscSys = memstats.gcMiscSys.load()
    	a.otherSys = memstats.other_sys.load()
    	a.heapGoal = gcController.heapGoal()
    	a.gcCyclesDone = uint64(memstats.numgc)
    	a.gcCyclesForced = uint64(memstats.numforcedgc)
    
    	systemstack(func() {
    		lock(&mheap_.lock)
    		a.mSpanSys = memstats.mspan_sys.load()
    		a.mSpanInUse = uint64(mheap_.spanalloc.inuse)
    		a.mCacheSys = memstats.mcache_sys.load()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 08 21:03:13 UTC 2024
    - 26K bytes
    - Viewed (0)
  6. src/internal/trace/event/go122/event.go

    	EvGCMarkAssistEnd    // GC mark assist done [timestamp]
    	EvHeapAlloc          // gcController.heapLive change [timestamp, heap alloc in bytes]
    	EvHeapGoal           // gcController.heapGoal() change [timestamp, heap goal in bytes]
    
    	// Annotations.
    	EvGoLabel         // apply string label to current running goroutine [timestamp, label string 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)
  7. src/runtime/mgcscavenge.go

    // For the former, the goal is defined as:
    //   (retainExtraPercent+100) / 100 * (heapGoal / lastHeapGoal) * lastHeapInUse
    //
    // Essentially, we wish to have the application's RSS track the heap goal, but
    // the heap goal is defined in terms of bytes of objects, rather than pages like
    // RSS. As a result, we need to take into account for fragmentation internal to
    // spans. heapGoal / lastHeapGoal defines the ratio between the current heap goal
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:48:45 UTC 2024
    - 52.3K bytes
    - Viewed (0)
  8. src/runtime/traceevent.go

    	traceEvGCMarkAssistEnd    // GC mark assist done [timestamp]
    	traceEvHeapAlloc          // gcController.heapLive change [timestamp, heap alloc in bytes]
    	traceEvHeapGoal           // gcController.heapGoal() change [timestamp, heap goal in bytes]
    
    	// Annotations.
    	traceEvGoLabel         // apply string label to current running goroutine [timestamp, label string ID]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:47:01 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  9. src/cmd/trace/gen.go

    	m := ev.Metric()
    	switch m.Name {
    	case "/memory/classes/heap/objects:bytes":
    		ctx.HeapAlloc(ctx.elapsed(ev.Time()), m.Value.Uint64())
    	case "/gc/heap/goal:bytes":
    		ctx.HeapGoal(ctx.elapsed(ev.Time()), m.Value.Uint64())
    	case "/sched/gomaxprocs:threads":
    		ctx.Gomaxprocs(m.Value.Uint64())
    	}
    }
    
    // procRangeGenerator implements a generic handler for EventRange* events whose Scope.Kind is
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  10. src/runtime/mstats.go

    		memstats.buckhash_sys.load() + memstats.gcMiscSys.load() + memstats.other_sys.load() +
    		stackInUse + gcWorkBufInUse + gcProgPtrScalarBitsInUse
    
    	heapGoal := gcController.heapGoal()
    
    	if doubleCheckReadMemStats {
    		// Only check this if we're debugging. It would be bad to crash an application
    		// just because the debugging stats are wrong. We mostly rely on tests to catch
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 08 21:03:13 UTC 2024
    - 34.2K bytes
    - Viewed (0)
Back to top