Skip to content

Conversation

klihub
Copy link
Collaborator

@klihub klihub commented Sep 2, 2025

This PR improves CPU resource allocation for burstable QoS class containers.

Currently CPU burstability is not taken into account when a pool is picked for a container. For containers with high burstability (large CPU limit - CPU request), this can result in an assignment which cannot have any or enough excess CPU capacity for bursting.

This PR changes that behavior. When picking a pool for a burstable QoS class container, take into account the CPU limit, too. For limited burstable containers, prefer pools with enough free capacity for the limit. For unlimited burstable containers, prefer pools with more free capacity left. This means in practice that unlimited containers will typically end up in the root pool, unless affinity, memory types, or topology hints dictate otherwise.

@klihub klihub force-pushed the devel/topology-aware/pick-pool-by-burstable-limit branch from 1752b62 to 97af7d0 Compare September 4, 2025 10:51
When picking a pool for a burstable QoS class container, take
into account the CPU limit, too. For limited containers prefer
pools with enough free capacity for the limit. For unlimited
containers prefer pools with more free capacity left, which
means in practice that such containers will typically end up
in the root pool, unless affinity of topology hints dictate
otherwise.

Signed-off-by: Krisztian Litkey <[email protected]>
Update existing burstable placement test for altered behavior.
Add new test to verify CPU limit based burstable placement of
limited and unlimited burstable containers.

Signed-off-by: Krisztian Litkey <[email protected]>
@klihub klihub force-pushed the devel/topology-aware/pick-pool-by-burstable-limit branch from 97af7d0 to 21943c5 Compare September 5, 2025 06:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant