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

Advertise RDT L3 num_closid #1100

Merged

Conversation

PiotrProkop
Copy link
Contributor

Enable the feature discovery of RDTL3CA_NUM_CLOSID as part of the cpu-rdt source.

This feature is intended to be used as extended resource when this PR is merged #1099

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Mar 29, 2023
@netlify
Copy link

netlify bot commented Mar 29, 2023

Deploy Preview for kubernetes-sigs-nfd ready!

Name Link
🔨 Latest commit 0e78eba
🔍 Latest deploy log https://app.netlify.com/sites/kubernetes-sigs-nfd/deploys/642e8f7b7c57b20008e1078d
😎 Deploy Preview https://deploy-preview-1100--kubernetes-sigs-nfd.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@k8s-ci-robot k8s-ci-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Mar 29, 2023
@PiotrProkop PiotrProkop force-pushed the expose-L3-num-closid branch 2 times, most recently from 1fc829e to e7e187b Compare March 29, 2023 10:48
@PiotrProkop
Copy link
Contributor Author

@marquiz @ArangoGutierrez PTAL

@ArangoGutierrez
Copy link
Contributor

Hold until #1099
/hold

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Mar 29, 2023
Copy link
Contributor

@ArangoGutierrez ArangoGutierrez left a comment

Choose a reason for hiding this comment

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

Could you also add the new features here docs/usage/features.md

@PiotrProkop PiotrProkop force-pushed the expose-L3-num-closid branch from e7e187b to d1ec296 Compare March 30, 2023 07:07
@PiotrProkop
Copy link
Contributor Author

Could you also add the new features here docs/usage/features.md

@ArangoGutierrez done.

@ArangoGutierrez
Copy link
Contributor

Could you also add the new features here docs/usage/features.md

@ArangoGutierrez done.

Awesome, let's wait for 1099 to get in

Copy link
Contributor

@marquiz marquiz left a comment

Choose a reason for hiding this comment

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

Thanks @PiotrProkop for the enhancement! We need to document the new feature in the "Available features" table in customization guide (docs/usage/customization-guide.md), need also to change the "feature type" from "flag" to "attribute"

source/cpu/rdt_amd64.go Show resolved Hide resolved
| RDTL3CA | Intel L3 Cache Allocation Technology
| RDTl2CA | Intel L2 Cache Allocation Technology
| RDTMBA | Intel Memory Bandwidth Allocation (MBA) Technology
| RDTL3CA_NUM_CLOSID | The number or available CLOSid(Class of service ID) for Intel L3 Cache Allocation Technology
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we really want/need to advertise this as a label? I'd suggest to only have it as a "raw feature" for NodeFeatureRules to consume.

As a sidenote and a separate issue. We might want to deprecate the RDT labels as I'm not sure they are of any use in their current form (for example, they don't indicate if resctrlfs is mounted)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We are using RDTL3CA for scheduling purposes(when we want to setL3 cache partitions for our workloads). But we make sure resctrlfs is mounted when we provision hosts.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I agree that RDTL3CA_NUM_CLOSID as a label is of little to no use 😄 will change the code to stop advertise it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

removed.

@PiotrProkop PiotrProkop force-pushed the expose-L3-num-closid branch from d1ec296 to 3fdd43c Compare April 5, 2023 10:43
@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Apr 5, 2023
@PiotrProkop
Copy link
Contributor Author

Thanks @PiotrProkop for the enhancement! We need to document the new feature in the "Available features" table in customization guide (docs/usage/customization-guide.md), need also to change the "feature type" from "flag" to "attribute"

Thanks for the review! I have updated customization-guide.

@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Apr 6, 2023
@PiotrProkop PiotrProkop force-pushed the expose-L3-num-closid branch from 3fdd43c to 98c6eeb Compare April 6, 2023 07:25
@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Apr 6, 2023
Copy link
Contributor

@marquiz marquiz left a comment

Choose a reason for hiding this comment

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

Thanks @PiotrProkop, almost there :)

docs/usage/customization-guide.md Outdated Show resolved Hide resolved
source/cpu/rdt_amd64.go Show resolved Hide resolved
deployment/helm/values.yaml Outdated Show resolved Hide resolved
@PiotrProkop PiotrProkop force-pushed the expose-L3-num-closid branch 3 times, most recently from 2ebafe2 to c3a42fb Compare April 6, 2023 08:04
Signed-off-by: PiotrProkop <[email protected]>
@PiotrProkop PiotrProkop force-pushed the expose-L3-num-closid branch from c3a42fb to 0e78eba Compare April 6, 2023 09:23
Copy link
Contributor

@marquiz marquiz left a comment

Choose a reason for hiding this comment

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

Thx @PiotrProkop, looks fine for me now 👍
/assign @ArangoGutierrez

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 6, 2023
Copy link
Contributor

@ArangoGutierrez ArangoGutierrez left a comment

Choose a reason for hiding this comment

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

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Apr 6, 2023
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: 42692216707f1ebb89e86a7f31cb89135794044c

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ArangoGutierrez, marquiz, PiotrProkop

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

The pull request process is described here

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

@marquiz
Copy link
Contributor

marquiz commented Apr 6, 2023

@PiotrProkop I think we could unhold this? Unless you want to verify it first with #1099. I'm ok with both

@PiotrProkop
Copy link
Contributor Author

/unhold

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Apr 7, 2023
@PiotrProkop
Copy link
Contributor Author

@PiotrProkop I think we could unhold this? Unless you want to verify it first with #1099. I'm ok with both

Yeah, we can merge this!

@k8s-ci-robot k8s-ci-robot merged commit 6740224 into kubernetes-sigs:master Apr 7, 2023
@marquiz marquiz mentioned this pull request Apr 12, 2023
24 tasks
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. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants