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

nautilus: osd: set affinity for *all* threads #31359

Merged
merged 1 commit into from Dec 18, 2019

Conversation

smithfarm
Copy link
Contributor

@smithfarm smithfarm commented Nov 4, 2019

backport tracker: https://tracker.ceph.com/issues/42203


backport of #30712
parent tracker: https://tracker.ceph.com/issues/42054


updated using ceph-backport.sh version 15.0.0.6612

It turns out schedule_setaffinity(2) only sets the current *thread*'s
affinity, not the entire process.  Look in /proc to identify all of our
children and map those, too.

Note that this doesn't seem to affect the numa_preferred_nid value in
/proc/$pid/[task/$tid/]sched... at least not immediately.  That value does
seem to change for some threads after some load is applied.

Fixes: https://tracker.ceph.com/issues/42054
Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit abaed06)
@smithfarm smithfarm added this to the nautilus milestone Nov 4, 2019
@smithfarm smithfarm added the core label Nov 4, 2019
@smithfarm smithfarm added nautilus-batch-1 nautilus point releases needs-qa labels Dec 13, 2019
@yuriw
Copy link
Contributor

yuriw commented Dec 17, 2019

@yuriw yuriw merged commit 0244ad2 into ceph:nautilus Dec 18, 2019
@smithfarm smithfarm deleted the wip-42203-nautilus branch December 19, 2019 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants