New cgroup v1 CPU Shares to v2 CPU Weight Conversion Formula
8 similar posts
- Kubernetes
- runc
- crun
AI Summary
Kubernetes and OCI transitioned from a linear to a quadratic conversion formula between cgroup v1 CPU shares and cgroup v2 CPU weight. This addresses priority degradation and granularity issues for containerized workloads.
Key Takeaways
- Replaces the old linear formula with a quadratic function passing through key anchor points.
- Improves priority alignment between Kubernetes workloads and host system processes.
- Requires updates in OCI runtimes like runc >= 1.3.2 and crun >= 1.23.
Why it matters
Understanding how container runtimes translate CPU requests to cgroup v2 weights helps infrastructure engineers prevent unexpected performance drops and resource throttling after system upgrades.
Conversation0
What would you add from your experience?
Checking your session…
Every good conversation starts with one perspective.