Project

General

Profile

Bug #42054

osd child thread not inherit main thread affinity attribute

Added by andy qi 5 months ago. Updated 2 months ago.

Status:
Resolved
Priority:
High
Assignee:
Category:
OSD
Target version:
% Done:

0%

Source:
Community (user)
Tags:
osd, numa node,cpu affinity,thread
Backport:
nautilus
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature:

Description

in osd process,main thread set cpu affinity ,but the child threads not inherit the affinity.
so osd`s threads not run in the same numa node.


Related issues

Copied to Ceph - Backport #42203: nautilus: osd child thread not inherit main thread affinity attribute Resolved

History

#1 Updated by Sage Weil 5 months ago

  • Status changed from New to In Progress
  • Assignee set to Sage Weil
  • Priority changed from Normal to High

from the man page,

       A new thread created by pthread_create(3) inherits a copy of its
       creator's CPU affinity mask.

the affinity probably isn't being set early enough in the boot process to get inherited by all the right threads.

#2 Updated by Sage Weil 5 months ago

  • Status changed from In Progress to Fix Under Review
  • Pull request ID set to 30712

#3 Updated by Sage Weil 5 months ago

  • Backport set to nautilus

#4 Updated by Sage Weil 5 months ago

  • Status changed from Fix Under Review to Pending Backport

#5 Updated by Nathan Cutler 5 months ago

  • Copied to Backport #42203: nautilus: osd child thread not inherit main thread affinity attribute added

#6 Updated by Nathan Cutler 2 months ago

  • Status changed from Pending Backport to Resolved

While running with --resolve-parent, the script "backport-create-issue" noticed that all backports of this issue are in status "Resolved" or "Rejected".

Also available in: Atom PDF