osd child thread not inherit main thread affinity attribute
osd, numa node,cpu affinity,thread
3 - minor
Pull request ID:
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.
- 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.