Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 266 for nproc (0.05 sec)

  1. src/cmd/cgo/internal/test/issue18146.go

    	// It is not defined on Solaris.
    	var nproc int
    	setNproc := true
    	switch runtime.GOOS {
    	default:
    		setNproc = false
    	case "aix":
    		nproc = 9
    	case "linux":
    		nproc = 6
    	case "darwin", "dragonfly", "freebsd", "netbsd", "openbsd":
    		nproc = 7
    	}
    	if setNproc {
    		var rlim syscall.Rlimit
    		if syscall.Getrlimit(nproc, &rlim) == nil {
    			max := int(rlim.Cur) / (threads + 5)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 05 23:35:32 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  2. ci/official/utilities/code_check_changed_files.bats

        grep -e '\.h$' -e '\.cc$' $BATS_FILE_TMPDIR/changed_files > $BATS_TEST_TMPDIR/files || true
        if [[ ! -s $BATS_TEST_TMPDIR/files ]]; then return 0; fi
        xargs -a $BATS_TEST_TMPDIR/files -i -n1 -P $(nproc --all) \
            bash -c 'clang-format-12 --style=Google {} | git diff --no-index {} -' \
            | tee $BATS_TEST_TMPDIR/needs_help.txt
        echo "You can use clang-format --style=Google -i <file> to apply changes to a file."
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jan 10 19:39:41 UTC 2024
    - 4K bytes
    - Viewed (0)
  3. ci/official/containers/linux_arm64/devel.usertools/code_check_changed_files.bats

        grep -e '\.h$' -e '\.cc$' $BATS_FILE_TMPDIR/changed_files > $BATS_TEST_TMPDIR/files || true
        if [[ ! -s $BATS_TEST_TMPDIR/files ]]; then return 0; fi
        xargs -a $BATS_TEST_TMPDIR/files -i -n1 -P $(nproc --all) \
            bash -c 'clang-format-12 --style=Google {} | git diff --no-index {} -' \
            | tee $BATS_TEST_TMPDIR/needs_help.txt
        echo "You can use clang-format --style=Google -i <file> to apply changes to a file."
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Sep 18 14:52:45 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  4. test/ken/chan.go

    	sv, rv int      // send and recv seq
    }
    
    var (
    	nproc      int
    	nprocLock  sync.Mutex
    	cval       int
    	end        int = 10000
    	totr, tots int
    	totLock    sync.Mutex
    	nc         *Chan
    )
    
    func init() {
    	nc = new(Chan)
    }
    
    func changeNproc(adjust int) int {
    	nprocLock.Lock()
    	nproc += adjust
    	ret := nproc
    	nprocLock.Unlock()
    	return ret
    }
    
    func mkchan(c, n int) []*Chan {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 24 05:24:24 UTC 2012
    - 4.7K bytes
    - Viewed (0)
  5. ci/official/containers/linux_arm64/builder.devtoolset/build_devtoolset.sh

    patch -p1 < /gcc9-fixups.patch
    patch -p1 < /stringop_trunc.patch
    cd ../glibc-build
    ../glibc-src/configure --prefix=/usr --disable-werror --enable-obsolete-rpc --disable-profile
    make -j$(nproc)
    make install DESTDIR=${TARGET}
    cd ..
    
    # Symlinks in the binary distribution are set up for installation in /usr, we
    # need to fix up all the links to stay within /${TARGET}.
    /fixlinks.sh "/${TARGET}"
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Sep 29 00:26:34 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  6. src/runtime/mgc.go

    			trackLimiterEvent = pp.limiterEvent.start(limiterEventIdleMarkWork, startTime)
    		}
    
    		decnwait := atomic.Xadd(&work.nwait, -1)
    		if decnwait == work.nproc {
    			println("runtime: work.nwait=", decnwait, "work.nproc=", work.nproc)
    			throw("work.nwait was > work.nproc")
    		}
    
    		systemstack(func() {
    			// Mark our goroutine preemptible so its stack
    			// can be scanned. This lets two mark workers
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 62K bytes
    - Viewed (0)
  7. 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)
  8. src/cmd/vendor/golang.org/x/sys/unix/mkerrors.sh

    		$2 ~ /^(IFF|IFT|NET_RT|RTM(GRP)?|RTF|RTV|RTA|RTAX)_/ ||
    		$2 ~ /^BIOC/ ||
    		$2 ~ /^DIOC/ ||
    		$2 ~ /^RUSAGE_(SELF|CHILDREN|THREAD)/ ||
    		$2 ~ /^RLIMIT_(AS|CORE|CPU|DATA|FSIZE|LOCKS|MEMLOCK|MSGQUEUE|NICE|NOFILE|NPROC|RSS|RTPRIO|RTTIME|SIGPENDING|STACK)|RLIM_INFINITY/ ||
    		$2 ~ /^PRIO_(PROCESS|PGRP|USER)/ ||
    		$2 ~ /^CLONE_[A-Z_]+/ ||
    		$2 !~ /^(BPF_TIMEVAL|BPF_FIB_LOOKUP_[A-Z]+|BPF_F_LINK)$/ &&
    		$2 ~ /^(BPF|DLT)_/ ||
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 20.2K bytes
    - Viewed (0)
  9. pkg/ctrlz/topics/proc.go

    func ProcTopic() fw.Topic {
    	return procTopic{}
    }
    
    func (procTopic) Title() string {
    	return "Process Info"
    }
    
    func (procTopic) Prefix() string {
    	return "proc"
    }
    
    type procInfo struct {
    	Egid       int    `json:"egid"`
    	Euid       int    `json:"euid"`
    	GID        int    `json:"gid"`
    	Groups     []int  `json:"groups"`
    	Pid        int    `json:"pid"`
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 24 14:06:41 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  10. src/runtime/proc.go

    	}
    	sched.procresizetime = now
    
    	maskWords := (nprocs + 31) / 32
    
    	// Grow allp if necessary.
    	if nprocs > int32(len(allp)) {
    		// Synchronize with retake, which could be running
    		// concurrently since it doesn't run on a P.
    		lock(&allpLock)
    		if nprocs <= int32(cap(allp)) {
    			allp = allp[:nprocs]
    		} else {
    			nallp := make([]*p, nprocs)
    			// Copy everything up to allp's cap so we
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 207.5K bytes
    - Viewed (0)
Back to top