- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for cfs_quota_us (0.31 sec)
-
pkg/kubelet/kuberuntime/helpers_linux.go
milliCPU := int64(0) if shares >= int64(cm.MinShares) { milliCPU = int64(math.Ceil(float64(shares*milliCPUToCPU) / float64(cm.SharesPerCPU))) } return milliCPU } // quotaToMilliCPU converts cpu.cfs_quota_us and cpu.cfs_period_us to milli-CPU value func quotaToMilliCPU(quota int64, period int64) int64 { if quota == -1 { return int64(0) } return (quota * milliCPUToCPU) / period
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Feb 24 18:21:21 UTC 2023 - 2.5K bytes - Viewed (0) -
pkg/kubelet/cm/container_manager_linux_test.go
req.NoError(err) defer os.RemoveAll(tempDir) req.NoError(os.WriteFile(path.Join(tempDir, "cpu.cfs_period_us"), []byte("0"), os.ModePerm)) req.NoError(os.WriteFile(path.Join(tempDir, "cpu.cfs_quota_us"), []byte("0"), os.ModePerm)) mountInt := mount.NewFakeMounter( []mount.MountPoint{ { Device: "cgroup", Type: "cgroup", Opts: []string{"rw", "relatime", "cpuset"}, }, {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 07 08:12:16 UTC 2024 - 9.7K bytes - Viewed (0) -
pkg/kubelet/cm/cgroup_manager_linux.go
return uint64((((cpuWeight - 1) * 262142) / 9999) + 2) } func getCgroupv1CpuConfig(cgroupPath string) (*ResourceConfig, error) { cpuQuotaStr, errQ := fscommon.GetCgroupParamString(cgroupPath, "cpu.cfs_quota_us") if errQ != nil { return nil, fmt.Errorf("failed to read CPU quota for cgroup %v: %v", cgroupPath, errQ) } cpuQuota, errInt := strconv.ParseInt(cpuQuotaStr, 10, 64) if errInt != 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) -
pkg/kubelet/cm/container_manager_linux.go
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 { klog.ErrorS(err, "Failed to detect if CPU cgroup cpu.cfs_quota_us is available") } if quotaExists && periodExists { f.cpuHardcapping = true } return f, nil } // TODO(vmarmol): Add limits to the system containers.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 21 10:18:16 UTC 2024 - 35.1K bytes - Viewed (0)