Repository navigation
os/bluestore: optional SharedBlob on Blob structure - #53565
Conversation
7cfb52d to
bbe2cf5
Compare
|
@pereman2 - please update the caption, it's confusing ;) |
bin/rados bench 10 write -p .mgr -t 4 --num-objects 20000 --no-cleanup
# with changes
"bluestore_blob_bytes": 4939272,
"bluestore_blob_items": 22867,
"bluestore_shared_blob_bytes": 0,
"bluestore_shared_blob_items": 0,
# without changes
"bluestore_blob_bytes": 4618200,
"bluestore_blob_items": 23091,
"bluestore_shared_blob_bytes": 554184,
"bluestore_shared_blob_items": 23091, |
|
I see a potentially related OSD crash: |
thanks for taking the time! It should be fixed now, it was related |
|
"make check" error looks relevant. |
|
jenkins test api |
|
jenkins test make check |
|
jenkins test api |
98b3e3b to
36fbcc2
Compare
df582fb to
cbdab3c
Compare
9fbae1a to
7cfb52d
Compare
|
jenkins test make check |
|
@pereman2 Hi think this PR might be the culprit for some of the dead jobs /yuriw-2024-01-31_19:20:14-rados-wip-yuri3-testing-2024-01-29-1434-distro-default-smithi/7540943/ |
|
@pereman2 can you let us know if the failed job I pasted in the comment above is related, so I can drop and retest Thanks! |
|
@kamoltat We are aware of this issue as it is related, we encountered it on a different teuthology job. We are working on it right now. |
Thank you for confirming! |
Instead of creating a SharedBlob for each Blob instance, we just move necesary fields like Collection to Blob and create SharedBlob only when necessary. Signed-off-by: Pere Diaz Bou <[email protected]>
split_cache requires moving from one collection to another in a sharedblob. Therefore, with the new refactor we need collection inside blob to be moved too. Signed-off-by: Pere Diaz Bou <[email protected]>
Signed-off-by: Pere Diaz Bou <[email protected]>
Signed-off-by: Pere Diaz Bou <[email protected]>
Signed-off-by: Pere Diaz Bou <[email protected]>
Use new_blob and set collection in Blob in bluestore unittests as per latest changes Signed-off-by: Pere Diaz Bou <[email protected]>
Instead of setting blob collection to the same as shared blob, we ensure we were in the same collection instead. Signed-off-by: Pere Diaz Bou <[email protected]>
Collection is a member of Blob after previous changes, making it necessary for rehome_blob to move both Blob and SharedBlob Signed-off-by: Pere Diaz Bou <[email protected]>
Set collection on blob creation instead of setting it manually after creation Signed-off-by: Pere Diaz Bou <[email protected]>
Signed-off-by: Pere Diaz Bou <[email protected]>
dummy onodes don't have a collection, consequentially, we need to create a blob without a collection. Signed-off-by: Pere Diaz Bou <[email protected]>
introduce const and non const accessors: const SharedblobRef& get_shared_blob SharedblobRef& get_dirty_shared_blob Signed-off-by: Pere Diaz Bou <[email protected]>
This will ensure deleting and then cloning the same blob works. Signed-off-by: Pere Diaz Bou <[email protected]>
set_shared_blob requires shared_blob to be a nullptr to ensure it's correct operation. Signed-off-by: Pere Diaz Bou <[email protected]>
private shared_blob member access needed to be changed Signed-off-by: Pere Diaz Bou <[email protected]>
Signed-off-by: Pere Diaz Bou <[email protected]>
8050917 to
de6840c
Compare
|
jenkins test api |
Blob::shared_blob was always set to something even though a SharedBlob wasn't really "created". In this PR we make shared_blob truly optional and only set it to a real instance if it's really necessary.
Some results:
Contribution Guidelines
To sign and title your commits, please refer to Submitting Patches to Ceph.
If you are submitting a fix for a stable branch (e.g. "pacific"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.
Checklist
Show available Jenkins commands
jenkins retest this pleasejenkins test classic perfjenkins test crimson perfjenkins test signedjenkins test make checkjenkins test make check arm64jenkins test submodulesjenkins test dashboardjenkins test dashboard cephadmjenkins test apijenkins test docsjenkins render docsjenkins test ceph-volume alljenkins test ceph-volume toxjenkins test windows