website icon indicating copy to clipboard operation
website copied to clipboard

Document the meaning of CPU requests & limits

Open tallclair opened this issue 9 months ago • 1 comments

https://kubernetes.io/docs/tasks/configure-pod-container/assign-cpu-resource/ (or another page linked from there) should go into more detail on how CPU requests & limits actually work.

Specifically, on linux:

  • Requests are translated to shares (cgroups v1) or weight (cgroups v2), and a brief overview of how the linux scheduler uses those
  • Limits are translated to quota with a hardcoded period of 100ms, and a brief overview of how throttling works (in my experience, this is often misunderstood)

It would also be good to cover how windows handles these.

/sig node

tallclair avatar Mar 29 '25 00:03 tallclair

/triage accepted

lmktfy avatar Apr 29 '25 16:04 lmktfy

/assign @pegasas

pegasas avatar May 03 '25 08:05 pegasas