FlareStart
HomeNewsHow ToSources
FlareStart

Where developers start their day. All the tech news & tutorials that matter, in one place.

Quick Links

  • Home
  • News
  • Tutorials
  • Sources

Connect

© 2026 FlareStart. All rights reserved.

Back to articles
New Conversion from cgroup v1 CPU Shares to v2 CPU Weight
NewsDevOps

New Conversion from cgroup v1 CPU Shares to v2 CPU Weight

via Kubernetes Blog2w ago

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. Background Kubernetes was originally designed with cgroup v1 in mind, where CPU shares were defined simply by assigning the container's CPU requests in millicpu form. For example, a container requesting 1 CPU (1024m) would get (cpu.shares = 1024). After a while, cgroup v1 started being replaced by its successor, cgroup v2. In cgroup v2, the concept of CPU shares (which ranges from 2 to 262144, or from 2¹ to 2¹⁸) was replaced with CPU weight (which ranges from [1, 10000], or 10⁰ to 10⁴). With the transition to cgroup v2, KEP-2254 introduced a conversion formula to map cgroup v1 CPU shares to cgroup v2 CPU weight. The conversion formula was defined as: cpu.weight = (1 + ((cpu.shares - 2) * 9999) / 262142) This formula linearly

Continue reading on Kubernetes Blog

Opens in a new tab

Read Full Article
1 views

Related Articles

7 Production Lessons From Shipping Temporal (What We Got Wrong First)
News

7 Production Lessons From Shipping Temporal (What We Got Wrong First)

Medium Programming • 11h ago

Why Logging Matters More Than Metrics
News

Why Logging Matters More Than Metrics

Medium Programming • 12h ago

Remove Element
News

Remove Element

Medium Programming • 12h ago

News

The Programming Language That Will Matter Most in the Future Isn’t the One You Expect

Medium Programming • 12h ago

Top 10 Most Famous & Influential Personalities of Chitral (SEO Friendly List)
1.
News

Top 10 Most Famous & Influential Personalities of Chitral (SEO Friendly List) 1.

Medium Programming • 12h ago

Discover More Articles