Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 179 for proc (0.15 sec)

  1. pkg/kubelet/kuberuntime/kuberuntime_container_linux.go

    			// memory.swap.max does not exist in the cgroup root, so we check /sys/fs/cgroup/<SELF>/memory.swap.max
    			_, unified, err := cgroups.ParseCgroupFileUnified("/proc/self/cgroup")
    			if err != nil {
    				klog.V(5).ErrorS(fmt.Errorf("failed to parse /proc/self/cgroup: %w", err), warn)
    				return
    			}
    			p = filepath.Join("/sys/fs/cgroup", unified, "memory.swap.max")
    		}
    		if _, err := os.Stat(p); err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  2. src/syscall/syscall_linux_test.go

    	expected := filter + expect
    	pid := syscall.Getpid()
    	fs, err := os.ReadDir(fmt.Sprintf("/proc/%d/task", pid))
    	if err != nil {
    		return fmt.Errorf("unable to find %d tasks: %v", pid, err)
    	}
    	expectedProc := fmt.Sprintf("Pid:\t%d", pid)
    	foundAThread := false
    	for _, f := range fs {
    		tf := fmt.Sprintf("/proc/%s/status", f.Name())
    		d, err := os.ReadFile(tf)
    		if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 23K bytes
    - Viewed (0)
  3. src/runtime/runtime2.go

    	pidle        puintptr // idle p's
    	npidle       atomic.Int32
    	nmspinning   atomic.Int32  // See "Worker thread parking/unparking" comment in proc.go.
    	needspinning atomic.Uint32 // See "Delicate dance" comment in proc.go. Boolean. Must hold sched.lock to set to 1.
    
    	// Global runnable queue.
    	runq     gQueue
    	runqsize int32
    
    	// disable controls selective disabling of the scheduler.
    	//
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:57:37 UTC 2024
    - 47.9K bytes
    - Viewed (0)
  4. cmd/kubeadm/app/preflight/checks.go

    func (poc PortOpenCheck) Name() string {
    	if poc.label != "" {
    		return poc.label
    	}
    	return fmt.Sprintf("Port-%d", poc.port)
    }
    
    // Check validates if the particular port is available.
    func (poc PortOpenCheck) Check() (warnings, errorList []error) {
    	klog.V(1).Infof("validating availability of port %d", poc.port)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 03 11:20:55 UTC 2024
    - 39.5K bytes
    - Viewed (0)
  5. src/runtime/os_linux.go

    		return
    	}
    	// In some situations we don't get a loader-provided
    	// auxv, such as when loaded as a library on Android.
    	// Fall back to /proc/self/auxv.
    	fd := open(&procAuxv[0], 0 /* O_RDONLY */, 0)
    	if fd < 0 {
    		// On Android, /proc/self/auxv might be unreadable (issue 9229), so we fallback to
    		// try using mincore to detect the physical page size.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 25.9K bytes
    - Viewed (0)
  6. src/cmd/vendor/github.com/google/pprof/internal/report/source.go

    				return path[found+len(want):]
    			}
    		}
    	}
    	// Trim configured trim prefixes.
    	trimPaths := append(filepath.SplitList(filepath.ToSlash(trimPath)), "/proc/self/cwd/./", "/proc/self/cwd/")
    	for _, trimPath := range trimPaths {
    		if !strings.HasSuffix(trimPath, "/") {
    			trimPath += "/"
    		}
    		if strings.HasPrefix(sPath, trimPath) {
    			return path[len(trimPath):]
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 31.3K bytes
    - Viewed (0)
  7. src/internal/poll/fd_windows.go

    }
    
    func DupCloseOnExec(fd int) (int, string, error) {
    	proc, err := syscall.GetCurrentProcess()
    	if err != nil {
    		return 0, "GetCurrentProcess", err
    	}
    
    	var nfd syscall.Handle
    	const inherit = false // analogous to CLOEXEC
    	if err := syscall.DuplicateHandle(proc, syscall.Handle(fd), proc, &nfd, 0, inherit, syscall.DUPLICATE_SAME_ACCESS); err != nil {
    		return 0, "DuplicateHandle", err
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 31 16:50:42 UTC 2024
    - 34.1K bytes
    - Viewed (0)
  8. src/runtime/os_plan9.go

    	for mp := (*m)(atomic.Loadp(unsafe.Pointer(&allm))); mp != nil; mp = mp.alllink {
    		if mp.procid != 0 && mp.procid != pid {
    			postnote(mp.procid, buf[:])
    		}
    	}
    	getg().m.locks--
    }
    
    var procdir = []byte("/proc/")
    var notefile = []byte("/note\x00")
    
    func postnote(pid uint64, msg []byte) int {
    	var buf [128]byte
    	var tmp [32]byte
    	n := copy(buf[:], procdir)
    	n += copy(buf[n:], itoa(tmp[:], pid))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 15:41:45 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  9. src/vendor/golang.org/x/sys/cpu/cpu.go

    	"os"
    	"strings"
    )
    
    // Initialized reports whether the CPU features were initialized.
    //
    // For some GOOS/GOARCH combinations initialization of the CPU features depends
    // on reading an operating specific file, e.g. /proc/self/auxv on linux/arm
    // Initialized will report false if reading the file fails.
    var Initialized bool
    
    // CacheLinePad is used to pad structs to avoid false sharing.
    type CacheLinePad struct{ _ [cacheLineSize]byte }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  10. hack/lib/golang.sh

    kube::golang::get_physmem() {
      local mem
    
      # Linux kernel version >=3.14, in kb
      if mem=$(grep MemAvailable /proc/meminfo | awk '{ print $2 }'); then
        echo $(( mem / 1048576 ))
        return
      fi
    
      # Linux, in kb
      if mem=$(grep MemTotal /proc/meminfo | awk '{ print $2 }'); then
        echo $(( mem / 1048576 ))
        return
      fi
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jun 01 16:43:08 UTC 2024
    - 32.8K bytes
    - Viewed (0)
Back to top