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
Conversation
a94875c
to
7858b25
Compare
There was a problem hiding this 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.
profiles/cpu-partitioning/tuned.conf
Outdated
@@ -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}:} |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
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. |
There was a problem hiding this 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>
7858b25
to
83ee596
Compare
…LOAD_BALANCE
Resolves: rhbz#1874596
Signed-off-by: Jaroslav Škarvada jskarvad@redhat.com