Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for cfs_period_us (0.43 sec)

  1. pkg/kubelet/cm/helpers_linux.go

    // Input parameters and resulting value is number of microseconds.
    func MilliCPUToQuota(milliCPU int64, period int64) (quota int64) {
    	// CFS quota is measured in two values:
    	//  - cfs_period_us=100ms (the amount of time to measure usage across given by period)
    	//  - cfs_quota=20ms (the amount of cpu time allowed to be used across a period)
    	// so in the above example, you are limited to 20% of a single CPU
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jul 14 11:52:28 UTC 2023
    - 9.8K bytes
    - Viewed (0)
  2. pkg/kubelet/cm/pod_container_manager_linux.go

    	cgroupManager CgroupManager
    	// Maximum number of pids in a pod
    	podPidsLimit int64
    	// enforceCPULimits controls whether cfs quota is enforced or not
    	enforceCPULimits bool
    	// cpuCFSQuotaPeriod is the cfs period value, cfs_period_us, setting per
    	// node for all containers in usec
    	cpuCFSQuotaPeriod uint64
    }
    
    // Make sure that podContainerManagerImpl implements the PodContainerManager interface
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 14 16:38:36 UTC 2023
    - 12.5K bytes
    - Viewed (0)
  3. pkg/kubelet/cm/cgroup_manager_linux.go

    	if errInt != nil {
    		return nil, fmt.Errorf("failed to convert CPU quota as integer for cgroup %v: %v", cgroupPath, errInt)
    	}
    	cpuPeriod, errP := fscommon.GetCgroupParamUint(cgroupPath, "cpu.cfs_period_us")
    	if errP != nil {
    		return nil, fmt.Errorf("failed to read CPU period for cgroup %v: %v", cgroupPath, errP)
    	}
    	cpuShares, errS := fscommon.GetCgroupParamUint(cgroupPath, "cpu.shares")
    	if errS != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 27 13:02:15 UTC 2023
    - 26.5K bytes
    - Viewed (0)
  4. pkg/kubelet/cm/container_manager_linux.go

    	// CPU cgroup is required and so it expected to be mounted at this point.
    	periodExists, err := utilpath.Exists(utilpath.CheckFollowSymlink, path.Join(cpuMountPoint, "cpu.cfs_period_us"))
    	if err != nil {
    		klog.ErrorS(err, "Failed to detect if CPU cgroup cpu.cfs_period_us is available")
    	}
    	quotaExists, err := utilpath.Exists(utilpath.CheckFollowSymlink, path.Join(cpuMountPoint, "cpu.cfs_quota_us"))
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 21 10:18:16 UTC 2024
    - 35.1K bytes
    - Viewed (0)
  5. pkg/kubelet/apis/config/types.go

    	RunOnce bool
    	// cpuCFSQuota enables CPU CFS quota enforcement for containers that
    	// specify CPU limits
    	CPUCFSQuota bool
    	// CPUCFSQuotaPeriod sets the CPU CFS quota period value, cpu.cfs_period_us, defaults to 100ms
    	CPUCFSQuotaPeriod metav1.Duration
    	// maxOpenFiles is Number of files that can be opened by Kubelet process.
    	MaxOpenFiles int64
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 05 21:10:42 UTC 2024
    - 35.1K bytes
    - Viewed (0)
  6. cmd/kubelet/app/options/options.go

    	fs.DurationVar(&c.CPUCFSQuotaPeriod.Duration, "cpu-cfs-quota-period", c.CPUCFSQuotaPeriod.Duration, "Sets CPU CFS quota period value, cpu.cfs_period_us, defaults to Linux Kernel default")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 07:00:05 UTC 2024
    - 41.6K bytes
    - Viewed (0)
Back to top