Skip to content

instancetype: Extend PreferSpread - #287

Merged
kubevirt-bot merged 2 commits into
kubevirt:mainfrom
lyarwood:instancetype-extend-preferSpread
Jun 21, 2024
Merged

kubevirt-bot merged 2 commits into
kubevirt:mainfrom
lyarwood:instancetype-extend-preferSpread

Conversation

@lyarwood

@lyarwood lyarwood commented Apr 18, 2024 •

Copy link
Copy Markdown
Member

/cc @0xFelix
/cc @fabiand
/cc @vladikr

What this PR does / why we need it:

The preferSpread preferredCPUTopology was introduced with KubeVirt v1.1 and allows for vCPUs provided by an instance type to be spread across guest visible sockets and cores using a configurable ratio that defaults to 2.

This design proposal aims to extend this implementation by introducing new configurables within a preference to control how vCPUs are spread with the goal of allowing vCPUs to also be spread to threads.

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #

Special notes for your reviewer:

This supersedes the original Allow custom guest CPU topologies within instancetypes proposal given insight from a few downstream teams around their need for SMT within the guest OS for their workloads. While this proposal doesn't guarantee performant SMT aligned threads within the guest it at least allows us to express that threads will be present through the existing instance type and preference API paradigms.

Checklist

This checklist is not enforcing, but it's a reminder of items that could be relevant to every PR.
Approvers are expected to review this list.

Release note:

NONE

Signed-off-by: Lee Yarwood <lyarwood@redhat.com>
@kubevirt-bot kubevirt-bot added dco-signoff: yes Indicates the PR's author has DCO signed all their commits. size/L labels Apr 18, 2024
The `preferSpread` `preferredCPUTopology` was introduced with KubeVirt
v1.1 and allows for vCPUs provided by an instance type to be spread
across guest visible sockets and cores using a configurable ratio that
defaults to 2.

This design proposal aims to extend this implementation by introducing
new configurables within a preference to control how vCPUs are spread
with the goal of allowing vCPUs to also be spread to threads.

Signed-off-by: Lee Yarwood <lyarwood@redhat.com>
@lyarwood
lyarwood force-pushed the instancetype-extend-preferSpread branch from 37bed1c to 8732445 Compare April 23, 2024 17:46

@0xFelix 0xFelix left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good to me, thank!

/lgtm

@kubevirt-bot kubevirt-bot added the lgtm Indicates that a PR is ready to be merged. label Apr 25, 2024
@lyarwood

lyarwood commented Jun 6, 2024

Copy link
Copy Markdown
Member Author

@vladikr would you mind approving this as the implementation has already landed?

@aburdenthehand

Copy link
Copy Markdown
Member

/approve

@kubevirt-bot

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: aburdenthehand

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kubevirt-bot kubevirt-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 21, 2024
@kubevirt-bot
kubevirt-bot merged commit d288c2f into kubevirt:main Jun 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. dco-signoff: yes Indicates the PR's author has DCO signed all their commits. lgtm Indicates that a PR is ready to be merged. size/L

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants