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
os/bluestore/NVMEDevice: add the spdk core mask check #14068
Conversation
src/os/bluestore/NVMEDevice.cc
Outdated
|
||
if (sn_tag.empty()) { | ||
r = -ENOENT; | ||
derr << __func__ << " empty serial number: " << cpp_strerror(r) << dendl; | ||
return r; | ||
} | ||
|
||
core_value = strtoll(g_conf->bluestore_spdk_coremask.c_str(), NULL, 16); | ||
for (int i = 0; i < 64; i++) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"64" meaning?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@yuyuyu101 I updated this code, it used to check the each bit in core_value.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@yuyuyu101 I updated this code, it used to check the each bit in core_value.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@yuyuyu101 I updated this code, it used to check the each bit in core_value.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@yuyuyu101 I updated this code, it used to check the each bit in core_value.
@yuyuyu101 I updated this code, it used to check each bit in core_value. |
this patch tested and worked well in my ceph,and solve the issues ( http://tracker.ceph.com/issues/19093) my osd config is that: [osd.1] |
src/os/bluestore/NVMEDevice.cc
Outdated
// at least two cores are needed for using spdk | ||
if (core_num < 2) { | ||
r = -ENOENT; | ||
derr << __func__ << " invalid spdk coremask: " << cpp_strerror(r) << dendl; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggest explicitly tell the reason like at least two cores needed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated.
This patch adds the spdk core mask check and also set the master core for starting DPDK. Signed-off-by: optimistyzy <optimistyzy@gmail.com>
updated with suggested comments. @yuyuyu101 |
This patch adds the spdk core mask check and also
set the master core for starting DPDK.
Signed-off-by: optimistyzy optimistyzy@gmail.com