- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 136 for Gomaxprocs (0.5 sec)
-
src/runtime/mgclimit.go
lastUpdate atomic.Int64 // lastEnabledCycle is the GC cycle that last had the limiter enabled. lastEnabledCycle atomic.Uint32 // nprocs is an internal copy of gomaxprocs, used to determine total available // CPU time. // // gomaxprocs isn't used directly so as to keep this structure unit-testable. nprocs int32 } // limiting returns true if the CPU limiter is currently enabled, meaning the Go GC
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 22 22:07:41 UTC 2024 - 17.3K bytes - Viewed (0) -
src/runtime/mstats.go
// the actual time spent paused, for orthogonality. maxProcs should be GOMAXPROCS, // not work.stwprocs, since this number must be comparable to a total time computed // from GOMAXPROCS. func (s *cpuStats) accumulateGCPauseTime(dt int64, maxProcs int32) { cpu := dt * int64(maxProcs) s.GCPauseTime += cpu s.GCTotalTime += cpu }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 08 21:03:13 UTC 2024 - 34.2K bytes - Viewed (0) -
cmd/kube-apiserver/app/server.go
// To help debugging, immediately log version klog.Infof("Version: %+v", version.Get()) klog.InfoS("Golang settings", "GOGC", os.Getenv("GOGC"), "GOMAXPROCS", os.Getenv("GOMAXPROCS"), "GOTRACEBACK", os.Getenv("GOTRACEBACK")) config, err := NewConfig(opts) if err != nil { return err } completed, err := config.Complete() if err != nil { return err }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 01 17:44:20 UTC 2024 - 10.2K bytes - Viewed (0) -
src/runtime/runtime_test.go
b.Run("small-nil", run(func() bool { GoroutineProfile(nil) return true })) // Measure the cost with a small set of goroutines n := NumGoroutine() p := make([]StackRecord, 2*n+2*GOMAXPROCS(0)) b.Run("small", run(func() bool { _, ok := GoroutineProfile(p) return ok })) // Measure the cost with a large set of goroutines ch := make(chan int) var ready, done sync.WaitGroup
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 11.7K bytes - Viewed (0) -
hack/lib/golang.sh
export GOMAXPROCS kube::log::status "Set GOMAXPROCS automatically to ${GOMAXPROCS}" fi fi } # This will take binaries from $GOPATH/bin and copy them to the appropriate # place in ${KUBE_OUTPUT_BIN} # # Ideally this wouldn't be necessary and we could just set GOBIN to # KUBE_OUTPUT_BIN but that won't work in the face of cross compilation. 'go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Jun 01 16:43:08 UTC 2024 - 32.8K bytes - Viewed (0) -
cmd/erasure.go
cache.Info.LastUpdate = time.Now() } } }() // Restrict parallelism for disk usage scanner // upto GOMAXPROCS if GOMAXPROCS is < len(disks) maxProcs := runtime.GOMAXPROCS(0) if maxProcs < len(disks) { disks = disks[:maxProcs] } // Start one scanner per disk var wg sync.WaitGroup wg.Add(len(disks)) for i := range disks { go func(i int) {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 16K bytes - Viewed (0) -
src/cmd/trace/testdata/testprog/main.go
go cpu10(&wg) go cpu20(&wg) wg.Wait() // checkHeapMetrics relies on this. allocHog(25 * time.Millisecond) // checkProcStartStop relies on this. var wg2 sync.WaitGroup for i := 0; i < runtime.GOMAXPROCS(0); i++ { wg2.Add(1) go func() { defer wg2.Done() cpuHog(50 * time.Millisecond) }() } wg2.Wait() // checkSyscalls relies on this. done := make(chan error)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 17:15:58 UTC 2024 - 2.5K bytes - Viewed (0) -
src/runtime/export_test.go
trigger, _ := c.trigger() if c.heapMarked > trigger { trigger = c.heapMarked } c.maxStackScan.Store(stackSize) c.globalsScan.Store(globalsSize) c.heapLive.Store(trigger) c.heapScan.Add(int64(float64(trigger-c.heapMarked) * scannableFrac)) c.startCycle(0, gomaxprocs, gcTrigger{kind: gcTriggerHeap}) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 17:50:53 UTC 2024 - 46.1K bytes - Viewed (0) -
src/sync/atomic/atomic_test.go
break } } } } func TestHammer32(t *testing.T) { const p = 4 n := 100000 if testing.Short() { n = 1000 } defer runtime.GOMAXPROCS(runtime.GOMAXPROCS(p)) for name, testf := range hammer32 { c := make(chan int) var val uint32 for i := 0; i < p; i++ { go func() { defer func() { if err := recover(); err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:37:29 UTC 2024 - 71.4K bytes - Viewed (0) -
src/sync/pool.go
l := p.local if uintptr(pid) < s { return indexLocal(l, pid), pid } if p.local == nil { allPools = append(allPools, p) } // If GOMAXPROCS changes between GCs, we re-allocate the array and lose the old one. size := runtime.GOMAXPROCS(0) local := make([]poolLocal, size) atomic.StorePointer(&p.local, unsafe.Pointer(&local[0])) // store-release
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 07 21:14:51 UTC 2024 - 9.4K bytes - Viewed (0)