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: introduce power 2 macros for block alignment and rounding #10128

Merged
merged 4 commits into from Jul 7, 2016

Conversation

xiexingguo
Copy link
Member

Macros for various sorts of alignment and rounding.
So we can get rid of the annoying division and mod operation and simplify
the blob/space access logic.

Signed-off-by: xie xingguo xie.xingguo@zte.com.cn

Macros for various sorts of alignment and rounding.
So we can get rid of the annoying division and mod operation and simplify
the blob/space access logic.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
1. pre-calculate r, so we don't have to do the division each loop, which
   is expensive.

2. make sure the extent to be allocated is within the block device size.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
@liewegas
Copy link
Member

liewegas commented Jul 6, 2016

this fails --gtest_filter=ObjectStore/StoreTest.Synthetic/2

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
@xiexingguo xiexingguo force-pushed the xxg-wip-bluestore-2016-07-05 branch from 664bae0 to 67d9667 Compare July 7, 2016 02:52
@xiexingguo
Copy link
Member Author

Fixed. Passed local testing:

2016-07-07 11:16:45.947731 7f77cb38a640  1 bluestore(store_test_temp_dir) fsck finish with 0 errors
[       OK ] ObjectStore/StoreTest.Synthetic/2 (18770 ms)
[----------] 1 test from ObjectStore/StoreTest (18770 ms total)

[----------] Global test environment tear-down
[==========] 1 test from 1 test case ran. (18770 ms total)
[  PASSED  ] 1 test.

@xiexingguo
Copy link
Member Author

xiexingguo commented Jul 7, 2016

But I also observe that the master is suffering the below testing also:

rm -rf c store_test_temp_dir && make ceph_test_objectstore  && ./ceph_test_objectstore  --gtest_filter=ObjectStore/StoreTest.Synthetic/1

master-storetest.txt

@liewegas liewegas merged commit 956c769 into ceph:master Jul 7, 2016
@xiexingguo xiexingguo deleted the xxg-wip-bluestore-2016-07-05 branch July 7, 2016 22:00
xiexingguo added a commit to xiexingguo/ceph that referenced this pull request Mar 28, 2018
These macros are originally introduced in ceph#10128
and get replaced by ceph#19913.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
xiexingguo added a commit to xiexingguo/ceph that referenced this pull request Mar 28, 2018
These macros are originally introduced in ceph#10128
and get replaced by ceph#19913.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
votdev pushed a commit to votdev/ceph that referenced this pull request Apr 3, 2018
These macros are originally introduced in ceph#10128
and get replaced by ceph#19913.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
votdev pushed a commit to votdev/ceph that referenced this pull request Apr 5, 2018
These macros are originally introduced in ceph#10128
and get replaced by ceph#19913.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
votdev pushed a commit to votdev/ceph that referenced this pull request Apr 9, 2018
These macros are originally introduced in ceph#10128
and get replaced by ceph#19913.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
votdev pushed a commit to votdev/ceph that referenced this pull request Apr 9, 2018
These macros are originally introduced in ceph#10128
and get replaced by ceph#19913.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants