Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 630 for prlimit (0.18 sec)

  1. 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)
  2. 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)
  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. 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)
  5. 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)
  6. src/cmd/go/internal/base/limit.go

    import (
    	"fmt"
    	"internal/godebug"
    	"runtime"
    	"strconv"
    	"sync"
    )
    
    var NetLimitGodebug = godebug.New("#cmdgonetlimit")
    
    // NetLimit returns the limit on concurrent network operations
    // configured by GODEBUG=cmdgonetlimit, if any.
    //
    // A limit of 0 (indicated by 0, true) means that network operations should not
    // be allowed.
    func NetLimit() (int, bool) {
    	netLimitOnce.Do(func() {
    		s := NetLimitGodebug.Value()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 19 02:47:12 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  7. src/syscall/rlimit_darwin.go

    // license that can be found in the LICENSE file.
    
    //go:build darwin
    
    package syscall
    
    // adjustFileLimit adds per-OS limitations on the Rlimit used for RLIMIT_NOFILE. See rlimit.go.
    func adjustFileLimit(lim *Rlimit) {
    	// On older macOS, setrlimit(RLIMIT_NOFILE, lim) with lim.Cur = infinity fails.
    	// Set to the value of kern.maxfilesperproc instead.
    	n, err := SysctlUint32("kern.maxfilesperproc")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 15 17:18:32 UTC 2023
    - 593 bytes
    - Viewed (0)
  8. 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)
  9. pkg/util/rlimit/rlimit_linux.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package rlimit
    
    import (
    	"golang.org/x/sys/unix"
    )
    
    // SetNumFiles sets the linux rlimit for the maximum open files.
    func SetNumFiles(maxOpenFiles uint64) error {
    	return unix.Setrlimit(unix.RLIMIT_NOFILE, &unix.Rlimit{Max: maxOpenFiles, Cur: maxOpenFiles})
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 24 19:47:49 UTC 2021
    - 866 bytes
    - Viewed (0)
  10. pkg/util/rlimit/rlimit_unsupported.go

    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package rlimit
    
    import (
    	"errors"
    )
    
    // SetNumFiles sets the rlimit for the maximum open files.
    func SetNumFiles(maxOpenFiles uint64) error {
    	return errors.New("SetRLimit unsupported in this platform")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 24 19:47:49 UTC 2021
    - 813 bytes
    - Viewed (0)
Back to top