-
Notifications
You must be signed in to change notification settings - Fork 21
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
Fixed the number of chunks issue #415
Conversation
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.
LGTM through I dont really understand where the max_possible_bits comes from ?
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.
Is that better to hornor the requested num_bits instead of honor the serialize size?
we are now:
- round num_chunks to 4K boundary and convert to byte, to get
bit_map_size
bitmap_size - serialization_tax
then convert to bit, to the Bitset size.
which is a bit disconnect between the original requests (num_chunks) and final bitmap available bits.
Considering doing
m_chunk_info_slots = std::make_unique< sisl::Bitset >(hs_super_blk::max_chunks_in_pdev(m_dev_info));
the bitmap_mem is align to align_size (512) not 4K but it should be fine right
Yes I adjusted the code accordingly @xiaoxichen please take a look. |
Signed-off-by: Xiaoxi Chen <[email protected]>
Signed-off-by: Xiaoxi Chen <[email protected]>
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.
LG!
@raakella1 I see several commits in the master branch about this pr. |
At present the number of chunk info slots pre created is incorrectly did not convert number of bytes to bits. Fixed that issue.