Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 266 for nproc (0.04 sec)

  1. internal/mountinfo/mountinfo_linux.go

    import (
    	"bufio"
    	"fmt"
    	"io"
    	"os"
    	"path/filepath"
    	"strconv"
    	"strings"
    	"syscall"
    )
    
    const (
    	// Number of fields per line in /proc/mounts as per the fstab man page.
    	expectedNumFieldsPerLine = 6
    	// Location of the mount file to use
    	procMountsPath = "/proc/mounts"
    )
    
    // IsLikelyMountPoint determines if a directory is a mountpoint.
    func IsLikelyMountPoint(path string) bool {
    	s1, err := os.Lstat(path)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sun Jan 02 17:15:06 UTC 2022
    - 4.7K bytes
    - Viewed (0)
  2. src/runtime/fds_test.go

    		if strings.HasPrefix(e, "GODEBUG=") || strings.HasPrefix(e, "GOTRACEBACK=") {
    			continue
    		}
    		env = append(env, e)
    	}
    
    	proc, err := os.StartProcess(fdsBin, []string{fdsBin}, &os.ProcAttr{
    		Env:   env,
    		Files: []*os.File{},
    	})
    	if err != nil {
    		t.Fatal(err)
    	}
    	ps, err := proc.Wait()
    	if err != nil {
    		t.Fatal(err)
    	}
    	if ps.ExitCode() != 0 {
    		t.Fatalf("testfds failed: %d", ps.ExitCode())
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jul 25 16:33:33 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  3. src/vendor/golang.org/x/sys/cpu/hwcap_linux.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package cpu
    
    import (
    	"os"
    )
    
    const (
    	_AT_HWCAP  = 16
    	_AT_HWCAP2 = 26
    
    	procAuxv = "/proc/self/auxv"
    
    	uintSize = int(32 << (^uint(0) >> 63))
    )
    
    // For those platforms don't have a 'cpuid' equivalent we use HWCAP/HWCAP2
    // These are initialized in cpu_$GOARCH.go
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 10 16:32:44 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  4. src/internal/trace/testdata/generators/go122-syscall-steal-proc-gen-boundary-reacquire-new-proc-bare-m.go

    Michael Anthony Knyszek <******@****.***> 1716583527 +0000
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 21:15:28 UTC 2024
    - 1009 bytes
    - Viewed (0)
  5. test/fixedbugs/bug286.go

    test2 called g
    panic: wrong method called
    
    panic PC=0x24e040
    runtime.panic+0x7c /home/gri/go1/src/pkg/runtime/proc.c:1012
    	runtime.panic(0x0, 0x24e0a0)
    main.main+0xef /home/gri/go1/test/bugs/bug286.go:76
    	main.main()
    mainstart+0xf /home/gri/go1/src/pkg/runtime/amd64/asm.s:60
    	mainstart()
    goexit /home/gri/go1/src/pkg/runtime/proc.c:145
    	goexit()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 1.5K bytes
    - Viewed (0)
  6. src/internal/trace/testdata/generators/go122-syscall-steal-proc-self.go

    Michael Anthony Knyszek <******@****.***> 1716583527 +0000
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 21:15:28 UTC 2024
    - 1K bytes
    - Viewed (0)
  7. src/internal/trace/testdata/tests/go122-syscall-steal-proc-gen-boundary-reacquire-new-proc-bare-m.test

    Carlos Amedee <******@****.***> 1715265901 -0400
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 493 bytes
    - Viewed (0)
  8. test/fixedbugs/issue10607a.go

    package main
    
    import (
    	"bytes"
    	"debug/elf"
    	"fmt"
    	"os"
    )
    
    func main() {
    	f, err := elf.Open("/proc/self/exe")
    	if err != nil {
    		if os.IsNotExist(err) {
    			return
    		}
    		fmt.Fprintln(os.Stderr, "opening /proc/self/exe:", err)
    		os.Exit(1)
    	}
    
    	c := 0
    	fail := false
    	for i, s := range f.Sections {
    		if s.Type != elf.SHT_NOTE {
    			continue
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 07 14:00:27 UTC 2017
    - 1.6K bytes
    - Viewed (0)
  9. pkg/util/oom/oom_linux.go

    	return oomAdjuster
    }
    
    func getPids(cgroupName string) ([]int, error) {
    	return cmutil.GetPids(filepath.Join("/", cgroupName))
    }
    
    // Writes 'value' to /proc/<pid>/oom_score_adj. PID = 0 means self
    // Returns os.ErrNotExist if the `pid` does not exist.
    func applyOOMScoreAdj(pid int, oomScoreAdj int) error {
    	if pid < 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Oct 20 07:13:28 UTC 2022
    - 4K bytes
    - Viewed (0)
  10. src/os/exec_unix_test.go

    	if err != nil {
    		t.Skipf("starting test process: %v", err)
    	}
    	defer p.Kill()
    
    	proc, err := FindProcess(p.Pid)
    	if err != nil {
    		t.Errorf("OS reported error for running process: %v", err)
    	}
    	err = proc.Signal(syscall.Signal(0))
    	if err != nil {
    		t.Errorf("OS reported error for running process: %v", err)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 18:08:44 UTC 2024
    - 2K bytes
    - Viewed (0)
Back to top