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

cpu_partitioning: fixed no_balance_cores on newer kernels #392

Merged
merged 1 commit into from Jan 2, 2022

Conversation

yarda
Copy link
Contributor

@yarda yarda commented Dec 16, 2021

…LOAD_BALANCE

Resolves: rhbz#1874596

Signed-off-by: Jaroslav Škarvada jskarvad@redhat.com

@yarda yarda requested a review from CZerta December 16, 2021 00:32
@yarda yarda changed the title cpu_partitioning: fixed no_balance_cores on newer kernels without SD_… cpu_partitioning: fixed no_balance_cores on newer kernels Dec 16, 2021
Copy link
Contributor

@jmencak jmencak left a comment

Choose a reason for hiding this comment

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

This PR looks good to me and I believe this fixes the issues for RHEL 9.0. What is not quite clear to me is whether we can use this on RHEL 8.x systems as well.

@@ -35,6 +35,8 @@ no_balance_cores_expanded=${f:cpulist_unpack:${no_balance_cores}}
# Fail if isolated_cores contains CPUs which are not online
assert2=${f:assertion:isolated_cores contains online CPU(s):${isolated_cores_expanded}:${isolated_cores_online_expanded}}

cmd_isolcpus=${f:regex_search_ternary:${no_balance_cores}:\s*[0-9]+: isolcpus=${no_balance_cores}:}
Copy link
Contributor

Choose a reason for hiding this comment

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

We can drop the + in the regex.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

OK, I will drop it.

@yarda
Copy link
Contributor Author

yarda commented Dec 17, 2021

This PR looks good to me and I believe this fixes the issues for RHEL 9.0. What is not quite clear to me is whether we can use this on RHEL 8.x systems as well.

Thanks for the review.

According to the discussion in the Red Hat bugzilla this should work OK on RHEL-8, but in the RHEL-8 downstream this PR will be reverted not to cause any regression or different behaviour. On newer RHELs this upstream version of the profile will be used.

Copy link
Contributor

@CZerta CZerta left a comment

Choose a reason for hiding this comment

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

Seems OK

I.e. kernels without the SD_LOAD_BALANCE.

Resolves: rhbz#1874596

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
@yarda yarda merged commit 61e6210 into redhat-performance:master Jan 2, 2022
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.

None yet

3 participants