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

Add preferCloseToDevices balloon type option #203

Merged
merged 5 commits into from
Dec 15, 2023

Conversation

askervin
Copy link
Collaborator

Passing E2E tests requires:

- Add preferCloseToDevices in the ballooons CRD for explicit
  configuration.
- Add implicit PreferFarFromDevices option to BalloonType
  definition. This anti-affinity list is filled based on affinities
  of this and other balloon types. If necessary in the future, we
  can enable explicit anti-affinities in CRDs, too.
- If a balloon type has either of these preferences defined,
  use the balloon type specific CPU tree allocator that will
  implement the logic behind these options.

Signed-off-by: Antti Kervinen <[email protected]>
@askervin askervin force-pushed the 5S8_balloons_close_split branch from 28920e4 to 2fb04cd Compare November 28, 2023 14:34
@askervin askervin marked this pull request as ready for review November 28, 2023 15:21
@klihub klihub requested review from kad, marquiz and fmuyassarov December 7, 2023 14:57
Copy link
Collaborator

@kad kad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks ok for me. Might be improvement for later to support globs. e.g. /dev/foo*

@klihub
Copy link
Collaborator

klihub commented Dec 15, 2023

nit: there is a repetition of 'affecting' in the commit message.

- Change CPU tree allocator to use a chain of ResizeCpus() functions
  to avoid hardcoding the order in which various aspects affecting CPU
  allocation are taken into account. Without the chain structure every
  level of ResizeCpus() would need to know what is the next level of
  importance in CPU allocation.

Signed-off-by: Antti Kervinen <[email protected]>
@askervin askervin force-pushed the 5S8_balloons_close_split branch from 2fb04cd to f1a7dc4 Compare December 15, 2023 13:58
@askervin
Copy link
Collaborator Author

nit: there is a repetition of 'affecting' in the commit message.

Thanks, fixed!

@kad kad merged commit ca7c4f8 into containers:main Dec 15, 2023
3 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.

3 participants