Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 30 for numCPU (0.13 sec)

  1. src/runtime/metrics_test.go

    		os.Setenv("GODEBUG", fmt.Sprintf("%s,runtimecontentionstacks=1", before))
    	}
    
    	t.Logf("NumCPU %d", runtime.NumCPU())
    	t.Logf("GOMAXPROCS %d", runtime.GOMAXPROCS(0))
    	if minCPU := 2; runtime.NumCPU() < minCPU {
    		t.Skipf("creating and observing contention on runtime-internal locks requires NumCPU >= %d", minCPU)
    	}
    
    	loadProfile := func(t *testing.T) *profile.Profile {
    		var w bytes.Buffer
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:52:17 UTC 2024
    - 45K bytes
    - Viewed (0)
  2. src/cmd/go/internal/work/gc.go

    	//   - critical path scheduling says it is high priority
    	// and in such a case, set c to runtime.GOMAXPROCS(0).
    	// By default this is the same as runtime.NumCPU.
    	// We do this now when p==1.
    	// To limit parallelism, set GOMAXPROCS below numCPU; this may be useful
    	// on a low-memory builder, or if a deterministic build order is required.
    	c := runtime.GOMAXPROCS(0)
    	if cfg.BuildP == 1 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 15:37:44 UTC 2024
    - 23K bytes
    - Viewed (0)
  3. cmd/kube-proxy/app/server_linux_test.go

    	}
    	if !reflect.DeepEqual(got.Spec.PodCIDRs, expected) {
    		t.Errorf("waitForPodCIDR() got %v expected to be %v ", got.Spec.PodCIDRs, expected)
    	}
    }
    
    func TestGetConntrackMax(t *testing.T) {
    	ncores := goruntime.NumCPU()
    	testCases := []struct {
    		min        int32
    		maxPerCore int32
    		expected   int
    		err        string
    	}{
    		{
    			expected: 0,
    		},
    		{
    			maxPerCore: 67890, // use this if Max is 0
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Apr 28 15:51:23 UTC 2024
    - 21.9K bytes
    - Viewed (0)
  4. cmd/server-main.go

    	}
    
    	maxProcs := runtime.GOMAXPROCS(0)
    	cpuProcs := runtime.NumCPU()
    	if maxProcs < cpuProcs {
    		warnings = append(warnings, color.YellowBold("- Detected GOMAXPROCS(%d) < NumCPU(%d), please make sure to provide all PROCS to MinIO for optimal performance", maxProcs, cpuProcs))
    	}
    
    	// Initialize grid
    	bootstrapTrace("initGrid", func() {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Jun 04 15:12:57 UTC 2024
    - 34.5K bytes
    - Viewed (0)
  5. src/cmd/dist/test.go

    				}
    			}
    			timelog("end", w.dt.name)
    			w.end <- struct{}{}
    		}(w)
    	}
    
    	maxbg := maxbg
    	// for runtime.NumCPU() < 4 ||  runtime.GOMAXPROCS(0) == 1, do not change maxbg.
    	// Because there is not enough CPU to parallel the testing of multiple packages.
    	if runtime.NumCPU() > 4 && runtime.GOMAXPROCS(0) != 1 {
    		for _, w := range worklist {
    			// See go.dev/issue/65164
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 16:01:35 UTC 2024
    - 50K bytes
    - Viewed (0)
  6. cmd/admin-handlers.go

    						Mallocs:    server.MemStats.Mallocs,
    						Frees:      server.MemStats.Frees,
    						HeapAlloc:  server.MemStats.HeapAlloc,
    					},
    					GoMaxProcs:     server.GoMaxProcs,
    					NumCPU:         server.NumCPU,
    					RuntimeVersion: server.RuntimeVersion,
    					GCStats:        server.GCStats,
    					MinioEnvVars:   server.MinioEnvVars,
    				})
    			}
    
    			tls := getTLSInfo()
    			isK8s := IsKubernetes()
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 98K bytes
    - Viewed (0)
  7. src/cmd/internal/testdir/testdir_test.go

    }
    
    // defaultRunOutputLimit returns the number of runoutput tests that
    // can be executed in parallel.
    func defaultRunOutputLimit() int {
    	const maxArmCPU = 2
    
    	cpu := runtime.NumCPU()
    	if runtime.GOARCH == "arm" && cpu > maxArmCPU {
    		cpu = maxArmCPU
    	}
    	return cpu
    }
    
    func TestShouldTest(t *testing.T) {
    	if *shard != 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 20:08:06 UTC 2024
    - 57.5K bytes
    - Viewed (0)
  8. src/cmd/link/internal/ld/lib.go

    }
    
    // hostobjCopy creates a copy of the object files in hostobj in a
    // temporary directory.
    func (ctxt *Link) hostobjCopy() (paths []string) {
    	var wg sync.WaitGroup
    	sema := make(chan struct{}, runtime.NumCPU()) // limit open file descriptors
    	for i, h := range hostobj {
    		h := h
    		dst := filepath.Join(*flagTmpdir, fmt.Sprintf("%06d.o", i))
    		paths = append(paths, dst)
    		if ctxt.Debugvlog != 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 18:45:27 UTC 2024
    - 88.6K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"MemStats.PauseTotalNs", Field, 0},
    		{"MemStats.StackInuse", Field, 0},
    		{"MemStats.StackSys", Field, 0},
    		{"MemStats.Sys", Field, 0},
    		{"MemStats.TotalAlloc", Field, 0},
    		{"MutexProfile", Func, 8},
    		{"NumCPU", Func, 0},
    		{"NumCgoCall", Func, 0},
    		{"NumGoroutine", Func, 0},
    		{"PanicNilError", Type, 21},
    		{"Pinner", Type, 21},
    		{"ReadMemStats", Func, 0},
    		{"ReadTrace", Func, 5},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 534.2K bytes
    - Viewed (0)
  10. api/go1.txt

    pkg runtime, func GoroutineProfile([]StackRecord) (int, bool)
    pkg runtime, func Gosched()
    pkg runtime, func LockOSThread()
    pkg runtime, func MemProfile([]MemProfileRecord, bool) (int, bool)
    pkg runtime, func NumCPU() int
    pkg runtime, func NumCgoCall() int64
    pkg runtime, func NumGoroutine() int
    pkg runtime, func ReadMemStats(*MemStats)
    pkg runtime, func SetCPUProfileRate(int)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 14 18:58:28 UTC 2013
    - 1.7M bytes
    - Viewed (0)
Back to top