Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 48 for PROCS (0.06 sec)

  1. src/syscall/exec_plan9.go

    // running process to exit.
    func WaitProcess(pid int, w *Waitmsg) (err error) {
    	procs.Lock()
    	ch := procs.waits[pid]
    	procs.Unlock()
    
    	var wmsg *waitErr
    	if ch != nil {
    		wmsg = <-ch
    		procs.Lock()
    		if procs.waits[pid] == ch {
    			delete(procs.waits, pid)
    		}
    		procs.Unlock()
    	}
    	if wmsg == nil {
    		// ch was missing or ch is closed
    		return NewError("process not found")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:03:59 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  2. src/internal/trace/gc.go

    					series = len(out)
    					out = append(out, []MutatorUtil{{int64(ev.Time()), 1}})
    				}
    				ps = append(ps, perP{series: series})
    			}
    			if len(procs) == 0 || gomaxprocs != procs[len(procs)-1].n {
    				procs = append(procs, procsCount{time: int64(ev.Time()), n: gomaxprocs})
    			}
    		}
    		if len(ps) == 0 {
    			// We can't start doing any analysis until we see what GOMAXPROCS is.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 26K bytes
    - Viewed (0)
  3. src/runtime/chan_test.go

    				<-myc
    			}
    		}
    	})
    }
    
    func benchmarkChanSync(b *testing.B, work int) {
    	const CallsPerSched = 1000
    	procs := 2
    	N := int32(b.N / CallsPerSched / procs * procs)
    	c := make(chan bool, procs)
    	myc := make(chan int)
    	for p := 0; p < procs; p++ {
    		go func() {
    			for {
    				i := atomic.AddInt32(&N, -1)
    				if i < 0 {
    					break
    				}
    				for g := 0; g < CallsPerSched; g++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 31 20:47:35 UTC 2023
    - 23.4K bytes
    - Viewed (0)
  4. src/testing/benchmark.go

    	if len(*matchBenchmarks) == 0 {
    		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)),
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  5. pkg/kubelet/cm/helpers_linux.go

    }
    
    // getCgroupProcs takes a cgroup directory name as an argument
    // reads through the cgroup's procs file and returns a list of tgid's.
    // It returns an empty list if a procs file doesn't exists
    func getCgroupProcs(dir string) ([]int, error) {
    	procsFile := filepath.Join(dir, "cgroup.procs")
    	f, err := os.Open(procsFile)
    	if err != nil {
    		if os.IsNotExist(err) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jul 14 11:52:28 UTC 2023
    - 9.8K bytes
    - Viewed (0)
  6. src/go/doc/testdata/testing.go

    	ok = true
    	if len(tests) == 0 {
    		fmt.Fprintln(os.Stderr, "testing: warning: no tests to run")
    		return
    	}
    	for _, procs := range cpuList {
    		runtime.GOMAXPROCS(procs)
    		// We build a new channel tree for each run of the loop.
    		// collector merges in one channel all the upstream signals from parallel tests.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Oct 02 02:28:27 UTC 2022
    - 11.8K bytes
    - Viewed (0)
  7. src/runtime/traceruntime.go

    }
    
    // Gomaxprocs emits a ProcsChange event.
    func (tl traceLocker) Gomaxprocs(procs int32) {
    	tl.eventWriter(traceGoRunning, traceProcRunning).commit(traceEvProcsChange, traceArg(procs), tl.stack(1))
    }
    
    // ProcStart traces a ProcStart event.
    //
    // Must be called with a valid P.
    func (tl traceLocker) ProcStart() {
    	pp := tl.mp.p.ptr()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:31:00 UTC 2024
    - 25.7K bytes
    - Viewed (0)
  8. src/runtime/proc_test.go

    }
    
    func benchmarkCreateGoroutines(b *testing.B, procs int) {
    	c := make(chan bool)
    	var f func(n int)
    	f = func(n int) {
    		if n == 0 {
    			c <- true
    			return
    		}
    		go f(n - 1)
    	}
    	for i := 0; i < procs; i++ {
    		go f(b.N / procs)
    	}
    	for i := 0; i < procs; i++ {
    		<-c
    	}
    }
    
    func BenchmarkCreateGoroutinesCapture(b *testing.B) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 14 00:03:57 UTC 2023
    - 25.8K bytes
    - Viewed (0)
  9. src/net/rpc/server_test.go

    	}
    	defer client.Close()
    
    	// Asynchronous calls
    	args := &Args{7, 8}
    	procs := 4 * runtime.GOMAXPROCS(-1)
    	send := int32(b.N)
    	recv := int32(b.N)
    	var wg sync.WaitGroup
    	wg.Add(procs)
    	gate := make(chan bool, MaxConcurrentCalls)
    	res := make(chan *Call, MaxConcurrentCalls)
    	b.ResetTimer()
    
    	for p := 0; p < procs; p++ {
    		go func() {
    			for atomic.AddInt32(&send, -1) >= 0 {
    				gate <- true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jul 18 05:23:29 UTC 2023
    - 19K bytes
    - Viewed (0)
  10. src/syscall/ztypes_linux_ppc64le.go

    }
    
    type Sysinfo_t struct {
    	Uptime    int64
    	Loads     [3]uint64
    	Totalram  uint64
    	Freeram   uint64
    	Sharedram uint64
    	Bufferram uint64
    	Totalswap uint64
    	Freeswap  uint64
    	Procs     uint16
    	Pad       uint16
    	Pad_cgo_0 [4]byte
    	Totalhigh uint64
    	Freehigh  uint64
    	Unit      uint32
    	X_f       [0]uint8
    	Pad_cgo_1 [4]byte
    }
    
    type Utsname struct {
    	Sysname    [65]uint8
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 17:55:49 UTC 2023
    - 10.4K bytes
    - Viewed (0)
Back to top