Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 46 for prlimit (0.32 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/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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. android/guava-tests/test/com/google/common/collect/IteratorsTest.java

        assertEquals(list, newArrayList(Iterators.limit(list.iterator(), 2)));
    
        list.add("pants");
        assertFalse(Iterators.limit(list.iterator(), 0).hasNext());
        assertEquals(ImmutableList.of("cool"), newArrayList(Iterators.limit(list.iterator(), 1)));
        assertEquals(list, newArrayList(Iterators.limit(list.iterator(), 2)));
        assertEquals(list, newArrayList(Iterators.limit(list.iterator(), 3)));
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 03 13:01:51 UTC 2024
    - 55.7K bytes
    - Viewed (0)
  10. cmd/kubelet/app/server.go

    	if kubeDeps.PodConfig == nil {
    		return fmt.Errorf("failed to create kubelet, pod source config was nil")
    	}
    	podCfg := kubeDeps.PodConfig
    
    	if err := rlimit.SetNumFiles(uint64(kubeServer.MaxOpenFiles)); err != nil {
    		klog.ErrorS(err, "Failed to set rlimit on max file handles")
    	}
    
    	// process pods and exit.
    	if runOnce {
    		if _, err := k.RunOnce(podCfg.Updates()); err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 00:05:34 UTC 2024
    - 53.9K bytes
    - Viewed (0)
Back to top