Bug 1509130

Summary: [RADOS]: Messenger:- Apparently "ms async affinity cores" option not working
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: shylesh <shmohan>
Component: RADOSAssignee: Josh Durgin <jdurgin>
Status: CLOSED WONTFIX QA Contact: ceph-qe-bugs <ceph-qe-bugs>
Severity: low Docs Contact: Bara Ancincova <bancinco>
Priority: unspecified    
Version: 3.0CC: ceph-eng-bugs, dzafman, hnallurv, jdurgin, kchai
Target Milestone: rc   
Target Release: 3.*   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Known Issue
Doc Text:
.The `ms_async_affinity_cores` option does not work The `ms_async_affinitiy_cores` option is not implemented. Specifying it in the Ceph configuration file does not have any effect.
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-01-23 16:20:31 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1494421    

Description shylesh 2017-11-03 07:14:51 UTC
Description of problem:
Setting "ms_async_affinitiy_cores" doesn't make worker threads to bind to cores.

Version-Release number of selected component (if applicable):
12.2.1-39redhat1xenial

How reproducible:
Always

Steps to Reproduce:
1.I have set the following ms_async config in conf file.

ms_async_max_op_threads=8
ms_async_op_threads=5
ms_async_affinity_cores=1,4
ms async set affinity=true


If above syntax is correct then all the async worker threads should be bound to core 1-4,
but something different is happening.

Here is the output "top -H -p  <pid>". last field is the core.




87381       1 64045 ceph     ceph     ?          0:00.02  0.0  0.6 S msgr-worker-0                                         4
  87382       1 64045 ceph     ceph     ?          0:00.02  0.0  0.6 S msgr-worker-1                                        10
  87383       1 64045 ceph     ceph     ?          0:00.04  0.3  0.6 S msgr-worker-2                                         2
  87384       1 64045 ceph     ceph     ?          0:00.04  0.0  0.6 S msgr-worker-3                                         5
  87385       1 64045 ceph     ceph     ?          0:00.02  0.0  0.6 S msgr-worker-4                                         3


affinity parameter is not obeyed.


This is on a cpu with 12 cores.

Am I missing something very basic.