-
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
base: main
Are you sure you want to change the base?
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/20220922180041.1768141-1-longman@redhat.com 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 <msivak@redhat.com> Signed-off-by: Peter Hunt <pehunt@redhat.com>
d946178
to
66ff048
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.
LGTM
@haircommander is this still a draft? |
AFAIK this relies on the kernel patch which is still not merged: https://lore.kernel.org/lkml/20231003205735.2921964-1-longman@redhat.com/ (@haircommander please correct me if I'm wrong) |
correct! still a draft for that reason |
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/20220922180041.1768141-1-longman@redhat.com
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