Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 636 for proc (0.08 sec)

  1. src/internal/trace/testdata/testprog/gomaxprocs.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Tests increasing and decreasing GOMAXPROCS to try and
    // catch issues with stale proc state.
    
    //go:build ignore
    
    package main
    
    import (
    	"log"
    	"os"
    	"runtime"
    	"runtime/trace"
    	"time"
    )
    
    func main() {
    	// Start a goroutine that calls runtime.GC to try and
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 967 bytes
    - Viewed (0)
  2. src/cmd/internal/bio/buf_mmap.go

    // distinct mapped regions per process. As of this writing:
    //
    //	Darwin    unlimited
    //	DragonFly   1000000 (vm.max_proc_mmap)
    //	FreeBSD   unlimited
    //	Linux         65530 (vm.max_map_count) // TODO: query /proc/sys/vm/max_map_count?
    //	NetBSD    unlimited
    //	OpenBSD   unlimited
    var mmapLimit int32 = 1<<31 - 1
    
    func init() {
    	// Linux is the only practically concerning OS.
    	if runtime.GOOS == "linux" {
    		mmapLimit = 30000
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 19 11:20:31 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  3. src/internal/trace/internal/oldtrace/order.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package oldtrace
    
    import "errors"
    
    type orderEvent struct {
    	ev   Event
    	proc *proc
    }
    
    type gStatus int
    
    type gState struct {
    	seq    uint64
    	status gStatus
    }
    
    const (
    	gDead gStatus = iota
    	gRunnable
    	gRunning
    	gWaiting
    
    	unordered = ^uint64(0)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 4K bytes
    - Viewed (0)
  4. prow/integ-suite-kind.sh

    set -u
    # Print commands
    set -x
    
    # shellcheck source=prow/lib.sh
    source "${ROOT}/prow/lib.sh"
    setup_and_export_git_sha
    
    # shellcheck source=common/scripts/kind_provisioner.sh
    source "${ROOT}/common/scripts/kind_provisioner.sh"
    
    TOPOLOGY=SINGLE_CLUSTER
    NODE_IMAGE="gcr.io/istio-testing/kind-node:v1.30.0"
    KIND_CONFIG=""
    CLUSTER_TOPOLOGY_CONFIG_FILE="${ROOT}/prow/config/topology/multicluster.json"
    
    export FAST_VM_BUILDS=true
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 18 05:42:41 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  5. src/vendor/golang.org/x/sys/cpu/proc_cpuinfo_linux.go

    // license that can be found in the LICENSE file.
    
    //go:build linux && arm64
    
    package cpu
    
    import (
    	"errors"
    	"io"
    	"os"
    	"strings"
    )
    
    func readLinuxProcCPUInfo() error {
    	f, err := os.Open("/proc/cpuinfo")
    	if err != nil {
    		return err
    	}
    	defer f.Close()
    
    	var buf [1 << 10]byte // enough for first CPU
    	n, err := io.ReadFull(f, buf[:])
    	if err != nil && err != io.ErrUnexpectedEOF {
    		return err
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  6. src/internal/trace/summary.go

    			case GoSyscall:
    				s.syscallingP[ev.Proc()] = id
    				s.syscallingG[id] = ev.Proc()
    				g.lastSyscallTime = ev.Time()
    			}
    
    		// Handle procs to detect syscall blocking, which si identifiable as a
    		// proc going idle while the goroutine it was attached to is in a syscall.
    		case ResourceProc:
    			id := st.Resource.Proc()
    			old, new := st.Proc()
    			if old != new && new == ProcIdle {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 20.7K bytes
    - Viewed (0)
  7. src/internal/sysinfo/cpuinfo_linux.go

    // license that can be found in the LICENSE file.
    
    package sysinfo
    
    import (
    	"bufio"
    	"bytes"
    	"io"
    	"os"
    	"strings"
    )
    
    func readLinuxProcCPUInfo(buf []byte) error {
    	f, err := os.Open("/proc/cpuinfo")
    	if err != nil {
    		return err
    	}
    	defer f.Close()
    
    	_, err = io.ReadFull(f, buf)
    	if err != nil && err != io.ErrUnexpectedEOF {
    		return err
    	}
    
    	return nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 18:42:42 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  8. pkg/util/kernel/version.go

    	return getVersion(os.ReadFile)
    }
    
    // getVersion reads os release file from the give readFile function.
    func getVersion(readFile readFileFunc) (*version.Version, error) {
    	kernelVersionFile := "/proc/sys/kernel/osrelease"
    	fileContent, err := readFile(kernelVersionFile)
    	if err != nil {
    		return nil, fmt.Errorf("failed to read os-release file: %s", err.Error())
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 27 19:24:34 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  9. src/runtime/os_linux_arm.go

    	"internal/cpu"
    	"unsafe"
    )
    
    const (
    	_HWCAP_VFP   = 1 << 6  // introduced in at least 2.6.11
    	_HWCAP_VFPv3 = 1 << 13 // introduced in 2.6.30
    )
    
    func vdsoCall()
    
    func checkgoarm() {
    	// On Android, /proc/self/auxv might be unreadable and hwcap won't
    	// reflect the CPU capabilities. Assume that every Android arm device
    	// has the necessary floating point hardware available.
    	if GOOS == "android" {
    		return
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 20:34:30 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  10. src/runtime/debug_test.go

    func skipUnderDebugger(t *testing.T) {
    	pid := syscall.Getpid()
    	status, err := os.ReadFile(fmt.Sprintf("/proc/%d/status", pid))
    	if err != nil {
    		t.Logf("couldn't get proc tracer: %s", err)
    		return
    	}
    	re := regexp.MustCompile(`TracerPid:\s+([0-9]+)`)
    	sub := re.FindSubmatch(status)
    	if sub == nil {
    		t.Logf("couldn't find proc tracer PID")
    		return
    	}
    	if string(sub[1]) == "0" {
    		return
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 15:08:04 UTC 2023
    - 8K bytes
    - Viewed (0)
Back to top