Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

balloons: add PreferSpreadOnPhysicalCores #126

Merged

Conversation

askervin
Copy link
Collaborator

@askervin askervin commented Oct 6, 2023

  • Enable using different CPU allocators in different balloon types. So far the same CPU allocator was used with the same options for all CPU allocations in the policy.
  • Add new PreferSpreadOnPhysicalCores option to toggle CPU allocations packing or spreading on physical CPU cores. This option is specific to balloon type with a policy level default.
  • Make existing AllocatorTopologyBalancing option specific to balloon type, too.

@askervin askervin force-pushed the 5RG_balloons_preferspreadonphysicalcores branch from 3a2e08a to 83868ec Compare October 9, 2023 12:45
@askervin askervin marked this pull request as ready for review October 9, 2023 12:45
@klihub
Copy link
Collaborator

klihub commented Oct 13, 2023

@askervin Please add the missing sign-offs ?

@askervin askervin force-pushed the 5RG_balloons_preferspreadonphysicalcores branch from 83868ec to 1acfe02 Compare October 13, 2023 08:11
@klihub
Copy link
Collaborator

klihub commented Oct 13, 2023

@askervin Thats 1 out of 2 ;-) If you could fix the other commit, too ?

- Enable using different CPU allocators in different balloon types. So
  far the same CPU allocator was used with the same options for all
  CPU allocations in the policy.
- Add new PreferSpreadOnPhysicalCores option to toggle CPU allocations
  packing or spreading on physical CPU cores. This option is specific
  to balloon type with a policy level default.
- Make existing AllocatorTopologyBalancing option specific to balloon
  type, too.

Signed-off-by: Antti Kervinen <[email protected]>
The goal of this patch is to use the same e2e test numbers in
nri-resource-policy and cri-resource-manager e2e tests for the
balloons policy. This makes it easier to keep e2e tests in sync when
porting policy features between these projects. Now test[01]* are
common e2e tests for both projects, and test2* are nri-policy-specific
e2e tests.

Signed-off-by: Antti Kervinen <[email protected]>
@askervin askervin force-pushed the 5RG_balloons_preferspreadonphysicalcores branch from 1acfe02 to 7c72019 Compare October 16, 2023 09:17
@askervin
Copy link
Collaborator Author

@askervin Thats 1 out of 2 ;-) If you could fix the other commit, too ?

Uh-oh. Luckily this monkey doesn't need to type all the Shakespeare. That would take longer. Thanks @klihub!

@klihub klihub merged commit 9005f82 into containers:main Oct 17, 2023
2 checks passed
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.

2 participants