Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 134 for Gomaxprocs (0.36 sec)

  1. cmd/admin-server-info.go

    			Alloc:      memstats.Alloc,
    			TotalAlloc: memstats.TotalAlloc,
    			Mallocs:    memstats.Mallocs,
    			Frees:      memstats.Frees,
    			HeapAlloc:  memstats.HeapAlloc,
    		},
    		GoMaxProcs:     runtime.GOMAXPROCS(0),
    		NumCPU:         runtime.NumCPU(),
    		RuntimeVersion: runtime.Version(),
    		GCStats: &madmin.GCStats{
    			LastGC:     gcStats.LastGC,
    			NumGC:      gcStats.NumGC,
    			PauseTotal: gcStats.PauseTotal,
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  2. src/testing/benchmark.go

    		return true
    	}
    	// Collect matching benchmarks and determine longest name.
    	maxprocs := 1
    	for _, procs := range cpuList {
    		if procs > maxprocs {
    			maxprocs = procs
    		}
    	}
    	ctx := &benchContext{
    		match:  newMatcher(matchString, *matchBenchmarks, "-test.bench", *skip),
    		extLen: len(benchmarkName("", maxprocs)),
    	}
    	var bs []InternalBenchmark
    	for _, Benchmark := range benchmarks {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  3. internal/grid/benchmark_test.go

    	errFatal(err)
    
    	// Wait for all to connect
    	// Parallel writes per server.
    	b.Run("bytes", func(b *testing.B) {
    		for par := 1; par <= 32; par *= 2 {
    			b.Run("par="+strconv.Itoa(par*runtime.GOMAXPROCS(0)), func(b *testing.B) {
    				defer timeout(60 * time.Second)()
    				ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
    				defer cancel()
    				b.ReportAllocs()
    				b.SetBytes(int64(len(payload) * 2))
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Jun 07 15:51:52 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  4. src/internal/trace/gc.go

    				break
    			}
    			gomaxprocs := int(m.Value.Uint64())
    			if len(ps) > gomaxprocs {
    				if flags&UtilPerProc != 0 {
    					// End each P's series.
    					for _, p := range ps[gomaxprocs:] {
    						out[p.series] = addUtil(out[p.series], MutatorUtil{int64(ev.Time()), 0})
    					}
    				}
    				ps = ps[:gomaxprocs]
    			}
    			for len(ps) < gomaxprocs {
    				// Start new P's series.
    				series := 0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 26K bytes
    - Viewed (0)
  5. src/internal/trace/testdata/testprog/gc-stress.go

    	for i := range ballast {
    		ballast[i] = new([1024]*node)
    		for j := range ballast[i] {
    			ballast[i][j] = &node{
    				data: [128]byte{1, 2, 3, 4},
    			}
    		}
    	}
    
    	procs := runtime.GOMAXPROCS(-1)
    	sink = make([][]byte, procs)
    
    	for i := 0; i < procs; i++ {
    		i := i
    		go func() {
    			for {
    				sink[i] = make([]byte, 4<<10)
    			}
    		}()
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  6. src/iter/pull_test.go

    	// the same 100 times in a row. This should be more than enough to
    	// ensure all goroutines get a chance to run to completion (or to
    	// some block point) for a small group of test goroutines.
    	defer runtime.GOMAXPROCS(runtime.GOMAXPROCS(1))
    
    	c := 0
    	ng := runtime.NumGoroutine()
    	for i := 0; i < 1000; i++ {
    		nng := runtime.NumGoroutine()
    		if nng == ng {
    			c++
    		} else {
    			c = 0
    			ng = nng
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:09:28 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  7. src/cmd/trace/threadgen.go

    	}
    	// TODO(mknyszek): Consider modeling procs differently and have them be
    	// transition to and from NotExist when GOMAXPROCS changes. We can emit
    	// events for this to clearly delineate GOMAXPROCS changes.
    
    	if viewerEv.Name != "" {
    		ctx.Instant(viewerEv)
    	}
    }
    
    func (g *threadGenerator) ProcRange(ctx *traceContext, ev *trace.Event) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  8. src/testing/benchmark_test.go

    		iters := uint64(0)
    		b.SetParallelism(3)
    		b.RunParallel(func(pb *testing.PB) {
    			atomic.AddUint32(&procs, 1)
    			for pb.Next() {
    				atomic.AddUint64(&iters, 1)
    			}
    		})
    		if want := uint32(3 * runtime.GOMAXPROCS(0)); procs != want {
    			t.Errorf("got %v procs, want %v", procs, want)
    		}
    		if iters != uint64(b.N) {
    			t.Errorf("got %v iters, want %v", iters, b.N)
    		}
    	})
    }
    
    func TestRunParallelFail(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  9. src/cmd/trace/procgen.go

    			delete(g.inSyscall, proc)
    		}
    	}
    	// TODO(mknyszek): Consider modeling procs differently and have them be
    	// transition to and from NotExist when GOMAXPROCS changes. We can emit
    	// events for this to clearly delineate GOMAXPROCS changes.
    
    	if viewerEv.Name != "" {
    		ctx.Instant(viewerEv)
    	}
    }
    
    func (g *procGenerator) Finish(ctx *traceContext) {
    	ctx.SetResourceType("PROCS")
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  10. src/runtime/metrics/doc.go

    		the GC. Even if only one thread is running during the pause,
    		this is computed as GOMAXPROCS times the pause latency because
    		nothing else can be executing. This is the exact sum of samples
    		in /sched/pauses/total/gc:seconds if each sample is multiplied
    		by GOMAXPROCS at the time it is taken. This metric is an
    		overestimate, and not directly comparable to system CPU time
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:58:43 UTC 2024
    - 20K bytes
    - Viewed (0)
Back to top