Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 66 for prlimit (0.13 sec)

  1. src/cmd/vendor/golang.org/x/sys/unix/syscall_linux.go

    //go:linkname syscall_prlimit syscall.prlimit
    func syscall_prlimit(pid, resource int, newlimit, old *syscall.Rlimit) error
    
    func Prlimit(pid, resource int, newlimit, old *Rlimit) error {
    	// Just call the syscall version, because as of Go 1.21
    	// it will affect starting a new process.
    	return syscall_prlimit(pid, resource, (*syscall.Rlimit)(newlimit), (*syscall.Rlimit)(old))
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 05:26:45 UTC 2024
    - 77.5K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/sys/unix/zsyscall_zos_s390x.go

    func enter_Prlimit(pid int, resource int, newlimit *Rlimit, old *Rlimit) (err error) {
    	funcref := get_PrlimitAddr()
    	if funcptrtest(GetZosLibVec()+SYS_PRLIMIT<<4, "") == 0 {
    		*funcref = impl_Prlimit
    	} else {
    		*funcref = error_Prlimit
    	}
    	return (*funcref)(pid, resource, newlimit, old)
    }
    
    func error_Prlimit(pid int, resource int, newlimit *Rlimit, old *Rlimit) (err error) {
    	err = ENOSYS
    	return
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 88.2K bytes
    - Viewed (0)
  3. 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)
  4. pkg/kubelet/eviction/helpers.go

    				}
    			}
    		}
    	}
    	if rlimit := summary.Node.Rlimit; rlimit != nil {
    		if rlimit.NumOfRunningProcesses != nil && rlimit.MaxPID != nil {
    			available := int64(*rlimit.MaxPID) - int64(*rlimit.NumOfRunningProcesses)
    			result[evictionapi.SignalPIDAvailable] = signalObservation{
    				available: resource.NewQuantity(available, resource.DecimalSI),
    				capacity:  resource.NewQuantity(int64(*rlimit.MaxPID), resource.DecimalSI),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 01 18:46:33 UTC 2023
    - 53.6K bytes
    - Viewed (0)
  5. pkg/kubelet/kuberuntime/kuberuntime_manager.go

    		// If updating memory limit, use most recently configured CPU request and limit values.
    		// If updating CPU request and limit, use most recently configured memory request and limit values.
    		switch resourceName {
    		case v1.ResourceMemory:
    			container.Resources.Limits = v1.ResourceList{
    				v1.ResourceCPU:    *resource.NewMilliQuantity(cInfo.currentContainerResources.cpuLimit, resource.DecimalSI),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 22 02:01:31 UTC 2024
    - 64.7K bytes
    - Viewed (0)
  6. pkg/kubelet/kuberuntime/kuberuntime_manager_test.go

    								kubeContainerID: kcs.ID,
    								desiredContainerResources: containerResources{
    									memoryLimit: mem100M.Value(),
    									cpuLimit:    cpu100m.MilliValue(),
    								},
    								currentContainerResources: &containerResources{
    									memoryLimit: mem200M.Value(),
    									cpuLimit:    cpu200m.MilliValue(),
    								},
    							},
    						},
    						v1.ResourceCPU: {
    							{
    								apiContainerIdx: 1,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 96K bytes
    - Viewed (0)
  7. src/runtime/mbitmap.go

    		}
    
    		// Check if we've exceeded the limit with the last update.
    		if tp.addr >= limit {
    			return typePointers{}, 0
    		}
    
    		// Grab more bits and try again.
    		tp.mask = readUintptr(addb(tp.typ.GCData, (tp.addr-tp.elem)/goarch.PtrSize/8))
    		if tp.addr+goarch.PtrSize*ptrBits > limit {
    			bits := (tp.addr + goarch.PtrSize*ptrBits - limit) / goarch.PtrSize
    			tp.mask &^= ((1 << (bits)) - 1) << (ptrBits - bits)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:18:55 UTC 2024
    - 60K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ssa/prove.go

    	p pair
    	r relation
    }
    
    // a limit records known upper and lower bounds for a value.
    type limit struct {
    	min, max   int64  // min <= value <= max, signed
    	umin, umax uint64 // umin <= value <= umax, unsigned
    }
    
    func (l limit) String() string {
    	return fmt.Sprintf("sm,SM,um,UM=%d,%d,%d,%d", l.min, l.max, l.umin, l.umax)
    }
    
    func (l limit) intersect(l2 limit) limit {
    	if l.min < l2.min {
    		l.min = l2.min
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:30:21 UTC 2024
    - 48.9K bytes
    - Viewed (0)
  9. src/runtime/mgcscavenge.go

    	// reduceExtraPercent represents the amount of memory under the limit
    	// that the scavenger should target. For example, 5 means we target 95%
    	// of the limit.
    	//
    	// The purpose of shooting lower than the limit is to ensure that, once
    	// close to the limit, the scavenger is working hard to maintain it. If
    	// we have a memory limit set but are far away from it, there's no harm
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:48:45 UTC 2024
    - 52.3K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/server/filters/priority-and-fairness_test.go

    			reqWaitLimitExpected:  5 * time.Second, // from now
    		},
    		{
    			name: "context has a deadline, wait limit should not exceed the hard limit of 1m",
    			parent: func(now time.Time) (context.Context, context.CancelFunc) {
    				// let 1/4th of the remaining deadline exceed the hard limit
    				return context.WithDeadline(context.Background(), now.Add(8*time.Minute))
    			},
    			newReqWaitCtxExpected: true,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 12:18:40 UTC 2023
    - 52.6K bytes
    - Viewed (0)
Back to top