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 package to {cpus,uncores} matching functions #610

Merged
merged 1 commit into from
Jul 23, 2024

Conversation

sgruszka
Copy link
Contributor

Allow to specify cpus and uncores based on package (socket) number.

@yarda
Copy link
Contributor

yarda commented May 23, 2024

Is it ready for merge, or still WIP (because it has WIP flag)? From my point of view it's ready. I added few comments that could improve it, but I can see no problem with this PR.

@sgruszka sgruszka requested a review from yarda July 18, 2024 09:17
@sgruszka
Copy link
Contributor Author

Is it ready for merge, or still WIP (because it has WIP flag)? From my point of view it's ready. I added few comments that could improve it, but I can see no problem with this PR.

Addressed the comments and remove WIP flag. Please review.

@sgruszka sgruszka marked this pull request as ready for review July 18, 2024 09:17
@yarda
Copy link
Contributor

yarda commented Jul 22, 2024

/packit build

Copy link
Contributor

@yarda yarda left a comment

Choose a reason for hiding this comment

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

It's not blocker, but I think it's worth fixing.

tuned/profiles/functions/function_package2cpus.py Outdated Show resolved Hide resolved
tuned/profiles/functions/function_package2cpus.py Outdated Show resolved Hide resolved
tuned/profiles/functions/function_package2uncores.py Outdated Show resolved Hide resolved
@yarda
Copy link
Contributor

yarda commented Jul 22, 2024

CI failure seems unrelated to this PR.

Allow to specify CPUs and uncores using package (socket) number.

type=cpu
devices=${f:package2cpus:2}  # cpus from package 2

type=cpu
devices=${f:package2cpus:1*} # cpus from any package started from 1 i.e. 11, 12, 13 ...

type=uncore
devices=${f:package2uncores:1:5:9}  # uncores from package 1, 5 and 9

Signed-off-by: Stanislaw Gruszka <[email protected]>
@sgruszka
Copy link
Contributor Author

Addressed the comments, please review.

@sgruszka sgruszka requested a review from yarda July 23, 2024 08:04
@yarda
Copy link
Contributor

yarda commented Jul 23, 2024

/packit build

Copy link
Contributor

@yarda yarda left a comment

Choose a reason for hiding this comment

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

LGTM, thanks.

CI failures are unrelated:

  • Centos 7 CI failure is caused by dropped EPEL-7, it's being worked on.
  • Fedora rawhide failure is caused by systemd rate limiting, workaround will be enabled in beakerlib/tuned library.

@yarda yarda merged commit adfb1fa into redhat-performance:master Jul 23, 2024
12 of 14 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