- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for GetCgroupParamString (0.14 sec)
-
pkg/kubelet/cm/cgroup_manager_linux.go
func CpuWeightToCpuShares(cpuWeight uint64) uint64 { 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)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Sep 27 13:02:15 UTC 2023 - 26.5K bytes - Viewed (0)