-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
zstreamdump: include embedded writes in total_write_size #8431
zstreamdump: include embedded writes in total_write_size #8431
Conversation
zstreamdump outputs a summary at the end that includes the total byte count of all DRR_WRITE records. This change makes it also include the bytes from DRR_WRITE_EMBEDDED records, where the data was small enough to be embedded directly into the block pointer. Signed-off-by: Allan Jude <allanjude@freebsd.org>
Codecov Report
@@ Coverage Diff @@
## master #8431 +/- ##
==========================================
+ Coverage 78.43% 78.61% +0.18%
==========================================
Files 380 380
Lines 115901 115902 +1
==========================================
+ Hits 90909 91122 +213
+ Misses 24992 24780 -212
Continue to review full report at Codecov.
|
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.
If we're expanding what is encompassed by total_write_size
we may want to include the payload for DRR_SPILL records too. Or conversely remove total_write_size
and instead depend on your new per-record sizes from #8432.
I'd like to see #8432 completed! |
@allanjude shall we close this out in favor of an updated #8432? |
Closing for now, let's tackle this in the context of a completed #8432. |
Signed-off-by: Allan Jude allanjude@freebsd.org
Motivation and Context
zstreamdump is a tool used to analyze the contents of ZFS replication streams.
zstreamdump outputs a summary at the end that includes the total byte
count of all DRR_WRITE records. This excludes the bytes from any
DRR_WRITE_EMBEDDED records, resulting in a total that is not accurate.
DRR_WRITE_EMBEDDED records are only included in a replication stream if it is
generated with
zfs send -e
.Description
This change includes the payload size of any embedded write records in the
total_write_size
statistic displayed at the end of the zstreamdump run.How Has This Been Tested?
zfs send -e dataset@snapshot | zstreamdump
Types of changes
Checklist:
Signed-off-by
.