Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 452 for prlimit (0.17 sec)

  1. pkg/kubelet/stats/pidlimit/pidlimit_linux.go

    		rlimit.MaxPID = &taskMax
    	}
    
    	// 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)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Sep 17 09:24:29 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/sys/unix/syscall_zos_s390x.go

    //sys	Pwrite(fd int, p []byte, offset int64) (n int, err error)
    //sys	Prctl(option int, arg2 uintptr, arg3 uintptr, arg4 uintptr, arg5 uintptr) (err error) = SYS___PRCTL_A
    //sysnb	Prlimit(pid int, resource int, newlimit *Rlimit, old *Rlimit) (err error) = SYS_PRLIMIT
    //sys	Rename(from string, to string) (err error) = SYS___RENAME_A
    //sys	Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error) = SYS___RENAMEAT_A
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 84.4K bytes
    - Viewed (0)
  3. clause/limit.go

    // Limit limit clause
    type Limit struct {
    	Limit  *int
    	Offset int
    }
    
    // Name where clause name
    func (limit Limit) Name() string {
    	return "LIMIT"
    }
    
    // Build build where clause
    func (limit Limit) Build(builder Builder) {
    	if limit.Limit != nil && *limit.Limit >= 0 {
    		builder.WriteString("LIMIT ")
    		builder.AddVar(builder, *limit.Limit)
    	}
    	if limit.Offset > 0 {
    		if limit.Limit != nil && *limit.Limit >= 0 {
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Tue Feb 06 02:54:40 UTC 2024
    - 942 bytes
    - Viewed (0)
  4. samples/ratelimit/local-rate-limit-service.yaml

    # This example shows how to use Istio local rate limiting with descriptors to limit by path. 
    # This uses the base book-info demo and adds rate limiting by path, specifically rate limiting the product page
    # to 10 requests per minute, and the overall fdqn will be able to accept 100 requests per minute. 
    apiVersion: networking.istio.io/v1alpha3
    kind: EnvoyFilter
    metadata:
      name: filter-local-ratelimit-svc
      namespace: istio-system
    spec:
      workloadSelector:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Aug 31 08:22:09 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  5. src/syscall/rlimit_stub.go

    // license that can be found in the LICENSE file.
    
    //go:build unix && !darwin
    
    package syscall
    
    // adjustFileLimit adds per-OS limitations on the Rlimit used for RLIMIT_NOFILE. See rlimit.go.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 02 21:22:57 UTC 2023
    - 338 bytes
    - Viewed (0)
  6. src/runtime/runtime-gdb_unix_test.go

    	debug.SetTraceback("crash")
    
    	var lim syscall.Rlimit
    	err := syscall.Getrlimit(syscall.RLIMIT_CORE, &lim)
    	if err != nil {
    		panic(fmt.Sprintf("error getting rlimit: %v", err))
    	}
    	lim.Cur = lim.Max
    	fmt.Fprintf(os.Stderr, "Setting RLIMIT_CORE = %+#v\n", lim)
    	err = syscall.Setrlimit(syscall.RLIMIT_CORE, &lim)
    	if err != nil {
    		panic(fmt.Sprintf("error setting rlimit: %v", err))
    	}
    }
    
    func main() {
    	flag.Parse()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 17 19:05:30 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  7. src/syscall/export_rlimit_test.go

    // license that can be found in the LICENSE file.
    
    //go:build unix
    
    package syscall
    
    import "sync/atomic"
    
    func OrigRlimitNofile() *Rlimit {
    	return origRlimitNofile.Load()
    }
    
    func GetInternalOrigRlimitNofile() *atomic.Pointer[Rlimit] {
    	return &origRlimitNofile
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 21:18:19 UTC 2024
    - 374 bytes
    - Viewed (0)
  8. src/syscall/rlimit_test.go

    	// For open file count,
    	// macOS sets the default soft limit to 256 and no hard limit.
    	// CentOS and Fedora set the default soft limit to 1024,
    	// with hard limits of 4096 and 524288, respectively.
    	// Check that we can open 1200 files, which proves
    	// that the rlimit is being raised appropriately on those systems.
    	fileCount := 1200
    
    	// OpenBSD has a default soft limit of 512 and hard limit of 1024.
    	if runtime.GOOS == "openbsd" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 02 21:22:57 UTC 2023
    - 953 bytes
    - Viewed (0)
  9. pkg/kubelet/server/stats/summary.go

    	} else {
    		podStats, err = sp.provider.ListPodStats(ctx)
    	}
    	if err != nil {
    		return nil, fmt.Errorf("failed to list pod stats: %v", err)
    	}
    
    	rlimit, err := sp.provider.RlimitStats()
    	if err != nil {
    		return nil, fmt.Errorf("failed to get rlimit stats: %v", err)
    	}
    
    	nodeStats := statsapi.NodeStats{
    		NodeName:         node.Name,
    		CPU:              rootStats.CPU,
    		Memory:           rootStats.Memory,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 01 18:46:33 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  10. pkg/kubelet/kuberuntime/kuberuntime_container_windows.go

    			memLimit = resource.NewQuantity(runtimeStatusResources.MemoryLimitInBytes, resource.BinarySI)
    		}
    
    		if cpuLimit != nil || memLimit != nil {
    			cStatusResources = &kubecontainer.ContainerResources{
    				CPULimit:    cpuLimit,
    				MemoryLimit: memLimit,
    			}
    		}
    	}
    	return cStatusResources
    }
    
    func toKubeContainerUser(statusUser *runtimeapi.ContainerUser) *kubecontainer.ContainerUser {
    	return nil
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 8K bytes
    - Viewed (0)
Back to top