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: make zone/span size of bitmap-allocator configurable #10040
os/bluestore: make zone/span size of bitmap-allocator configurable #10040
Conversation
@chhabaramesh I move the size-change commit into this pr(a much clean place). Please look at here, thanks! |
773869c
to
8b73dc6
Compare
@chhabaramesh Thoughts? |
@xiexingguo , I will review it on weekend, sorry for delay, got stuck in some other tasks. |
@chhabaramesh Okay, just a reminder that I move the change here, take your time. |
@chhabaramesh Ping |
@chhabaramesh Are you there...? |
He's on vacation.. back next week. |
@@ -26,7 +27,7 @@ | |||
|
|||
int64_t BitMapAreaLeaf::count = 0; | |||
int64_t BitMapZone::count = 0; | |||
int64_t BitMapZone::total_blocks = BITMAP_SPAN_SIZE; |
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.
Looks good
@xiexingguo @liewegas Overall changes looks ok to me. |
Perviously as zone_size_block and span_size are identical, so we could use span_size only to simplify the calcuation. Now that the zone_size_block and span_size are both configurable, so it is necessary to treat them respectively. Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
For testing, we may choose randomized length of extent to allocate, which means we could trim down the length to 0. Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
3ba1ca9
to
af82dbc
Compare
@chhabaramesh Thanks for the review, all fixed and passed the test again.
@liewegas This one is safe to merge. |
Perviously as zone_size_block and span_size are identical, so we could use
span_size only to simplify the calculation.
Now that the zone_size_block and span_size are both configurable, so
it is necessary to treat them respectively.
Signed-off-by: xie xingguo xie.xingguo@zte.com.cn