Repository navigation
os/bluestore: incremental update mode for bluefs log - #42750
Conversation
|
jenkins test make check |
|
'make check' failures look relevant, store_test fails in the same way, see ino 0 at line -3: |
There was a problem hiding this comment.
you're enforcing incremental update at this point - I'm not sure that's a valid behavior, full metadata snapshot to be created here.
There was a problem hiding this comment.
ah, nevermind. This produces incremental updates for dirty files only
81356c2 to
ecced7f
Compare
There was a problem hiding this comment.
I don't like fnode's fields assignment scattered over the code. Looks like ino and mtime fields could be assigned along with size one below... Ideally it would be done via some class method, not directly...
There was a problem hiding this comment.
We need fnode.ino being set above sub_usage and fnode.size being set below sub_usage.
Only thing is that I can do is move them closer together.
There was a problem hiding this comment.
nit: new_extents_size can be tracked at bluefs_fnode_t on adding new extent, no need to reiterate over the new_extents then.
There was a problem hiding this comment.
nit: I'd like to avoid new_extents copying here and may be swap delta.extents and file.new_extents or something. file.new_extents are cleared anyway afterwards.
Something more elegant than doing that swap explicitly here is preferred though..
May be delta to be produced and filled by bluefs_fnode_t instance, e.g. via bluefs_fnode_t::make_delta or bluefs_fnode_t::branch_delta_off method?
This would eliminate the need to call clear_incremental_extents each time as well.
c51af0c to
6c17ff4
Compare
6c17ff4 to
42204b0
Compare
|
jenkins test make check |
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
d26d457 to
cd83171
Compare
cd83171 to
bc12af7
Compare
|
Good to go! |
|
@ifed01 One more change went into the PR. |
There was a problem hiding this comment.
nit: check for noop is redundant
a582cc8 to
8cb1faf
Compare
|
@aclamk pls rebase |
|
Ready for merge From @aclamk |
Signed-off-by: Adam Kupczyk <[email protected]>
…lueFS log Added test that verifies that in update mode we properly pick up delta. BlueFS log is the only file that can be appended to, but it is done in very indirect way. Signed-off-by: Adam Kupczyk <[email protected]>
BlueFS log is the only file that we can append to. When we append to file we must take into consideration previously commited allocations, otherwise update will be miscalculated. Signed-off-by: Adam Kupczyk <[email protected]>
Keep updating bluefs log when printing content of bluefs replay log. Without this modification we only have initial content of log. Log can be printed by 'ceph-bluestore-tool bluefs-log-dump'. Signed-off-by: Adam Kupczyk <[email protected]>
8cb1faf to
2292a4d
Compare
This PR is a part of discussion on best approach to introducing new OP to bluefs replay log - incremental update.
Incremental update OP_FILE_UPDATE_INC is similar to OP_FILE_UPDATE, but skips encoding extents that have already been encoded in previous bluefs transactions. In most cases it significantly reduces bluefs growth rate.
It is based on #42734.
Notable differences:
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 apijenkins test docsjenkins render docsjenkins test ceph-volume alljenkins test ceph-volume tox