Developer Signal Kubernetes high Trusted Signal Verified Source

New Conversion from cgroup v1 CPU Shares to v2 CPU Weight

I'm excited to announce the implementation of an improved conversion formula from cgroup v1 CPU shares to cgroup v2 CPU weight. This enhancement addresses critical issues with CPU priority allocation for Kubernetes workloads when running on systems with cgroup v2. BackgroundKubernetes was originally designed with cgroup v1 in mind, where CPU shares were derived from a container's CPU requests using the following formula: $$cpu.shares = milliCPU \times \frac{1024}{1000}$$Note that the value 1024 in this formula is the default cpu.shares value in cgroup v1, and is unrelated to millicores. For example, a container requesting 1 CPU (1000m) would get (cpu.shares = 1000 \times 1024 / 1000 = 1024), and a container requesting 100m would get (cpu.shares = 100 \times 1024 / 1000 = 102). After a whil

Source: Kubernetes

Kubernetes@kubernetesio Jan 30, 2026Published 16:00 UTCSignal Time 78Trust Score
K8s Kubernetes kubernetes.io

I'm excited to announce the implementation of an improved conversion formula from cgroup v1 CPU shares to cgroup v2 CPU weight. This enhancement addresses critical issues with CPU priority allocation for Kubernetes workloads when running on systems with cgroup v2. BackgroundKubernetes was originally designed with cgroup v1 in mind, where CPU shares were derived from a container's CPU requests using the following formula: $$cpu.shares = milliCPU \times \frac{1024}{1000}$$Note that the value 1024 in this formula is the default cpu.shares value in cgroup v1, and is unrelated to millicores. For example, a container requesting 1 CPU (1000m) would get (cpu.shares = 1000 \times 1024 / 1000 = 1024), and a container requesting 100m would get (cpu.shares = 100 \times 1024 / 1000 = 102). After a whil

This Coalition transmission preserves metadata, trust context, and source routing for a Developer Signal item from Kubernetes. The complete article remains with the original publisher.

Content handling is marked as Metadata Only. Use the source article link for the full report, updates, corrections, and publisher-controlled context.

Key Points

  • Published by Kubernetes.
  • Categorized as Developer Signal.
  • Source handling: Verified Source.
  • Rights posture: Metadata Only.
  • Follow the source article for the complete original report.
Source Article New Conversion from cgroup v1 CPU Shares to v2 CPU Weight kubernetes.io