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: support calculate cost when using spdk. #17091
Conversation
@yuyuyu101 please help take a look. Thanks. |
why need to consider this? |
ioc->pending_aios will be used only in KernelDevice.cc, but not used for NVMEDevice.cc. So when use NVMEDevice.cc, we cannot get right transaction cost for throttle_bytes |
it's just a cleanup not bug fix, I think? |
@yuyuyu101 yup, I agree |
retest this please |
src/os/bluestore/BlueStore.cc
Outdated
|
||
#ifdef HAVE_SPDK | ||
ios += txc->ioc.total_nseg; | ||
dout(0) << "[liupan] " << " ios: " << ios << " total_nseg: " |
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.
remove [liupan]
Signed-off-by: Pan Liu <wanjun.lp@alibaba-inc.com> Signed-off-by: Ziye Yang <optimistyzy@gmail.com>
@yuyuyu101 debug info has been removed, please take a look. BTW, the failed info in "make check" is about jenkins issue, not related to this change. |
Jenkins, retest this please. |
all commits in this PR are signed |
submodules for project are unmodified |
@@ -7657,6 +7657,11 @@ void BlueStore::_txc_calc_cost(TransContext *txc) | |||
for (auto& p : txc->ioc.pending_aios) { |
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.
we may should put this loop in else case
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.
ioc.pending_aios is not needed for SPDK case.
@yuyuyu101 ping? |
For KernelDevice, _txc_calc_cost has been supported to calc transaction cost. But for spdk NVMEDevice, it is not.
Signed-off-by: Pan Liu wanjun.lp@alibaba-inc.com
Signed-off-by: Ziye Yang optimistyzy@gmail.com