- Sort Score
- Result 10 results
- Languages All
Results 1 - 9 of 9 for numCPU (0.37 sec)
-
cmd/kube-proxy/app/server_linux.go
return nil, fmt.Errorf("event object not of type node") } func detectNumCPU() int { // try get numCPU from /sys firstly due to a known issue (https://github.com/kubernetes/kubernetes/issues/99225) _, numCPU, err := machine.GetTopology(sysfs.NewRealSysFs()) if err != nil || numCPU < 1 { return goruntime.NumCPU() } return numCPU }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Jun 08 13:48:54 UTC 2024 - 18.1K bytes - Viewed (0) -
cmd/kubeadm/app/preflight/checks.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jun 03 11:20:55 UTC 2024 - 39.5K bytes - Viewed (0) -
cmd/kubeadm/app/preflight/checks_test.go
} } func TestNumCPUCheck(t *testing.T) { var tests = []struct { numCPU int numErrors int numWarnings int }{ {0, 0, 0}, {999999999, 1, 0}, } for _, rt := range tests { t.Run(fmt.Sprintf("number of CPUs: %d", rt.numCPU), func(t *testing.T) { warnings, errors := NumCPUCheck{NumCPU: rt.numCPU}.Check() if len(warnings) != rt.numWarnings {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 06:58:01 UTC 2024 - 33.5K bytes - Viewed (0) -
src/time/sleep_test.go
// https://golang.org/issue/38860 func BenchmarkParallelTimerLatency(b *testing.B) { gmp := runtime.GOMAXPROCS(0) if gmp < 2 || runtime.NumCPU() < gmp { b.Skip("skipping with GOMAXPROCS < 2 or NumCPU < GOMAXPROCS") } // allocate memory now to avoid GC interference later. timerCount := gmp - 1 stats := make([]struct { sum float64 max Duration count int64
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 22 16:33:57 UTC 2024 - 22.5K bytes - Viewed (0) -
src/runtime/gc_test.go
<-teardown return } *n-- countpwg(n, ready, teardown) } func TestMemoryLimit(t *testing.T) { if testing.Short() { t.Skip("stress test that takes time to run") } if runtime.NumCPU() < 4 { t.Skip("want at least 4 CPUs for this test") } got := runTestProg(t, "testprog", "GCMemoryLimit") want := "OK\n" if got != want { t.Fatalf("expected %q, but got %q", want, got) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jun 05 22:33:52 UTC 2024 - 17.6K bytes - Viewed (0) -
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) -
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) -
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) -
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)