-
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
zdb: add extra -T flag to show histograms of BRT refcounts #16692
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.
As I read it, you are counting references with certain number of references, not DVAs with certain number of references. I guess what you want may depend on what you are going to compare it against, but the histogram title seems not match. Am I wrong? For DDT we seem to count both.
Sponsored-by: https://despairlabs.com/sponsor/ Signed-off-by: Rob Norris <[email protected]>
f0d56d3
to
df2e02a
Compare
Oh ugh, yeah. I meant to be counting DVAs. I'm not quite sure what I was thinking (at 11pm, probably not at all). Pushed what I think I meant. |
Sponsored-by: https://despairlabs.com/sponsor/ Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Alexander Motin <[email protected]> Signed-off-by: Rob Norris <[email protected]> Closes openzfs#16692
Sponsored-by: https://despairlabs.com/sponsor/ Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Alexander Motin <[email protected]> Signed-off-by: Rob Norris <[email protected]> Closes openzfs#16692 (cherry picked from commit 673efbb)
Sponsored-by: https://despairlabs.com/sponsor/ Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Alexander Motin <[email protected]> Signed-off-by: Rob Norris <[email protected]> Closes openzfs#16692 (cherry picked from commit 673efbb)
Motivation and Context
I was comparing my local BRT use against what fast dedup might get me1, and realised I would like a nice breakdown of refcount distribution. So I made one.
Description
Repurposes
-TTT
to show histograms. The full per-DVA list is now-TTTT
.How Has This Been Tested?
By hand:
Types of changes
Checklist:
Signed-off-by
.Footnotes
Turns out BRT is getting me basically everything I'd get from dedup. dedup would be marginally better at the cost of 11M unique entries. No thanks. ↩