-
Notifications
You must be signed in to change notification settings - Fork 2.2k
libctr: Reset the inherited cpu affinity #4041
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
libctr: Reset the inherited cpu affinity #4041
Conversation
f96de14 to
cad71a0
Compare
22c6427 to
902a7da
Compare
|
nit: you can also add |
c06381c to
d946178
Compare
Old kernels do that automatically, but new kernels remember the affinity that was set before the cgroup move due to https://lore.kernel.org/lkml/[email protected] This is undesirable for containers, because they inherit the systemd affinity when the should really move to the container space cpus. see https://issues.redhat.com/browse/OCPBUGS-15102 for more information Co-authored-by: Martin Sivak <[email protected]> Signed-off-by: Peter Hunt <[email protected]>
d946178 to
66ff048
Compare
kolyshkin
left a comment
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.
LGTM
|
@haircommander is this still a draft? |
|
AFAIK this relies on the kernel patch which is still not merged: https://lore.kernel.org/lkml/[email protected]/ (@haircommander please correct me if I'm wrong) |
|
correct! still a draft for that reason |
|
Actually the sched patches were merged in Linux 6.2 (torvalds/linux@bf57ae2) but this PR won't actually work, for the reasons I explain in #4858 (comment). |
Old kernels do that automatically, but new kernels remember the affinity that was set before the cgroup move due to
https://lore.kernel.org/lkml/[email protected]
This is undesirable for containers, because they inherit the systemd affinity when the should really move to the container space cpus.
Draft as the required patch set is not yet merged upstream