Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 227 for nprocs (0.17 sec)

  1. src/runtime/export_test.go

    	l.limiter.update(now)
    }
    
    func (l *GCCPULimiter) AddAssistTime(t int64) {
    	l.limiter.addAssistTime(t)
    }
    
    func (l *GCCPULimiter) ResetCapacity(now int64, nprocs int32) {
    	l.limiter.resetCapacity(now, nprocs)
    }
    
    const ScavengePercent = scavengePercent
    
    type Scavenger struct {
    	Sleep      func(int64) int64
    	Scavenge   func(uintptr) (uintptr, int64)
    	ShouldStop func() bool
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:50:53 UTC 2024
    - 46.1K bytes
    - Viewed (0)
  2. src/runtime/mgcmark.go

    	// signal a completion point.
    	incnwait := atomic.Xadd(&work.nwait, +1)
    	if incnwait > work.nproc {
    		println("runtime: work.nwait=", incnwait,
    			"work.nproc=", work.nproc)
    		throw("work.nwait > work.nproc")
    	}
    
    	if incnwait == work.nproc && !gcMarkWorkAvailable(nil) {
    		// This has reached a background completion point. Set
    		// gp.param to a non-nil value to indicate this. It
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 21:25:11 UTC 2024
    - 52.5K bytes
    - Viewed (0)
  3. cni/pkg/repair/netns.go

    	if parsedPodAddr == nil {
    		return "", fmt.Errorf("failed to parse addr: %s", pod.Status.PodIP)
    	}
    
    	fs, err := procfs.NewFS("/host/proc")
    	if err != nil {
    		return "", fmt.Errorf("read procfs: %v", err)
    	}
    	procs, err := fs.AllProcs()
    	if err != nil {
    		return "", fmt.Errorf("read procs: %v", err)
    	}
    	oldest := uint64(math.MaxUint64)
    	best := ""
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 31 04:07:10 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  4. pkg/util/procfs/procfs.go

    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package procfs
    
    type ProcFSInterface interface {
    	// GetFullContainerName gets the container name given the root process id of the container.
    	GetFullContainerName(pid int) (string, error)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Aug 17 18:57:44 UTC 2016
    - 762 bytes
    - Viewed (0)
  5. pkg/ctrlz/topics/assets/templates/proc.html

        </tbody>
    </table>
    
    {{ template "last-refresh" .}}
    
    <script>
        "use strict";
    
        function refreshProcStats() {
            let url = window.location.protocol + "//" + window.location.host + "/procj/";
    
            let ajax = new XMLHttpRequest();
            ajax.onload = onload;
            ajax.onerror = onerror;
            ajax.open("GET", url, true);
            ajax.send();
    
            function onload() {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  6. 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)
  7. src/runtime/proc_runtime_test.go

    	for procs := 2; procs <= 64; procs++ {
    		ord.reset(uint32(procs))
    		checked := make([]bool, procs*procs)
    		// We want at least procs*len(ord.coprimes) different pos+inc values
    		// before we start repeating.
    		for i := 0; i < procs*len(ord.coprimes); i++ {
    			enum := ord.start(uint32(i))
    			j := enum.pos*uint32(procs) + enum.inc
    			if checked[j] {
    				println("procs:", procs, "pos:", enum.pos, "inc:", enum.inc)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 18:43:08 UTC 2022
    - 1.4K bytes
    - Viewed (0)
  8. pkg/kubelet/stats/pidlimit/pidlimit_linux.go

    	}
    
    	// Prefer to read "/proc/loadavg" when possible because sysinfo(2)
    	// returns truncated number when greater than 65538. See
    	// https://github.com/kubernetes/kubernetes/issues/107107
    	if procs, err := runningTaskCount(); err == nil {
    		rlimit.NumOfRunningProcesses = &procs
    	} else {
    		var info syscall.Sysinfo_t
    		syscall.Sysinfo(&info)
    		procs := int64(info.Procs)
    		rlimit.NumOfRunningProcesses = &procs
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Sep 17 09:24:29 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  9. src/runtime/mgclimit_test.go

    		//
    		//   fill + (window * procs * gcBackgroundUtilization - window * procs * (1-gcBackgroundUtilization)) = n
    		//   fill = n - (window * procs * gcBackgroundUtilization - window * procs * (1-gcBackgroundUtilization))
    		//   fill = n + window * procs * ((1-gcBackgroundUtilization) - gcBackgroundUtilization)
    		//   fill = n + window * procs * (1-2*gcBackgroundUtilization)
    		//   window = (fill - n) / (procs * (1-2*gcBackgroundUtilization)))
    		//
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 13 16:02:20 UTC 2022
    - 9K bytes
    - Viewed (0)
  10. src/cmd/trace/procgen.go

    }
    
    func (g *procGenerator) ProcTransition(ctx *traceContext, ev *trace.Event) {
    	st := ev.StateTransition()
    	proc := st.Resource.Proc()
    
    	g.maxProc = max(g.maxProc, proc)
    	viewerEv := traceviewer.InstantEvent{
    		Resource: uint64(proc),
    		Stack:    ctx.Stack(viewerFrames(ev.Stack())),
    	}
    
    	from, to := st.Proc()
    	if from == to {
    		// Filter out no-op events.
    		return
    	}
    	if to.Executing() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 6.1K bytes
    - Viewed (0)
Back to top