Skip to content
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

Merged
merged 1 commit into from Aug 29, 2017
Merged

os/bluestore: support calculate cost when using spdk. #17091

merged 1 commit into from Aug 29, 2017

Conversation

liupan1111
Copy link
Contributor

@liupan1111 liupan1111 commented Aug 18, 2017

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

@liupan1111
Copy link
Contributor Author

@yuyuyu101 please help take a look. Thanks.

@yuyuyu101
Copy link
Member

why need to consider this?

@liupan1111
Copy link
Contributor Author

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

@yuyuyu101
Copy link
Member

it's just a cleanup not bug fix, I think?

@liupan1111
Copy link
Contributor Author

@yuyuyu101 yup, I agree

@liupan1111
Copy link
Contributor Author

retest this please


#ifdef HAVE_SPDK
ios += txc->ioc.total_nseg;
dout(0) << "[liupan] " << " ios: " << ios << " total_nseg: "
Copy link
Member

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>
@liupan1111
Copy link
Contributor Author

@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.

@liupan1111
Copy link
Contributor Author

Jenkins, retest this please.

@ceph-jenkins
Copy link
Collaborator

all commits in this PR are signed

@ceph-jenkins
Copy link
Collaborator

submodules for project are unmodified

@@ -7657,6 +7657,11 @@ void BlueStore::_txc_calc_cost(TransContext *txc)
for (auto& p : txc->ioc.pending_aios) {
Copy link
Contributor

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

Copy link
Contributor Author

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.

@liupan1111
Copy link
Contributor Author

@yuyuyu101 ping?

@liewegas liewegas merged commit cc7c9e9 into ceph:master Aug 29, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants