Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 630 for prlimit (0.38 sec)

  1. 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)
  2. 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)
  3. 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)
  4. cluster/gce/addons/limit-range/limit-range.yaml

    Antoine Pelisse <******@****.***> 1581019688 -0800
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 06 20:10:12 UTC 2020
    - 226 bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. pkg/kubelet/kuberuntime/kuberuntime_container_windows_test.go

    	tests := []struct {
    		name     string
    		cpuLimit resource.Quantity
    		cpuCount int64
    		want     int64
    	}{
    		{
    			name:     "max range when same amount",
    			cpuLimit: resource.MustParse("1"),
    			cpuCount: 1,
    			want:     10000,
    		},
    		{
    			name:     "percentage calculation is working as intended",
    			cpuLimit: resource.MustParse("94"),
    			cpuCount: 96,
    			want:     9791,
    		},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 14:24:16 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  8. samples/ratelimit/rate-limit-service.yaml

    ##################################################################################################
    # Redis service and deployment
    # Ratelimit service and deployment
    
    # Note: a configmap is needed to make the rate limit deployment work properly, for example:
    #
    #  apiVersion: v1
    #  kind: ConfigMap
    #  metadata:
    #    name: ratelimit-config
    #  data:
    #    config.yaml: |
    #      domain: echo-ratelimit
    #      descriptors:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 28 17:35:19 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  9. pkg/kubelet/kubelet_resources_test.go

    		}
    	}
    }
    
    func getPod(cpuLimit, memoryLimit string) *v1.Pod {
    	resources := v1.ResourceRequirements{}
    	if cpuLimit != "" || memoryLimit != "" {
    		resources.Limits = make(v1.ResourceList)
    	}
    	if cpuLimit != "" {
    		resources.Limits[v1.ResourceCPU] = resource.MustParse(cpuLimit)
    	}
    	if memoryLimit != "" {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Oct 24 14:46:59 UTC 2019
    - 2.4K bytes
    - Viewed (0)
  10. src/compress/flate/testdata/huffman-rand-limit.golden

    Klaus Post <******@****.***> 1457448890 +0100
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 11 17:40:52 UTC 2016
    - 252 bytes
    - Viewed (0)
Back to top