Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 348 for Gomaxprocs (0.61 sec)

  1. src/net/rpc/server_test.go

    	}
    	if runtime.GOMAXPROCS(0) > 1 {
    		t.Skip("skipping; GOMAXPROCS>1")
    	}
    	fmt.Printf("mallocs per rpc round trip: %v\n", countMallocs(dialDirect, t))
    }
    
    func TestCountMallocsOverHTTP(t *testing.T) {
    	if testing.Short() {
    		t.Skip("skipping malloc count in short mode")
    	}
    	if runtime.GOMAXPROCS(0) > 1 {
    		t.Skip("skipping; GOMAXPROCS>1")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jul 18 05:23:29 UTC 2023
    - 19K bytes
    - Viewed (0)
  2. src/net/tcpsock_unix_test.go

    				var b [1]byte
    				c.Read(b[:])
    				c.Close()
    				wg.Done()
    			}(c)
    		}
    	}(ln)
    
    	attempts := int(1e4) // larger is better
    	wg.Add(attempts)
    	throttle := make(chan struct{}, runtime.GOMAXPROCS(-1)*2)
    	for i := 0; i < attempts; i++ {
    		throttle <- struct{}{}
    		go func(i int) {
    			defer func() {
    				<-throttle
    				wg.Done()
    			}()
    			d := Dialer{Timeout: 50 * time.Millisecond}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 17:20:52 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  3. operator/cmd/mesh/testdata/manifest-generate/output/flag_output.golden.yaml

              value: "false"
            - name: CLUSTER_ID
              value: Kubernetes
            - name: GOMEMLIMIT
              valueFrom:
                resourceFieldRef:
                  resource: limits.memory
            - name: GOMAXPROCS
              valueFrom:
                resourceFieldRef:
                  resource: limits.cpu
            - name: PLATFORM
              value: ""
            image: gcr.io/istio-testing/pilot:latest
            name: discovery
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Dec 01 22:07:45 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  4. operator/cmd/mesh/testdata/manifest-generate/output/install_package_path.golden.yaml

              value: "false"
            - name: CLUSTER_ID
              value: Kubernetes
            - name: GOMEMLIMIT
              valueFrom:
                resourceFieldRef:
                  resource: limits.memory
            - name: GOMAXPROCS
              valueFrom:
                resourceFieldRef:
                  resource: limits.cpu
            - name: PLATFORM
              value: ""
            image: docker.io/istio/pilot:1.1.4
            name: discovery
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Dec 01 22:07:45 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  5. 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)
  6. pkg/kube/inject/testdata/inject/gateway.yaml.injected

              value: |-
                [
                ]
            - name: GOMEMLIMIT
              valueFrom:
                resourceFieldRef:
                  divisor: "0"
                  resource: limits.memory
            - name: GOMAXPROCS
              valueFrom:
                resourceFieldRef:
                  divisor: "0"
                  resource: limits.cpu
            - name: ISTIO_META_APP_CONTAINERS
            - name: ISTIO_META_CLUSTER_ID
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Feb 27 16:55:16 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  7. 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)
  8. pkg/kube/inject/testdata/inject/list.yaml.injected

                value: hello
              - name: GOMEMLIMIT
                valueFrom:
                  resourceFieldRef:
                    divisor: "0"
                    resource: limits.memory
              - name: GOMAXPROCS
                valueFrom:
                  resourceFieldRef:
                    divisor: "0"
                    resource: limits.cpu
              - name: ISTIO_META_CLUSTER_ID
                value: Kubernetes
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Feb 27 16:55:16 UTC 2024
    - 14.2K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top