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: Hint based allocation in bitmap Allocator #10978
Conversation
@liewegas , Please review this. |
e5c76b8
to
ee6ced6
Compare
@@ -187,6 +187,49 @@ TEST_P(AllocTest, test_alloc_failure) | |||
} | |||
} | |||
|
|||
TEST_P(AllocTest, test_alloc_hint_bmap) | |||
{ | |||
if (GetParam() == std::string("stupid")) { |
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.
!= std::string("bitmap") ?
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.
The stupid allocator was not passing all new hint test cases. So added this to bypass it for stupid allocator.
@chhabaramesh I haven't been following bitmap allocator internals.. is there someone else that can review? |
I see where the hint is used, but I don't see where the search loops around to the beginning if it doesn't find anything > hint (and, ideally, only searches back up to the start point). |
@liewegas The iterator BmapEntityListIter takes a wrap argument and that is true only for children of root nodes.
At all other levels it should be false. So it will start at a child at root level and wrap around and end at same child. I think there is a type bug at:
The wrap ( second ) argument must be false here :(. |
b094f61
to
ab505af
Compare
Signed-off-by: Ramesh Chander <Ramesh.Chander@sandisk.com>
Signed-off-by: Ramesh Chander <Ramesh.Chander@sandisk.com>
Signed-off-by: Ramesh Chander <Ramesh.Chander@sandisk.com>
ab505af
to
3c06717
Compare
@liewegas , Fixed the typo bug mentioned above and updated. Please check again. |
This pull request has following changes: