Project

General

Profile

Actions

Bug #42054

closed

osd child thread not inherit main thread affinity attribute

Added by andy qi over 4 years ago. Updated over 4 years 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 (v1):
Crash signature (v2):

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 1 (0 open1 closed)

Copied to Ceph - Backport #42203: nautilus: osd child thread not inherit main thread affinity attributeResolvedNathan CutlerActions
Actions #1

Updated by Sage Weil over 4 years 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.

Actions #2

Updated by Sage Weil over 4 years ago

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

Updated by Sage Weil over 4 years ago

  • Backport set to nautilus
Actions #4

Updated by Sage Weil over 4 years ago

  • Status changed from Fix Under Review to Pending Backport
Actions #5

Updated by Nathan Cutler over 4 years ago

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

Updated by Nathan Cutler over 4 years 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".

Actions

Also available in: Atom PDF